Skip to content

Commit

Permalink
firmware: bcm47xx_nvram: Support small (0x6000 B) NVRAM partitions
Browse files Browse the repository at this point in the history
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 <[email protected]>
Cc: Ralf Baechle <[email protected]>
Cc: Hauke Mehrtens <[email protected]>
Cc: [email protected]
Patchwork: https://patchwork.linux-mips.org/patch/19005/
Signed-off-by: James Hogan <[email protected]>
  • Loading branch information
Rafał Miłecki authored and amalon committed Apr 23, 2018
1 parent 425f1e6 commit 3bc6505
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/firmware/broadcom/bcm47xx_nvram.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
Expand Down

0 comments on commit 3bc6505

Please sign in to comment.