]> git.karo-electronics.de Git - mv-sheeva.git/commit
MIPS: BCM47xx: Extend bcm47xx_fill_sprom with prefix.
authorHauke Mehrtens <hauke@hauke-m.de>
Tue, 10 May 2011 21:31:31 +0000 (23:31 +0200)
committerRalf Baechle <ralf@linux-mips.org>
Thu, 19 May 2011 08:55:47 +0000 (09:55 +0100)
commita7c62f8564357532872e106f0fa383728cf886cc
tree50c799310306d77e7dea9a9dc07e5ef75a5955bb
parentb3ae52b6b0335eba547221aad2cb3c50902e3d2d
MIPS: BCM47xx: Extend bcm47xx_fill_sprom with prefix.

When an other SSB based device without an own SPROM is attached, using the
PCI bus to the main SSB based device, the data normally found in the SPROM
will be stored in the NVRAM on modern devices. The keys, to load the data
from the NVRAM, are all using some sort of prefix like pci/1/1/, pci/1/3/
or sb/1/ before the actual key. This patch extends bcm47xx_fill_sprom() to
make it possible to read out these values when some prefix was used.

The keys for the SPROM data used on the main chip does not have a prefix.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
Cc: linux-mips@linux-mips.org
Patchwork: https://patchwork.linux-mips.org/patch/2363/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
arch/mips/bcm47xx/setup.c