Skip to content
Snippets Groups Projects
Commit f2753b06 authored by Peng Fan's avatar Peng Fan Committed by Stefano Babic
Browse files

mxc: gpio add i.MX6UL support


i.MX6UL does not have GPIO6/7, so do not include them for i.MX6UL.

Signed-off-by: default avatarPeng Fan <Peng.Fan@freescale.com>
parent 63ee5687
No related branches found
No related tags found
No related merge requests found
...@@ -45,11 +45,15 @@ static unsigned long gpio_ports[] = { ...@@ -45,11 +45,15 @@ static unsigned long gpio_ports[] = {
#endif #endif
#if defined(CONFIG_MX27) || defined(CONFIG_MX53) || defined(CONFIG_MX6) #if defined(CONFIG_MX27) || defined(CONFIG_MX53) || defined(CONFIG_MX6)
[4] = GPIO5_BASE_ADDR, [4] = GPIO5_BASE_ADDR,
#ifndef CONFIG_MX6UL
[5] = GPIO6_BASE_ADDR, [5] = GPIO6_BASE_ADDR,
#endif #endif
#endif
#if defined(CONFIG_MX53) || defined(CONFIG_MX6) #if defined(CONFIG_MX53) || defined(CONFIG_MX6)
#ifndef CONFIG_MX6UL
[6] = GPIO7_BASE_ADDR, [6] = GPIO7_BASE_ADDR,
#endif #endif
#endif
}; };
static int mxc_gpio_direction(unsigned int gpio, static int mxc_gpio_direction(unsigned int gpio,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment