aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/rdc
diff options
context:
space:
mode:
authorFlorian Fainelli <florian@openwrt.org>2008-11-01 16:06:06 +0000
committerFlorian Fainelli <florian@openwrt.org>2008-11-01 16:06:06 +0000
commit9e98573a53e81aa35cd43f837a28095a4fdd8b3b (patch)
tree8f779b548c12d171a742d660ed611f39e3250c59 /target/linux/rdc
parente0fc95a2ab722eadfdbf5f44acd43d455058c992 (diff)
downloadupstream-9e98573a53e81aa35cd43f837a28095a4fdd8b3b.tar.gz
upstream-9e98573a53e81aa35cd43f837a28095a4fdd8b3b.tar.bz2
upstream-9e98573a53e81aa35cd43f837a28095a4fdd8b3b.zip
Flash mapping fixes from sn9, thanks
SVN-Revision: 13090
Diffstat (limited to 'target/linux/rdc')
-rw-r--r--target/linux/rdc/files/arch/i386/mach-rdc/platform.c21
-rw-r--r--target/linux/rdc/files/arch/x86/mach-rdc/platform.c21
2 files changed, 24 insertions, 18 deletions
diff --git a/target/linux/rdc/files/arch/i386/mach-rdc/platform.c b/target/linux/rdc/files/arch/i386/mach-rdc/platform.c
index a58ee0f42b..e6ac7354a1 100644
--- a/target/linux/rdc/files/arch/i386/mach-rdc/platform.c
+++ b/target/linux/rdc/files/arch/i386/mach-rdc/platform.c
@@ -239,16 +239,19 @@ static __init int rdc_board_setup(void)
rdc_flash_parts[1].name = "rootfs";
rdc_flash_parts[1].offset = 0x100000;
rdc_flash_parts[1].size = rdc_map_info.size - 0x140000;
- rdc_flash_parts[2].name = "config";
- rdc_flash_parts[2].offset = rdc_map_info.size - 0x40000;
- rdc_flash_parts[2].size = 0x10000;
- rdc_flash_parts[3].name = "productinfo";
- rdc_flash_parts[3].offset = rdc_map_info.size - 0x30000;
+ rdc_flash_parts[2].name = "linux";
+ rdc_flash_parts[2].offset = 0;
+ rdc_flash_parts[2].size = rdc_map_info.size - 0x40000;
+ rdc_flash_parts[3].name = "config";
+ rdc_flash_parts[3].offset = rdc_map_info.size - 0x40000;
rdc_flash_parts[3].size = 0x10000;
- rdc_flash_parts[4].name = "bootloader";
- rdc_flash_parts[4].offset = rdc_map_info.size - 0x20000;
- rdc_flash_parts[4].size = 0x20000;
- rdc_flash_data.nr_parts = 5;
+ rdc_flash_parts[4].name = "productinfo";
+ rdc_flash_parts[4].offset = rdc_map_info.size - 0x30000;
+ rdc_flash_parts[4].size = 0x10000;
+ rdc_flash_parts[5].name = "bootloader";
+ rdc_flash_parts[5].offset = rdc_map_info.size - 0x20000;
+ rdc_flash_parts[5].size = 0x20000;
+ rdc_flash_data.nr_parts = 6;
}
#endif
return platform_add_devices(rdc321x_devs, ARRAY_SIZE(rdc321x_devs));
diff --git a/target/linux/rdc/files/arch/x86/mach-rdc/platform.c b/target/linux/rdc/files/arch/x86/mach-rdc/platform.c
index a58ee0f42b..e6ac7354a1 100644
--- a/target/linux/rdc/files/arch/x86/mach-rdc/platform.c
+++ b/target/linux/rdc/files/arch/x86/mach-rdc/platform.c
@@ -239,16 +239,19 @@ static __init int rdc_board_setup(void)
rdc_flash_parts[1].name = "rootfs";
rdc_flash_parts[1].offset = 0x100000;
rdc_flash_parts[1].size = rdc_map_info.size - 0x140000;
- rdc_flash_parts[2].name = "config";
- rdc_flash_parts[2].offset = rdc_map_info.size - 0x40000;
- rdc_flash_parts[2].size = 0x10000;
- rdc_flash_parts[3].name = "productinfo";
- rdc_flash_parts[3].offset = rdc_map_info.size - 0x30000;
+ rdc_flash_parts[2].name = "linux";
+ rdc_flash_parts[2].offset = 0;
+ rdc_flash_parts[2].size = rdc_map_info.size - 0x40000;
+ rdc_flash_parts[3].name = "config";
+ rdc_flash_parts[3].offset = rdc_map_info.size - 0x40000;
rdc_flash_parts[3].size = 0x10000;
- rdc_flash_parts[4].name = "bootloader";
- rdc_flash_parts[4].offset = rdc_map_info.size - 0x20000;
- rdc_flash_parts[4].size = 0x20000;
- rdc_flash_data.nr_parts = 5;
+ rdc_flash_parts[4].name = "productinfo";
+ rdc_flash_parts[4].offset = rdc_map_info.size - 0x30000;
+ rdc_flash_parts[4].size = 0x10000;
+ rdc_flash_parts[5].name = "bootloader";
+ rdc_flash_parts[5].offset = rdc_map_info.size - 0x20000;
+ rdc_flash_parts[5].size = 0x20000;
+ rdc_flash_data.nr_parts = 6;
}
#endif
return platform_add_devices(rdc321x_devs, ARRAY_SIZE(rdc321x_devs));