xref: /rk3399_rockchip-uboot/arch/arm/include/asm/arch-mx6/mx6-pins.h (revision 39632b4a01210e329333d787d828157dcd2c7328)
1cfb8b9d3SEric Nelson /*
2cfb8b9d3SEric Nelson  * Copyright (C) 2013 Boundary Devices Inc.
3cfb8b9d3SEric Nelson  *
41a459660SWolfgang Denk  * SPDX-License-Identifier:	GPL-2.0+
5cfb8b9d3SEric Nelson  */
6cfb8b9d3SEric Nelson #ifndef __ASM_ARCH_MX6_PINS_H__
7cfb8b9d3SEric Nelson #define __ASM_ARCH_MX6_PINS_H__
8cfb8b9d3SEric Nelson 
9*552a848eSStefano Babic #include <asm/mach-imx/iomux-v3.h>
10b47abc36SEric Nelson 
11b47abc36SEric Nelson #define MX6_PAD_DECLARE(prefix, name, pco, mc, mm, sio, si, pc) \
12b47abc36SEric Nelson 	prefix##name = IOMUX_PAD(pco, mc, mm, sio, si, pc)
13b47abc36SEric Nelson 
14b47abc36SEric Nelson #ifdef CONFIG_MX6QDL
15b47abc36SEric Nelson enum {
16b47abc36SEric Nelson #define MX6_PAD_DECL(name, pco, mc, mm, sio, si, pc) \
17b47abc36SEric Nelson 	MX6_PAD_DECLARE(MX6Q_PAD_,name, pco, mc, mm, sio, si, pc),
18cfb8b9d3SEric Nelson #include "mx6q_pins.h"
19b47abc36SEric Nelson #undef MX6_PAD_DECL
20b47abc36SEric Nelson #define MX6_PAD_DECL(name, pco, mc, mm, sio, si, pc) \
21b47abc36SEric Nelson 	MX6_PAD_DECLARE(MX6DL_PAD_,name, pco, mc, mm, sio, si, pc),
22cfb8b9d3SEric Nelson #include "mx6dl_pins.h"
23b47abc36SEric Nelson };
24b47abc36SEric Nelson #elif defined(CONFIG_MX6Q)
25b47abc36SEric Nelson enum {
26b47abc36SEric Nelson #define MX6_PAD_DECL(name, pco, mc, mm, sio, si, pc) \
27b47abc36SEric Nelson 	MX6_PAD_DECLARE(MX6_PAD_,name, pco, mc, mm, sio, si, pc),
28b47abc36SEric Nelson #include "mx6q_pins.h"
29b47abc36SEric Nelson };
30b47abc36SEric Nelson #elif defined(CONFIG_MX6DL) || defined(CONFIG_MX6S)
31b47abc36SEric Nelson enum {
32b47abc36SEric Nelson #define MX6_PAD_DECL(name, pco, mc, mm, sio, si, pc) \
33b47abc36SEric Nelson 	MX6_PAD_DECLARE(MX6_PAD_,name, pco, mc, mm, sio, si, pc),
34b47abc36SEric Nelson #include "mx6dl_pins.h"
35b47abc36SEric Nelson };
3636e40142SPeng Fan #elif defined(CONFIG_MX6SLL)
3736e40142SPeng Fan #include "mx6sll_pins.h"
38b47abc36SEric Nelson #elif defined(CONFIG_MX6SL)
3925b4aa14SFabio Estevam #include "mx6sl_pins.h"
40f5860404SFabio Estevam #elif defined(CONFIG_MX6SX)
41f5860404SFabio Estevam #include "mx6sx_pins.h"
427b4dd816SPeng Fan #elif defined(CONFIG_MX6ULL)
437b4dd816SPeng Fan #include "mx6ull_pins.h"
440ca54023SPeng Fan #elif defined(CONFIG_MX6UL)
450ca54023SPeng Fan #include "mx6ul_pins.h"
4625b4aa14SFabio Estevam #else
47cfb8b9d3SEric Nelson #error "Please select cpu"
48cfb8b9d3SEric Nelson #endif	/* CONFIG_MX6Q */
49cfb8b9d3SEric Nelson 
50cfb8b9d3SEric Nelson #endif	/*__ASM_ARCH_MX6_PINS_H__ */
51