[ar7] increase flash window size to 32MiB, patch from sn9.
[openwrt/svn-archive/archive.git] / target / linux / ar7 / patches-2.6.32 / 110-flash.patch
1 Index: linux-2.6.32.25/drivers/mtd/maps/physmap.c
2 ===================================================================
3 --- linux-2.6.32.25.orig/drivers/mtd/maps/physmap.c 2010-10-28 21:47:22.000000000 -0700
4 +++ linux-2.6.32.25/drivers/mtd/maps/physmap.c 2010-11-16 08:14:11.469582161 -0800
5 @@ -80,7 +80,7 @@
6 "map_rom",
7 NULL };
8 #ifdef CONFIG_MTD_PARTITIONS
9 -static const char *part_probe_types[] = { "cmdlinepart", "RedBoot", NULL };
10 +static const char *part_probe_types[] = { "cmdlinepart", "RedBoot", "ar7part", NULL };
11 #endif
12
13 static int physmap_flash_probe(struct platform_device *dev)
14 Index: linux-2.6.32.25/arch/mips/ar7/platform.c
15 ===================================================================
16 --- linux-2.6.32.25.orig/arch/mips/ar7/platform.c 2010-11-16 08:17:41.352090063 -0800
17 +++ linux-2.6.32.25/arch/mips/ar7/platform.c 2010-11-16 08:18:09.232119441 -0800
18 @@ -98,7 +98,7 @@
19 .name = "mem",
20 .flags = IORESOURCE_MEM,
21 .start = 0x10000000,
22 - .end = 0x107fffff,
23 + .end = 0x11ffffff,
24 };
25
26 static struct resource cpmac_low_res[] = {