[U-Boot-Users] [PATCH] Make System IO Config Registers board configurable on MPC83xx

Kumar Gala galak at gate.crashing.org
Wed Nov 23 21:31:32 CET 2005


Make System IO Config Registers board configurable on MPC83xx

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

CHANGELOG:
* Make System IO Config Registers board configurable on MPC83xx
  Patch by Kumar Gala 23 Nov 2005

---
commit 01b445b70c5e296c115b93a894ff3c7ffc1586d5
tree 2a2398b1bd34aa9b79e7ba34b4ccf7c28c932734
parent f6a259d086597f691d821a5ac2181ce249fad987
author Kumar Gala <galak at kernel.crashing.org> Wed, 23 Nov 2005 14:31:37 -0600
committer Kumar Gala <galak at kernel.crashing.org> Wed, 23 Nov 2005 14:31:37 -0600

 cpu/mpc83xx/cpu_init.c       |    8 ++++++--
 include/configs/MPC8349ADS.h |    4 ++++
 include/configs/TQM834x.h    |    4 ++++
 3 files changed, 14 insertions(+), 2 deletions(-)

diff --git a/cpu/mpc83xx/cpu_init.c b/cpu/mpc83xx/cpu_init.c
index dcb3445..e75b8b7 100644
--- a/cpu/mpc83xx/cpu_init.c
+++ b/cpu/mpc83xx/cpu_init.c
@@ -63,8 +63,12 @@ void cpu_init_f (volatile immap_t * im)
 	im->sysconf.spcr |= SPCR_TBEN;
 
 	/* System General Purpose Register */
-	im->sysconf.sicrh = SICRH_TSOBI1;
-	im->sysconf.sicrl = SICRL_LDP_A;
+#ifdef CFG_SICRH
+	im->sysconf.sicrh = CFG_SICRH;
+#endif
+#ifdef CFG_SICRL
+	im->sysconf.sicrl = CFG_SICRL;
+#endif
 
 	/*
 	 * Memory Controller:
diff --git a/include/configs/MPC8349ADS.h b/include/configs/MPC8349ADS.h
index 41309ac..7197e0f 100644
--- a/include/configs/MPC8349ADS.h
+++ b/include/configs/MPC8349ADS.h
@@ -504,6 +504,10 @@
 	HRCWH_TSEC2M_IN_GMII )
 #endif
 
+/* System IO Config */
+#define CFG_SICRH	SICRH_TSOBI1
+#define CFG_SICRL	SICRL_LDP_A
+
 #define CFG_HID0_INIT 0x000000000
 
 #define CFG_HID0_FINAL CFG_HID0_INIT
diff --git a/include/configs/TQM834x.h b/include/configs/TQM834x.h
index c25a777..a2184ee 100644
--- a/include/configs/TQM834x.h
+++ b/include/configs/TQM834x.h
@@ -417,6 +417,10 @@ extern int tqm834x_num_flash_banks;
 	HRCWH_TSEC2M_IN_GMII )
 #endif
 
+/* System IO Config */
+#define CFG_SICRH	SICRH_TSOBI1
+#define CFG_SICRL	SICRL_LDP_A
+
 /* i-cache and d-cache disabled */
 #define CFG_HID0_INIT		0x000000000
 #define CFG_HID0_FINAL		CFG_HID0_INIT





More information about the U-Boot mailing list