diff options
author | Wolfgang Denk <wd@pollux.denx.de> | 2006-08-17 00:50:26 +0200 |
---|---|---|
committer | Wolfgang Denk <wd@pollux.denx.de> | 2006-08-17 00:50:26 +0200 |
commit | 6183bb9e5be52582d99c50e676fbed6a77ccc526 (patch) | |
tree | 2c90d32b2d84360eddf136362546cd79642cdbd8 | |
parent | 463764c893a657124eb2818e3103a04171bcbda1 (diff) | |
download | u-boot-imx-6183bb9e5be52582d99c50e676fbed6a77ccc526.zip u-boot-imx-6183bb9e5be52582d99c50e676fbed6a77ccc526.tar.gz u-boot-imx-6183bb9e5be52582d99c50e676fbed6a77ccc526.tar.bz2 |
MCC200: restrict addressable flash space to 32 MB
-rw-r--r-- | CHANGELOG | 2 | ||||
-rw-r--r-- | board/mcc200/mcc200.c | 8 |
2 files changed, 10 insertions, 0 deletions
@@ -2,6 +2,8 @@ Changes since U-Boot 1.1.4: ====================================================================== +* MCC200: restrict addressable flash space to 32 MB + * Add debug console on COM12 for MCC200 board * Fix control-c handing in CONFIG_CMDLINE_EDITING diff --git a/board/mcc200/mcc200.c b/board/mcc200/mcc200.c index 167dc0f..775030c 100644 --- a/board/mcc200/mcc200.c +++ b/board/mcc200/mcc200.c @@ -203,6 +203,8 @@ int checkboard (void) int misc_init_r (void) { + ulong flash_sup_end, snum; + /* * Adjust flash start and offset to detected values */ @@ -257,6 +259,12 @@ int misc_init_r (void) (flash_info[0].start[0] - 1) + flash_info[0].size, &flash_info[0]); *(volatile int*)MPC5XXX_CS0_CFG &= ~(1 << 6); + printf ("Warning: Only 32 of 64 MB of Flash are accessible from U-Boot\n"); + flash_info[0].size = 32 << 20; + for (snum = 0, flash_sup_end = gd->bd->bi_flashstart + (32<<20); + flash_info[0].start[snum] < flash_sup_end; + snum++); + flash_info[0].sector_count = snum; } return (0); |