]> git.kernelconcepts.de Git - karo-tx-uboot.git/commitdiff
mxc: gpio add i.MX6UL support
authorPeng Fan <Peng.Fan@freescale.com>
Mon, 20 Jul 2015 11:28:31 +0000 (19:28 +0800)
committerLothar Waßmann <LW@KARO-electronics.de>
Wed, 9 Sep 2015 19:01:39 +0000 (21:01 +0200)
i.MX6UL does not have GPIO6/7, so do not include them for i.MX6UL.

Signed-off-by: Peng Fan <Peng.Fan@freescale.com>
drivers/gpio/mxc_gpio.c

index 48c8113ff7abd9a5eff5e81436c087c2ca35ba14..d9d4b5f54d62cc324021dfe81052b9dc9882dd8e 100644 (file)
@@ -45,11 +45,15 @@ static unsigned long gpio_ports[] = {
 #endif
 #if defined(CONFIG_SOC_MX27) || defined(CONFIG_SOC_MX53) || defined(CONFIG_SOC_MX6)
        [4] = GPIO5_BASE_ADDR,
+#ifndef CONFIG_SOX_MX6UL
        [5] = GPIO6_BASE_ADDR,
 #endif
+#endif
 #if defined(CONFIG_SOC_MX53) || defined(CONFIG_SOC_MX6)
+#ifndef CONFIG_SOC_MX6UL
        [6] = GPIO7_BASE_ADDR,
 #endif
+#endif
 };
 
 static int mxc_gpio_direction(unsigned int gpio,