summaryrefslogtreecommitdiffstats
path: root/drivers/firmware
diff options
context:
space:
mode:
authorRafał Miłecki <rafal@milecki.pl>2018-04-08 22:57:33 +0200
committerJames Hogan <jhogan@kernel.org>2018-04-23 16:39:35 +0100
commit3bc6505150fd1139dbd29695cf950d253c361725 (patch)
tree4d1c747f74223d8f31448f0011a446bef13fb9fa /drivers/firmware
parent425f1e6272567c4d91221957d8b65fc5f6aae501 (diff)
downloadlinux-stable-3bc6505150fd1139dbd29695cf950d253c361725.tar.gz
linux-stable-3bc6505150fd1139dbd29695cf950d253c361725.tar.bz2
linux-stable-3bc6505150fd1139dbd29695cf950d253c361725.zip
firmware: bcm47xx_nvram: Support small (0x6000 B) NVRAM partitions
Some old devices with 4 MiB flashes were using 0x1000 block size and could use smaller (0x6000 bytes) flash partition for storing NVRAM content. This adds support for reading NVRAM on Netgear WNR1000 V3. Signed-off-by: Rafał Miłecki <rafal@milecki.pl> Cc: Ralf Baechle <ralf@linux-mips.org> Cc: Hauke Mehrtens <hauke@hauke-m.de> Cc: linux-mips@linux-mips.org Patchwork: https://patchwork.linux-mips.org/patch/19005/ Signed-off-by: James Hogan <jhogan@kernel.org>
Diffstat (limited to 'drivers/firmware')
-rw-r--r--drivers/firmware/broadcom/bcm47xx_nvram.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/firmware/broadcom/bcm47xx_nvram.c b/drivers/firmware/broadcom/bcm47xx_nvram.c
index 0b631e5b5b84..d25f080fcb0d 100644
--- a/drivers/firmware/broadcom/bcm47xx_nvram.c
+++ b/drivers/firmware/broadcom/bcm47xx_nvram.c
@@ -36,7 +36,7 @@ struct nvram_header {
static char nvram_buf[NVRAM_SPACE];
static size_t nvram_len;
-static const u32 nvram_sizes[] = {0x8000, 0xF000, 0x10000};
+static const u32 nvram_sizes[] = {0x6000, 0x8000, 0xF000, 0x10000};
static u32 find_nvram_size(void __iomem *end)
{