summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLiu Hui-R64343 <r64343@freescale.com>2011-01-03 22:27:38 +0000
committerAlbert Aribaud <albert.aribaud@free.fr>2011-02-02 00:54:42 +0100
commit01643ec180d975192e2a1fcf964dd3239bebc75a (patch)
treea870ec166d34c28816145ee02abface74704d421
parent0c466ad017cebd4919b9905eb82a99140163be76 (diff)
downloadu-boot-imx-01643ec180d975192e2a1fcf964dd3239bebc75a.zip
u-boot-imx-01643ec180d975192e2a1fcf964dd3239bebc75a.tar.gz
u-boot-imx-01643ec180d975192e2a1fcf964dd3239bebc75a.tar.bz2
mxc_gpio: add support for MX53 processor
This patch add mxc_gpio support for Freescale MX53 processor Signed-off-by: Jason Liu <r64343@freescale.com>
-rw-r--r--drivers/gpio/mxc_gpio.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/drivers/gpio/mxc_gpio.c b/drivers/gpio/mxc_gpio.c
index 663141f..53a0673 100644
--- a/drivers/gpio/mxc_gpio.c
+++ b/drivers/gpio/mxc_gpio.c
@@ -24,7 +24,7 @@
#ifdef CONFIG_MX31
#include <asm/arch/mx31-regs.h>
#endif
-#ifdef CONFIG_MX51
+#if defined(CONFIG_MX51) || defined(CONFIG_MX53)
#include <asm/arch/imx-regs.h>
#endif
#include <asm/io.h>
@@ -35,9 +35,14 @@ static unsigned long gpio_ports[] = {
[0] = GPIO1_BASE_ADDR,
[1] = GPIO2_BASE_ADDR,
[2] = GPIO3_BASE_ADDR,
-#ifdef CONFIG_MX51
+#if defined(CONFIG_MX51) || defined(CONFIG_MX53)
[3] = GPIO4_BASE_ADDR,
#endif
+#if defined(CONFIG_MX53)
+ [4] = GPIO5_BASE_ADDR,
+ [5] = GPIO6_BASE_ADDR,
+ [6] = GPIO7_BASE_ADDR,
+#endif
};
int mxc_gpio_direction(unsigned int gpio, enum mxc_gpio_direction direction)