29 Jan, 2015
1 commit
-
Extracting values from it is still unsupported, but at least we'll
display some meaningful error now.Signed-off-by: Rafał Miłecki
Signed-off-by: Kalle Valo
29 Jul, 2014
1 commit
-
Signed-off-by: Rafał Miłecki
Signed-off-by: John W. Linville
19 Jul, 2014
2 commits
-
Signed-off-by: Rafał Miłecki
Signed-off-by: John W. Linville -
Just like in case of SSB SPROMs they are encoded in a bit tricky way.
SPROM struct already uses s8 type and it's supposed to store decoded
values.Signed-off-by: Rafał Miłecki
Signed-off-by: John W. Linville
28 Jun, 2013
1 commit
-
Signed-off-by: Rafał Miłecki
Signed-off-by: John W. Linville
23 May, 2013
3 commits
-
This is pretty much the same as rev 9, there are just 2 extra fields we
know about, but are not used/stored yet anyway.Signed-off-by: Rafał Miłecki
Signed-off-by: John W. Linville -
Signed-off-by: Rafał Miłecki
Signed-off-by: John W. Linville -
Pass it as an argument to all functions. This is requires as newer SPROM
revisions have different lengths.Signed-off-by: Rafał Miłecki
Signed-off-by: John W. Linville
26 Mar, 2013
1 commit
-
Signed-off-by: Rafał Miłecki
Signed-off-by: John W. Linville
20 Oct, 2012
1 commit
-
Sometimes the PCIe card indicates that it has a sprom somewhere and we
are able to read the memory region, but it is empty and not valid. In
these cases we should try to use the fallback sprom as a last chance.This is the case for the PCIe cards in my ASUS RT-N66U (BCM4706 + 2
times BCM4331) and I have heard of someone having the same problem with
an other PCIe card connected to an other Broadcom SoC.Signed-off-by: Hauke Mehrtens
Signed-off-by: John W. Linville
25 Sep, 2012
1 commit
-
Signed-off-by: Rafał Miłecki
Tested-by: Jack
Signed-off-by: John W. Linville
03 Aug, 2012
1 commit
-
Signed-off-by: Rafał Miłecki
Signed-off-by: John W. Linville
10 Jul, 2012
2 commits
-
Having bus number printed makes it much easier to anaylze logs on
systems with more buses. For example Netgear WNDR4500 has 3 AMBA buses
in total, which makes standard log really messy.Signed-off-by: Rafał Miłecki
Signed-off-by: John W. Linville -
The chip IDs are used all over bcma and no constants where defined.
This patch adds the constants and makes bcma use them.Acked-by: Arend van Spriel
Signed-off-by: Hauke Mehrtens
Signed-off-by: John W. Linville
05 Jun, 2012
1 commit
-
MacBook Pro models with BCM4331 wireless have been found to have the ext
PA lines disabled after resuming from S3 without external power attach.
This causes them to be unable to transmit. Add a workaround to ensure
that the ext PA lines are enabled on BCM4331. Also extend all handling
of ext PA line muxing to BCM43431 as is done in the Broadcom SDK.BugLink: http://bugs.launchpad.net/bugs/925577
Cc: Arend van Spriel
Cc: Hauke Mehrtens
Cc: stable@vger.kernel.org
Signed-off-by: Seth Forshee
Signed-off-by: John W. Linville
17 May, 2012
3 commits
-
These newly added attributes are used by brcmsmac. Now bcma should
parse all attributes used by brcmsmac out of the sprom.Signed-off-by: Hauke Mehrtens
Tested-by: Arend van Spriel
Signed-off-by: John W. Linville -
This code is copied from the ssb sprom read code. These attributes are
partly used by b43 and brcmsmac and should also be read out on bcma
based devices.Signed-off-by: Hauke Mehrtens
Tested-by: Arend van Spriel
Signed-off-by: John W. Linville -
The attribute country_code and alpha2 are two different attributes in
the sprom. country_code contains some code in an 8 bit coding and
alpha2 contains two chars with the country code. The attributes where
read out wrongly in the past and country_code is only available on
sprom version 1.Signed-off-by: Hauke Mehrtens
Tested-by: Arend van Spriel
Signed-off-by: John W. Linville
17 Apr, 2012
1 commit
-
bcma should check for a fallback sprom every time it can not find a
sprom on the card itself or a normal external sprom mapped into the
memory of the chip. When otp sprom support was introduced it tried to
read out the sprom from the wireless chip also if no otp sprom was
available. This caused a Data bus error in bcma_sprom_get() when
reading out the sprom for the SoC.This fixes a regression introduced in commit:
commit 10d8493cd9efd38b1947b7a74276dbdc8311aa1a
Author: Arend van Spriel
Date: Tue Mar 6 15:50:48 2012 +0100bcma: add support for on-chip OTP memory used for SPROM storage
This patch was tested on a Netgear WNDR3400 (Broadcom BCM4718 SoC).
Reported-by: Nick Bowler
Signed-off-by: Hauke Mehrtens
Acked-by: Arend van Spriel
Signed-off-by: John W. Linville
07 Mar, 2012
2 commits
-
Wireless Broadcom chips can have either their SPROM data stored
on either external SPROM or on-chip OTP memory. Both are accessed
through the same register space. This patch adds support for the
on-chip OTP memory.Tested with:
BCM43224 OTP and SPROM
BCM4331 SPROM
BCM4313 OTPThis patch is in response to linux-wireless thread [1].
[1] http://article.gmane.org/gmane.linux.kernel.wireless.general/85426
Tested-by: Saul St. John
Tested-by: Rafal Milecki
Tested-by: Hauke Mehrtens
Cc: Larry Finger
Signed-off-by: Arend van Spriel
Signed-off-by: John W. Linville -
When not SPROM is available a fallback mechanism is used. However,
when that fails the code currently continues. This patch assures
that the bcma_sprom_get() function aborts when that happens.Cc: Rafal Milecki
Cc: Hauke Mehrtens
Signed-off-by: Arend van Spriel
Signed-off-by: John W. Linville
06 Mar, 2012
1 commit
-
On SoCs the sprom is stored in the nvram in a special partition on the
flash chip. The nvram contains the sprom for the main bus, but
sometimes also for a pci devices using bcma. This patch makes it
possible for the arch code to register a function to fetch the needed
sprom from the nvram and provide it to the bcma code.Signed-off-by: Hauke Mehrtens
Signed-off-by: John W. Linville
07 Feb, 2012
1 commit
-
This check is needed on the BCM43224 device as it says in the
capabilities it has an sprom but is extra check says it has not.Signed-off-by: Hauke Mehrtens
Signed-off-by: John W. Linville
25 Jan, 2012
3 commits
-
The SPROM location has been relocated again for some devices. This patch
will log the offset when CONFIG_BCMA_DEBUG has been selected.Signed-off-by: Larry Finger
Signed-off-by: John W. Linville -
Signed-off-by: Rafał Miłecki
Signed-off-by: John W. Linville -
Signed-off-by: Rafał Miłecki
Signed-off-by: John W. Linville
14 Dec, 2011
2 commits
-
Signed-off-by: Rafał Miłecki
Signed-off-by: John W. Linville -
Signed-off-by: Rafał Miłecki
Signed-off-by: John W. Linville
14 Sep, 2011
1 commit
-
Signed-off-by: Rafał Miłecki
Signed-off-by: John W. Linville
23 Aug, 2011
1 commit
-
We need to disable ext. PA lines for reading SPROM. It's disabled by
default, but this patch allows using bcma after loading wl, which leaves
workaround enabled.Cc: Arend van Spriel
Signed-off-by: Rafał Miłecki
Signed-off-by: John W. Linville
20 Jul, 2011
1 commit
-
Some cards do not use additional 0x30 offset for SPROM location. We do
not know the real condition for it yet, make it BCM4331 specific for
now.Signed-off-by: Rafał Miłecki
Signed-off-by: John W. Linville
19 Jul, 2011
1 commit
-
SPROM rev 9 was discovered on 14e4:4331, it seems to have very similar
layout to rev 8 one. Use the same extracting function until we find some
differences.Signed-off-by: Rafał Miłecki
Signed-off-by: John W. Linville
12 Jul, 2011
1 commit
-
The SoCs like the bcm4716 do not have a sprom on the bcma bus like a
pcie device. It stores the values in some partition on flash memory.
For ssb this informations are read out in the bcm47xx arch code,
something like that should also be implemented for bcma. Without this
patch bcma panics on SoCs.Signed-off-by: Hauke Mehrtens
Signed-off-by: John W. Linville
04 Jun, 2011
1 commit
-
In case of BCMA cards SPROM is located in the ChipCommon core, it is
not mapped as separated host window. So far we have met only SPROMs rev
8.
SPROM layout seems to be the same as for SSB buses, so we decided to
share SPROM struct and some defines.
For now we extract MAC address only, this can be improved of course.Signed-off-by: Rafał Miłecki
Signed-off-by: John W. Linville