summaryrefslogtreecommitdiffstats
path: root/arch/mips/bcm47xx/sprom.c
diff options
context:
space:
mode:
authorRafał Miłecki2014-05-18 00:22:38 +0200
committerJohn W. Linville2014-05-19 22:42:15 +0200
commit4f4aa2ec24dc45881849833a439558d3a378028c (patch)
tree80baa0b4d7ec1dcf575620fe10e01f8ae0822e88 /arch/mips/bcm47xx/sprom.c
parentb43: rework band switching (diff)
downloadkernel-qcow2-linux-4f4aa2ec24dc45881849833a439558d3a378028c.tar.gz
kernel-qcow2-linux-4f4aa2ec24dc45881849833a439558d3a378028c.tar.xz
kernel-qcow2-linux-4f4aa2ec24dc45881849833a439558d3a378028c.zip
ssb: sprom: add dev_id field for value overriding standard ID
Some devices may have different features despite sharing the same ID (e.g. PCI ID). For example 14e4:4331 is usually a dual band, but this can be "limited". Device with "pci/x/y/devid=0x4332" supports 2.4 GHz only. Similarly 0x4333 will mean support for 5 GHz only. Add entry in SPROM so info described above can be extracted and stored. Signed-off-by: Rafał Miłecki <zajec5@gmail.com> Acked-by: Hauke Mehrtens <hauke@hauke-m.de> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'arch/mips/bcm47xx/sprom.c')
-rw-r--r--arch/mips/bcm47xx/sprom.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/mips/bcm47xx/sprom.c b/arch/mips/bcm47xx/sprom.c
index a8b5408dd349..da4cdb16844e 100644
--- a/arch/mips/bcm47xx/sprom.c
+++ b/arch/mips/bcm47xx/sprom.c
@@ -168,6 +168,7 @@ static void nvram_read_alpha2(const char *prefix, const char *name,
static void bcm47xx_fill_sprom_r1234589(struct ssb_sprom *sprom,
const char *prefix, bool fallback)
{
+ nvram_read_u16(prefix, NULL, "devid", &sprom->dev_id, 0, fallback);
nvram_read_u8(prefix, NULL, "ledbh0", &sprom->gpio0, 0xff, fallback);
nvram_read_u8(prefix, NULL, "ledbh1", &sprom->gpio1, 0xff, fallback);
nvram_read_u8(prefix, NULL, "ledbh2", &sprom->gpio2, 0xff, fallback);