summaryrefslogtreecommitdiffstats
path: root/arch/mips/bcm47xx/nvram.c
diff options
context:
space:
mode:
authorRafał Miłecki <zajec5@gmail.com>2015-04-01 08:23:04 +0200
committerRalf Baechle <ralf@linux-mips.org>2015-04-02 13:54:20 +0200
commit6ab7c29099390b3d23c97f14498fd26a5ef6b22b (patch)
tree84c94d9de73ed148968f181138be08ec5d24d37f /arch/mips/bcm47xx/nvram.c
parent50c979109c484c07358a1ac75b99df36d563c132 (diff)
downloadop-kernel-dev-6ab7c29099390b3d23c97f14498fd26a5ef6b22b.zip
op-kernel-dev-6ab7c29099390b3d23c97f14498fd26a5ef6b22b.tar.gz
MIPS: BCM47XX: Increase NVRAM buffer size to 64 KiB
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>
Diffstat (limited to 'arch/mips/bcm47xx/nvram.c')
-rw-r--r--arch/mips/bcm47xx/nvram.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/mips/bcm47xx/nvram.c b/arch/mips/bcm47xx/nvram.c
index 2357ea3..2ac7482 100644
--- a/arch/mips/bcm47xx/nvram.c
+++ b/arch/mips/bcm47xx/nvram.c
@@ -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
OpenPOWER on IntegriCloud