From a2fceb4461e43c22e299ee300574d17a6814660a Mon Sep 17 00:00:00 2001
From: Troy Kisky <troy.kisky@boundarydevices.com>
Date: Thu, 18 Dec 2014 12:14:40 -0700
Subject: [PATCH] iomux-v3: add IOMUX_PAD_CTRL macro definition

iomux-v3: add IOMUX_PAD_CTRL for CONFIG_MX7D
iomux-v3: add IOMUX_PAD_CTRL for imx51
iomux-v3: add support for i.mx53 with IOMUX_PAD_CTRL

Signed-off-by: Troy Kisky <troy.kisky@boundarydevices.com>
---
 arch/arm/include/asm/mach-imx/iomux-v3.h | 16 ++++++++++++++++
 1 file changed, 16 insertions(+)

diff --git a/arch/arm/include/asm/mach-imx/iomux-v3.h b/arch/arm/include/asm/mach-imx/iomux-v3.h
index bb930586379..933f2197526 100644
--- a/arch/arm/include/asm/mach-imx/iomux-v3.h
+++ b/arch/arm/include/asm/mach-imx/iomux-v3.h
@@ -286,4 +286,20 @@ if (is_mx6dq() || is_mx6dqp()) {				\
 	imx_iomux_v3_setup_multiple_pads(x, ARRAY_SIZE(x))
 #endif
 
+
+#if defined(CONFIG_MX6QDL)
+#define IOMUX_PAD_CTRL(name, ctrl)	NEW_PAD_CTRL(MX6Q_PAD_##name, ctrl), \
+					NEW_PAD_CTRL(MX6DL_PAD_##name, ctrl)
+#elif defined(CONFIG_MX7D)
+#define IOMUX_PAD_CTRL(name, ctrl)	NEW_PAD_CTRL(MX7D_PAD_##name, ctrl)
+#elif defined(CONFIG_MX51)
+#define IOMUX_PAD_CTRL(name, ctrl)	NEW_PAD_CTRL(MX51_PAD_##name, ctrl)
+#elif defined(CONFIG_MX53)
+#define IOMUX_PAD_CTRL(name, ctrl)	NEW_PAD_CTRL(MX53_PAD_##name, ctrl)
+#elif defined(CONFIG_MX8M)
+#define IOMUX_PAD_CTRL(name, ctrl)	NEW_PAD_CTRL(IMX8MQ_PAD_##name, ctrl)
+#else
+#define IOMUX_PAD_CTRL(name, ctrl)	NEW_PAD_CTRL(MX6_PAD_##name, ctrl)
+#endif
+
 #endif	/* __MACH_IOMUX_V3_H__*/
-- 
GitLab