Eric Nelson | afea2ba | 2013-02-19 10:07:01 +0000 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (C) 2013 Boundary Devices Inc. |
| 3 | * |
Wolfgang Denk | d79de1d | 2013-07-08 09:37:19 +0200 | [diff] [blame] | 4 | * SPDX-License-Identifier: GPL-2.0+ |
Eric Nelson | afea2ba | 2013-02-19 10:07:01 +0000 | [diff] [blame] | 5 | */ |
| 6 | #ifndef __ASM_ARCH_MX6_PINS_H__ |
| 7 | #define __ASM_ARCH_MX6_PINS_H__ |
| 8 | |
Eric Nelson | 24ded0c | 2013-11-13 16:36:19 -0700 | [diff] [blame] | 9 | #include <asm/imx-common/iomux-v3.h> |
| 10 | |
| 11 | #define MX6_PAD_DECLARE(prefix, name, pco, mc, mm, sio, si, pc) \ |
| 12 | prefix##name = IOMUX_PAD(pco, mc, mm, sio, si, pc) |
| 13 | |
| 14 | #ifdef CONFIG_MX6QDL |
| 15 | enum { |
| 16 | #define MX6_PAD_DECL(name, pco, mc, mm, sio, si, pc) \ |
| 17 | MX6_PAD_DECLARE(MX6Q_PAD_,name, pco, mc, mm, sio, si, pc), |
Eric Nelson | afea2ba | 2013-02-19 10:07:01 +0000 | [diff] [blame] | 18 | #include "mx6q_pins.h" |
Eric Nelson | 24ded0c | 2013-11-13 16:36:19 -0700 | [diff] [blame] | 19 | #undef MX6_PAD_DECL |
| 20 | #define MX6_PAD_DECL(name, pco, mc, mm, sio, si, pc) \ |
| 21 | MX6_PAD_DECLARE(MX6DL_PAD_,name, pco, mc, mm, sio, si, pc), |
Eric Nelson | afea2ba | 2013-02-19 10:07:01 +0000 | [diff] [blame] | 22 | #include "mx6dl_pins.h" |
Eric Nelson | 24ded0c | 2013-11-13 16:36:19 -0700 | [diff] [blame] | 23 | }; |
| 24 | #elif defined(CONFIG_MX6Q) |
| 25 | enum { |
| 26 | #define MX6_PAD_DECL(name, pco, mc, mm, sio, si, pc) \ |
| 27 | MX6_PAD_DECLARE(MX6_PAD_,name, pco, mc, mm, sio, si, pc), |
| 28 | #include "mx6q_pins.h" |
| 29 | }; |
| 30 | #elif defined(CONFIG_MX6DL) || defined(CONFIG_MX6S) |
| 31 | enum { |
| 32 | #define MX6_PAD_DECL(name, pco, mc, mm, sio, si, pc) \ |
| 33 | MX6_PAD_DECLARE(MX6_PAD_,name, pco, mc, mm, sio, si, pc), |
| 34 | #include "mx6dl_pins.h" |
| 35 | }; |
| 36 | #elif defined(CONFIG_MX6SL) |
Fabio Estevam | f7b9ac2 | 2013-04-10 09:32:57 +0000 | [diff] [blame] | 37 | #include "mx6sl_pins.h" |
Fabio Estevam | f9fdd08 | 2014-06-24 17:40:59 -0300 | [diff] [blame] | 38 | #elif defined(CONFIG_MX6SX) |
| 39 | #include "mx6sx_pins.h" |
Peng Fan | 5049118 | 2015-07-20 19:28:22 +0800 | [diff] [blame] | 40 | #elif defined(CONFIG_MX6UL) |
| 41 | #include "mx6ul_pins.h" |
Fabio Estevam | f7b9ac2 | 2013-04-10 09:32:57 +0000 | [diff] [blame] | 42 | #else |
Eric Nelson | afea2ba | 2013-02-19 10:07:01 +0000 | [diff] [blame] | 43 | #error "Please select cpu" |
Eric Nelson | afea2ba | 2013-02-19 10:07:01 +0000 | [diff] [blame] | 44 | #endif /* CONFIG_MX6Q */ |
| 45 | |
| 46 | #endif /*__ASM_ARCH_MX6_PINS_H__ */ |