diff options
author | kaloz <kaloz@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2011-02-25 17:26:25 +0000 |
---|---|---|
committer | kaloz <kaloz@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2011-02-25 17:26:25 +0000 |
commit | 1fe3868858a2771b7ab9e40bd3edf779f4aec01d (patch) | |
tree | eebb84afe1c47e37a03a59fb1a429252568e451b /target/linux/gemini/patches/003-wbd111-static-flash-map.patch | |
parent | 251a81393389b99059cdb1461dd9633e830b6243 (diff) |
[target/gemini]: upgrade to 2.6.37.1
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@25706 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/gemini/patches/003-wbd111-static-flash-map.patch')
-rw-r--r-- | target/linux/gemini/patches/003-wbd111-static-flash-map.patch | 64 |
1 files changed, 0 insertions, 64 deletions
diff --git a/target/linux/gemini/patches/003-wbd111-static-flash-map.patch b/target/linux/gemini/patches/003-wbd111-static-flash-map.patch deleted file mode 100644 index 1b9debb62..000000000 --- a/target/linux/gemini/patches/003-wbd111-static-flash-map.patch +++ /dev/null @@ -1,64 +0,0 @@ ---- a/arch/arm/mach-gemini/board-wbd111.c -+++ b/arch/arm/mach-gemini/board-wbd111.c -@@ -16,6 +16,8 @@ - #include <linux/skbuff.h> - #include <linux/gpio_keys.h> - #include <linux/mdio-gpio.h> -+#include <linux/mtd/mtd.h> -+#include <linux/mtd/partitions.h> - #include <asm/mach-types.h> - #include <asm/mach/arch.h> - #include <asm/mach/time.h> -@@ -102,12 +104,51 @@ static struct sys_timer wbd111_timer = { - .init = gemini_timer_init, - }; - -+#ifdef CONFIG_MTD_PARTITIONS -+static struct mtd_partition wbd111_partitions[] = { -+ { -+ .name = "RedBoot", -+ .offset = 0, -+ .size = 0x020000, -+ .mask_flags = MTD_WRITEABLE, -+ } , { -+ .name = "kernel", -+ .offset = 0x020000, -+ .size = 0x100000, -+ } , { -+ .name = "rootfs", -+ .offset = 0x120000, -+ .size = 0x6a0000, -+ } , { -+ .name = "VCTL", -+ .offset = 0x7c0000, -+ .size = 0x010000, -+ .mask_flags = MTD_WRITEABLE, -+ } , { -+ .name = "cfg", -+ .offset = 0x7d0000, -+ .size = 0x010000, -+ .mask_flags = MTD_WRITEABLE, -+ } , { -+ .name = "FIS", -+ .offset = 0x7e0000, -+ .size = 0x010000, -+ .mask_flags = MTD_WRITEABLE, -+ } -+}; -+#define wbd111_num_partitions ARRAY_SIZE(wbd111_partitions) -+#else -+#define wbd111_partitions NULL -+#define wbd111_num_partitions 0 -+#endif /* CONFIG_MTD_PARTITIONS */ -+ - static void __init wbd111_init(void) - { - gemini_gpio_init(); - platform_register_uart(); - platform_register_watchdog(); -- platform_register_pflash(SZ_8M, NULL, 0); -+ platform_register_pflash(SZ_8M, wbd111_partitions, -+ wbd111_num_partitions); - platform_device_register(&wbd111_leds_device); - platform_device_register(&wbd111_keys_device); - platform_device_register(&wbd111_phy_device); |