projects
/
oweals
/
u-boot.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
ppx4xx: Fix sdram init on PMC440 boards
[oweals/u-boot.git]
/
board
/
icu862
/
flash.c
diff --git
a/board/icu862/flash.c
b/board/icu862/flash.c
index 79e7cc28aeccb7e87237f61a5ef763c8167639fe..ca5bcf31af5c01607c69221f82c27a29765f0f88 100644
(file)
--- a/
board/icu862/flash.c
+++ b/
board/icu862/flash.c
@@
-104,7
+104,7
@@
unsigned long flash_init (void)
/* monitor protection ON by default */
flash_protect(FLAG_PROTECT_SET,
CFG_MONITOR_BASE,
/* monitor protection ON by default */
flash_protect(FLAG_PROTECT_SET,
CFG_MONITOR_BASE,
- CFG_MONITOR_BASE+
CFG_MONITOR_LEN
-1,
+ CFG_MONITOR_BASE+
monitor_flash_len
-1,
&flash_info[0]);
#endif
&flash_info[0]);
#endif
@@
-251,7
+251,7
@@
static ulong flash_get_size (vu_long *addr, flash_info_t *info)
value = addr[1]; /* device ID */
value = addr[1]; /* device ID */
- switch (value) {
+ switch (
(unsigned long)
value) {
case AMD_ID_F040B:
info->flash_id += FLASH_AM040;
info->sector_count = 8;
case AMD_ID_F040B:
info->flash_id += FLASH_AM040;
info->sector_count = 8;