Skip to content
Snippets Groups Projects
Commit 6183bb9e authored by Wolfgang Denk's avatar Wolfgang Denk
Browse files

MCC200: restrict addressable flash space to 32 MB

parent 463764c8
No related branches found
No related tags found
No related merge requests found
...@@ -2,6 +2,8 @@ ...@@ -2,6 +2,8 @@
Changes since U-Boot 1.1.4: Changes since U-Boot 1.1.4:
====================================================================== ======================================================================
* MCC200: restrict addressable flash space to 32 MB
* Add debug console on COM12 for MCC200 board * Add debug console on COM12 for MCC200 board
* Fix control-c handing in CONFIG_CMDLINE_EDITING * Fix control-c handing in CONFIG_CMDLINE_EDITING
......
...@@ -203,6 +203,8 @@ int checkboard (void) ...@@ -203,6 +203,8 @@ int checkboard (void)
int misc_init_r (void) int misc_init_r (void)
{ {
ulong flash_sup_end, snum;
/* /*
* Adjust flash start and offset to detected values * Adjust flash start and offset to detected values
*/ */
...@@ -257,6 +259,12 @@ int misc_init_r (void) ...@@ -257,6 +259,12 @@ int misc_init_r (void)
(flash_info[0].start[0] - 1) + flash_info[0].size, (flash_info[0].start[0] - 1) + flash_info[0].size,
&flash_info[0]); &flash_info[0]);
*(volatile int*)MPC5XXX_CS0_CFG &= ~(1 << 6); *(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); return (0);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment