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