increase the flash resource size to its maximum value
authorFlorian Fainelli <florian@openwrt.org>
Sat, 13 Oct 2012 17:47:20 +0000 (17:47 +0000)
committerFlorian Fainelli <florian@openwrt.org>
Sat, 13 Oct 2012 17:47:20 +0000 (17:47 +0000)
CFI detection will reduce the resource size to its real value.

Patch from Daniel Gimpelevich.

SVN-Revision: 33752

target/linux/ar7/patches-3.3/110-flash.patch

index 58ce7eaa40daa5bbe0b6723c66b7edcdc75dab5e..80229c104fc621bd972d3d9ad7fb348d3af9f0d2 100644 (file)
  obj-$(CONFIG_MTD_BCM63XX_PARTS)       += bcm63xxpart.o
  obj-$(CONFIG_MTD_MYLOADER_PARTS) += myloader.o
  
+--- a/arch/mips/ar7/platform.c
++++ b/arch/mips/ar7/platform.c
+@@ -199,7 +199,7 @@ static struct resource physmap_flash_res
+       .name   = "mem",
+       .flags  = IORESOURCE_MEM,
+       .start  = 0x10000000,
+-      .end    = 0x107fffff,
++      .end    = 0x11ffffff,
+ };
+ static struct physmap_flash_data physmap_flash_data = {