diff options
author | Florian Fainelli <florian@openwrt.org> | 2009-12-06 09:08:03 +0000 |
---|---|---|
committer | Florian Fainelli <florian@openwrt.org> | 2009-12-06 09:08:03 +0000 |
commit | 8c2091f823699ac7f7e10ab0dc7512dcc956b043 (patch) | |
tree | 3697bb3c214dab236f399958dcf7ef1491383b97 /target/linux/rdc/files-2.6.30/arch | |
parent | ece1801c1f85b706a6e2b333361c0f5ea96a7732 (diff) | |
download | upstream-8c2091f823699ac7f7e10ab0dc7512dcc956b043.tar.gz upstream-8c2091f823699ac7f7e10ab0dc7512dcc956b043.tar.bz2 upstream-8c2091f823699ac7f7e10ab0dc7512dcc956b043.zip |
correct flash size and detection for sitecom targets (#6278), patch from rtz
SVN-Revision: 18671
Diffstat (limited to 'target/linux/rdc/files-2.6.30/arch')
-rw-r--r-- | target/linux/rdc/files-2.6.30/arch/x86/mach-rdc321x/platform.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/target/linux/rdc/files-2.6.30/arch/x86/mach-rdc321x/platform.c b/target/linux/rdc/files-2.6.30/arch/x86/mach-rdc321x/platform.c index e319c02b33..f59cb15a7c 100644 --- a/target/linux/rdc/files-2.6.30/arch/x86/mach-rdc321x/platform.c +++ b/target/linux/rdc/files-2.6.30/arch/x86/mach-rdc321x/platform.c @@ -161,15 +161,15 @@ static int __init rdc_board_setup(void) ROOT_DEV = 0; rdc_map_info.name = rdc_flash_device.name; - rdc_map_info.phys = 0xff000000; - rdc_map_info.size = 0x1000000; + rdc_map_info.size = 0x800000; //8MB + rdc_map_info.phys = (u32) -rdc_map_info.size; rdc_map_info.bankwidth = 2; rdc_map_info.set_vpp = NULL; simple_map_init(&rdc_map_info); while (probe_flash_start(&rdc_map_info)) { - rdc_map_info.phys++; - if (--rdc_map_info.size) + if (rdc_map_info.size /= 2 < 0x100000) //1MB panic("Could not find start of flash!"); + rdc_map_info.phys = (u32) -rdc_map_info.size; } rdc_flash_resource.start = rdc_map_info.phys; rdc_flash_data.width = rdc_map_info.bankwidth; |