From: Rafał Miłecki Date: Wed, 1 Apr 2015 06:23:04 +0000 (+0200) Subject: MIPS: BCM47XX: Increase NVRAM buffer size to 64 KiB X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=6ab7c29099390b3d23c97f14498fd26a5ef6b22b;p=linux-beck.git 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 Cc: linux-mips@linux-mips.org Cc: Hauke Mehrtens Patchwork: https://patchwork.linux-mips.org/patch/9651/ Signed-off-by: Ralf Baechle --- diff --git a/arch/mips/bcm47xx/nvram.c b/arch/mips/bcm47xx/nvram.c index 2357ea322d48..2ac74825397c 100644 --- a/arch/mips/bcm47xx/nvram.c +++ b/arch/mips/bcm47xx/nvram.c @@ -20,7 +20,7 @@ #include #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