OSDN Git Service

MIPS: BCM47xx: sprom: read values without prefix as fallback
authorHauke Mehrtens <hauke@hauke-m.de>
Wed, 3 Oct 2012 11:34:20 +0000 (11:34 +0000)
committerJohn Crispin <blogic@openwrt.org>
Fri, 9 Nov 2012 10:37:17 +0000 (11:37 +0100)
commitb8ebbaff03798180c4d9661105670e03276afe83
treeb922fe57b6316e7f3730ef4ab45d485351106bd3
parent2c3763111bf7e3753e46842e17fce0a68dab90ac
MIPS: BCM47xx: sprom: read values without prefix as fallback

There are bcma based devices like the Linksys E2000 out there, which do
have one ieee80211 core, but no PCIe core and they are using no
prefixes for the sprom. In addition some values like boardtype are
stored without a prefix for the main SoC chip also when they have an
additional PCIe wifi chip with an own boardtype var on some devices.

The Ethernet addresses are now also read out correctly without a prefix
so calling bcm47xx_fill_sprom_ethernet is not needed any more.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
Patchwork: http://patchwork.linux-mips.org/patch/4364
Signed-off-by: John Crispin <blogic@openwrt.org>
arch/mips/bcm47xx/setup.c
arch/mips/bcm47xx/sprom.c
arch/mips/include/asm/mach-bcm47xx/bcm47xx.h