MIPS: BCM47XX: Increase NVRAM buffer size to 64 KiB
authorRafał Miłecki <zajec5@gmail.com>
Wed, 1 Apr 2015 06:23:04 +0000 (08:23 +0200)
committerRalf Baechle <ralf@linux-mips.org>
Thu, 2 Apr 2015 11:54:20 +0000 (13:54 +0200)
For years Broadcom devices use 64 KiB NVRAM partition size and some of
them indeed have it filled in more than 50%. This change allows reading
whole NVRAM e.g. on Netgear WNDR4500 and Netgear R8000.

Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
Cc: linux-mips@linux-mips.org
Cc: Hauke Mehrtens <hauke@hauke-m.de>
Patchwork: https://patchwork.linux-mips.org/patch/9651/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
arch/mips/bcm47xx/nvram.c

index 2357ea3..2ac7482 100644 (file)
@@ -20,7 +20,7 @@
 #include <linux/bcm47xx_nvram.h>
 
 #define NVRAM_MAGIC                    0x48534C46      /* 'FLSH' */
-#define NVRAM_SPACE                    0x8000
+#define NVRAM_SPACE                    0x10000
 #define NVRAM_MAX_GPIO_ENTRIES         32
 #define NVRAM_MAX_GPIO_VALUE_LEN       30