summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKumar Gala <galak@kernel.crashing.org>2006-01-11 11:21:14 -0600
committerKumar Gala <galak@kernel.crashing.org>2006-01-11 11:21:14 -0600
commita15b44dbfa2e4537b231da066b589992b0ee629d (patch)
treea0f1f6554d9559a8cb913f2c06ab4cee1edaa12d
parentce574ff5060b63b1bad143d84f0c386892d3243f (diff)
downloadu-boot-imx-a15b44dbfa2e4537b231da066b589992b0ee629d.zip
u-boot-imx-a15b44dbfa2e4537b231da066b589992b0ee629d.tar.gz
u-boot-imx-a15b44dbfa2e4537b231da066b589992b0ee629d.tar.bz2
Allow config of GPIO direction & data registers at boot on 83xx
Patch by Kumar Gala, 11 Jan 2006
-rw-r--r--CHANGELOG3
-rw-r--r--cpu/mpc83xx/cpu_init.c8
2 files changed, 11 insertions, 0 deletions
diff --git a/CHANGELOG b/CHANGELOG
index dae3cdc..ec68f1b 100644
--- a/CHANGELOG
+++ b/CHANGELOG
@@ -2,6 +2,9 @@
Changes since U-Boot 1.1.4:
======================================================================
+* Allow config of GPIO direction & data registers at boot on 83xx
+ Patch by Kumar Gala, 11 Jan 2006
+
* Enable time handling on 83xx
Patch by Kumar Gala, 11 Jan 2006
diff --git a/cpu/mpc83xx/cpu_init.c b/cpu/mpc83xx/cpu_init.c
index e75b8b7..db28a6a 100644
--- a/cpu/mpc83xx/cpu_init.c
+++ b/cpu/mpc83xx/cpu_init.c
@@ -154,6 +154,14 @@ void cpu_init_f (volatile immap_t * im)
im->sysconf.lblaw[7].bar = CFG_LBLAWBAR7_PRELIM;
im->sysconf.lblaw[7].ar = CFG_LBLAWAR7_PRELIM;
#endif
+#ifdef CFG_GPIO1_PRELIM
+ im->pgio[0].dir = CFG_GPIO1_DIR;
+ im->pgio[0].dat = CFG_GPIO1_DAT;
+#endif
+#ifdef CFG_GPIO2_PRELIM
+ im->pgio[1].dir = CFG_GPIO2_DIR;
+ im->pgio[1].dat = CFG_GPIO2_DAT;
+#endif
}