summaryrefslogtreecommitdiff
path: root/board/pm520/flash.c
diff options
context:
space:
mode:
authorWolfgang Denk <wd@pollux.(none)>2006-01-13 17:00:56 +0100
committerWolfgang Denk <wd@pollux.(none)>2006-01-13 17:00:56 +0100
commitc4b465f63e3b6fc998526dc217ff988e5c91e667 (patch)
tree7dee685de9ac8af3c6779597e5c2d55581d8f6e4 /board/pm520/flash.c
parent756ceb8935ee926d8466907cdac7441f14881317 (diff)
downloadu-boot-imx-c4b465f63e3b6fc998526dc217ff988e5c91e667.zip
u-boot-imx-c4b465f63e3b6fc998526dc217ff988e5c91e667.tar.gz
u-boot-imx-c4b465f63e3b6fc998526dc217ff988e5c91e667.tar.bz2
Fix 28F256J3A support on PM520 board
(without bank-switching only 32 MB can be accessed)
Diffstat (limited to 'board/pm520/flash.c')
-rw-r--r--board/pm520/flash.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/board/pm520/flash.c b/board/pm520/flash.c
index ccd0bd1..38f579b 100644
--- a/board/pm520/flash.c
+++ b/board/pm520/flash.c
@@ -242,10 +242,11 @@ static ulong flash_get_size (FPW *addr, flash_info_t *info)
case (FPW) INTEL_ID_28F256J3A:
info->flash_id += FLASH_28F256J3A;
- info->sector_count = 256;
- info->size = 0x04000000;
- info->start[0] = CFG_FLASH_BASE;
- break; /* => 64 MB */
+ /* In U-Boot we support only 32 MB (no bank-switching) */
+ info->sector_count = 256 / 2;
+ info->size = 0x04000000 / 2;
+ info->start[0] = CFG_FLASH_BASE + 0x02000000;
+ break; /* => 32 MB */
case (FPW) INTEL_ID_28F128J3A:
info->flash_id += FLASH_28F128J3A;