[U-Boot-Users] [PATCH] Allow config of GPIO direction & data registers at boot on 83xx

Kumar Gala galak at gate.crashing.org
Thu Dec 15 00:53:38 CET 2005


Allow config of GPIO direction & data registers at boot on 83xx

Signed-off-by: Kumar Gala <galak at kernel.crashing.org>

CHANGELOG:
* Allow config of GPIO direction & data registers at boot on 83xx
  Patch by Kumar Gala 14 Dec 2005

Signed-off-by: Kumar Gala <galak at kernel.crashing.org>

---
commit 318fab58c6c6cd81b407edd2a06a35f4778f9bc9
tree 4c59954eab46500b5b75f2201cc1a9c631c0d23c
parent 08dac06850e30a256df62803e8ca22c86f92c7cb
author Kumar Gala <galak at kernel.crashing.org> Wed, 14 Dec 2005 17:53:19 -0600
committer Kumar Gala <galak at kernel.crashing.org> Wed, 14 Dec 2005 17:53:19 -0600

 cpu/mpc83xx/cpu_init.c |    8 ++++++++
 1 files changed, 8 insertions(+), 0 deletions(-)

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
 }
 
 





More information about the U-Boot mailing list