public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot] [PATCH 1/3] mxc_gpio: add support for MX53 processor
@ 2010-12-22 13:23 Jason Liu
  2010-12-22 13:23 ` [U-Boot] [PATCH 2/3] fsl_pmic: add I2C interface support Jason Liu
                   ` (2 more replies)
  0 siblings, 3 replies; 13+ messages in thread
From: Jason Liu @ 2010-12-22 13:23 UTC (permalink / raw)
  To: u-boot

This patch add mxc_gpio support for Freescale MX53 processor

Signed-off-by: Jason Liu <r64343@freescale.com>
---
 drivers/gpio/mxc_gpio.c |    9 +++++++--
 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)
-- 
1.7.0.4

^ permalink raw reply related	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2010-12-28  9:21 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-12-22 13:23 [U-Boot] [PATCH 1/3] mxc_gpio: add support for MX53 processor Jason Liu
2010-12-22 13:23 ` [U-Boot] [PATCH 2/3] fsl_pmic: add I2C interface support Jason Liu
2010-12-27 10:43   ` Stefano Babic
2010-12-28  8:00     ` Jason Liu
2010-12-28  8:53     ` Jason Liu
2010-12-22 13:23 ` [U-Boot] [PATCH 3/3] imximage: Add MX53 boot image support Jason Liu
2010-12-27 10:55   ` Stefano Babic
2010-12-28  8:08     ` Jason Liu
2010-12-28  8:23       ` Stefano Babic
2010-12-28  8:34         ` Jason Liu
2010-12-28  9:21           ` Stefano Babic
2010-12-27 10:26 ` [U-Boot] [PATCH 1/3] mxc_gpio: add support for MX53 processor Stefano Babic
2010-12-28  8:00   ` Jason Liu

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox