MIPS: BCM47XX: handle different nvram sizes
authorHauke Mehrtens <hauke@hauke-m.de>
Wed, 26 Dec 2012 19:51:13 +0000 (19:51 +0000)
committerJohn Crispin <blogic@openwrt.org>
Fri, 15 Feb 2013 18:01:56 +0000 (19:01 +0100)
commitf36738ddfeea02867b393e7f34da0cec48bafc54
tree58172c4d59d237b90929ee654d4bfcbbba08d046
parente58da16f716c0e7822e64a5d8a1f413041bc912e
MIPS: BCM47XX: handle different nvram sizes

The old code just worked for nvram with a size of 0x8000 bytes. This
patch adds support for reading nvram from partitions of 0xF000 and
0x10000 bytes.

There is just 32KB space for the nvram, but most devices do not use the
full size and this code reads the first 32KB in that case and prints a
warning.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
Patchwork: http://patchwork.linux-mips.org/patch/4743/
Signed-off-by: John Crispin <blogic@openwrt.org>
arch/mips/bcm47xx/nvram.c
This page took 0.02646 seconds and 5 git commands to generate.