
Kumar
Now I wonder if a similar thing might be done in start.S, so that the [re] mapped size of flash complies with what is defined in the config file? Either from flash size, or from the _PRELIM_* settings that are already there? Instead of current status quo of hardwired to 8M flash size?
Make System IO Config Registers board configurable on MPC83xx
Signed-off-by: Kumar Gala galak@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@kernel.crashing.org Wed, 23 Nov 2005 14:31:37 -0600 committer Kumar Gala galak@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
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click