summaryrefslogtreecommitdiffstats
path: root/drivers/gpio
diff options
context:
space:
mode:
authorPeng Fan <Peng.Fan@freescale.com>2015-07-20 19:28:31 +0800
committerStefano Babic <sbabic@denx.de>2015-08-02 11:05:08 +0200
commitf2753b06813f1debdb9d13c895d4f15acb8f2769 (patch)
treeddff67a8da39f7a63153ba6051f7d0dbdf983557 /drivers/gpio
parent63ee5687fc68b4a6b824e2565a6ecd6857c04eec (diff)
downloadu-boot-f2753b06813f1debdb9d13c895d4f15acb8f2769.tar.gz
u-boot-f2753b06813f1debdb9d13c895d4f15acb8f2769.tar.xz
u-boot-f2753b06813f1debdb9d13c895d4f15acb8f2769.zip
mxc: gpio add i.MX6UL support
i.MX6UL does not have GPIO6/7, so do not include them for i.MX6UL. Signed-off-by: Peng Fan <Peng.Fan@freescale.com>
Diffstat (limited to 'drivers/gpio')
-rw-r--r--drivers/gpio/mxc_gpio.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/gpio/mxc_gpio.c b/drivers/gpio/mxc_gpio.c
index 2012f994c8..57a650f750 100644
--- a/drivers/gpio/mxc_gpio.c
+++ b/drivers/gpio/mxc_gpio.c
@@ -45,11 +45,15 @@ static unsigned long gpio_ports[] = {
#endif
#if defined(CONFIG_MX27) || defined(CONFIG_MX53) || defined(CONFIG_MX6)
[4] = GPIO5_BASE_ADDR,
+#ifndef CONFIG_MX6UL
[5] = GPIO6_BASE_ADDR,
#endif
+#endif
#if defined(CONFIG_MX53) || defined(CONFIG_MX6)
+#ifndef CONFIG_MX6UL
[6] = GPIO7_BASE_ADDR,
#endif
+#endif
};
static int mxc_gpio_direction(unsigned int gpio,