summaryrefslogtreecommitdiff
path: root/board
diff options
context:
space:
mode:
authorJoe Hershberger <joe.hershberger@ni.com>2011-11-11 15:55:38 -0600
committerKim Phillips <kim.phillips@freescale.com>2012-01-09 20:10:33 -0600
commit0eaf8f9ea8e17f642f65c058cc6ed70e5e1441e7 (patch)
tree6f200aacb2a8dbecbc94f49b4366cd0087c8a5f7 /board
parent4b5657938853ea3f478d86408e6534cb3a89ec11 (diff)
downloadu-boot-imx-0eaf8f9ea8e17f642f65c058cc6ed70e5e1441e7.zip
u-boot-imx-0eaf8f9ea8e17f642f65c058cc6ed70e5e1441e7.tar.gz
u-boot-imx-0eaf8f9ea8e17f642f65c058cc6ed70e5e1441e7.tar.bz2
mpc8313erdb: Enable GPIO support on the MPC8313E RDB
Signed-off-by: Joe Hershberger <joe.hershberger@ni.com> Cc: Joe Hershberger <joe.hershberger@gmail.com> Signed-off-by: Kim Phillips <kim.phillips@freescale.com>
Diffstat (limited to 'board')
-rw-r--r--board/freescale/mpc8313erdb/mpc8313erdb.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/board/freescale/mpc8313erdb/mpc8313erdb.c b/board/freescale/mpc8313erdb/mpc8313erdb.c
index 08f873d..730ec4e 100644
--- a/board/freescale/mpc8313erdb/mpc8313erdb.c
+++ b/board/freescale/mpc8313erdb/mpc8313erdb.c
@@ -31,6 +31,9 @@
#include <vsc7385.h>
#include <ns16550.h>
#include <nand.h>
+#if defined(CONFIG_MPC83XX_GPIO) && !defined(CONFIG_NAND_SPL)
+#include <asm/gpio.h>
+#endif
DECLARE_GLOBAL_DATA_PTR;
@@ -42,6 +45,18 @@ int board_early_init_f(void)
if (im->pmc.pmccr1 & PMCCR1_POWER_OFF)
gd->flags |= GD_FLG_SILENT;
#endif
+#if defined(CONFIG_MPC83XX_GPIO) && !defined(CONFIG_NAND_SPL)
+ mpc83xx_gpio_init_f();
+#endif
+
+ return 0;
+}
+
+int board_early_init_r(void)
+{
+#if defined(CONFIG_MPC83XX_GPIO) && !defined(CONFIG_NAND_SPL)
+ mpc83xx_gpio_init_r();
+#endif
return 0;
}