brcm47xx: backport MIPS BCM47XX patches queued for 4.1
[openwrt.git] / target / linux / brcm47xx / patches-3.18 / 031-08-MIPS-BCM47XX-Increase-NVRAM-buffer-size-to-64-KiB.patch
1 From 6ab7c29099390b3d23c97f14498fd26a5ef6b22b Mon Sep 17 00:00:00 2001
2 From: =?UTF-8?q?Rafa=C5=82=20Mi=C5=82ecki?= <zajec5@gmail.com>
3 Date: Wed, 1 Apr 2015 08:23:04 +0200
4 Subject: [PATCH] MIPS: BCM47XX: Increase NVRAM buffer size to 64 KiB
5 MIME-Version: 1.0
6 Content-Type: text/plain; charset=UTF-8
7 Content-Transfer-Encoding: 8bit
8
9 For years Broadcom devices use 64 KiB NVRAM partition size and some of
10 them indeed have it filled in more than 50%. This change allows reading
11 whole NVRAM e.g. on Netgear WNDR4500 and Netgear R8000.
12
13 Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
14 Cc: linux-mips@linux-mips.org
15 Cc: Hauke Mehrtens <hauke@hauke-m.de>
16 Patchwork: https://patchwork.linux-mips.org/patch/9651/
17 Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
18 ---
19  arch/mips/bcm47xx/nvram.c | 2 +-
20  1 file changed, 1 insertion(+), 1 deletion(-)
21
22 diff --git a/arch/mips/bcm47xx/nvram.c b/arch/mips/bcm47xx/nvram.c
23 index 2357ea3..2ac7482 100644
24 --- a/arch/mips/bcm47xx/nvram.c
25 +++ b/arch/mips/bcm47xx/nvram.c
26 @@ -20,7 +20,7 @@
27  #include <linux/bcm47xx_nvram.h>
28  
29  #define NVRAM_MAGIC                    0x48534C46      /* 'FLSH' */
30 -#define NVRAM_SPACE                    0x8000
31 +#define NVRAM_SPACE                    0x10000
32  #define NVRAM_MAX_GPIO_ENTRIES         32
33  #define NVRAM_MAX_GPIO_VALUE_LEN       30
34  
35 -- 
36 1.8.4.5
37