Allow config of GPIO direction & data registers at boot on 83xx
authorKumar Gala <galak@kernel.crashing.org>
Wed, 11 Jan 2006 17:21:14 +0000 (11:21 -0600)
committerKumar Gala <galak@kernel.crashing.org>
Wed, 11 Jan 2006 17:21:14 +0000 (11:21 -0600)
Patch by Kumar Gala, 11 Jan 2006

CHANGELOG
cpu/mpc83xx/cpu_init.c

index dae3cdc1d1ac35b6e4f3eb46697b12736252707a..ec68f1b2a032daae339f38a1a454dec90b54b56d 100644 (file)
--- 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
 
index e75b8b7fde1362c07fa3f7c6b4dfdabc319f04e4..db28a6a31a88fc4481eaa65e3923d1b35c5dce04 100644 (file)
@@ -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
 }