]> git.baikalelectronics.ru Git - kernel.git/commit
wifi: brcmfmac: pcie: Read Apple OTP information
authorHector Martin <marcan@marcan.st>
Fri, 16 Sep 2022 16:02:46 +0000 (17:02 +0100)
committerKalle Valo <kvalo@kernel.org>
Mon, 19 Sep 2022 09:59:33 +0000 (12:59 +0300)
commit1baab09a20bf5b001b6b2f64c16031166f1d64b7
tree0176bf37fb5d618e19f1ebb25870d4715411c1fd
parent5b4c2bb49501ea1e1324455a5a4aa934b66f406e
wifi: brcmfmac: pcie: Read Apple OTP information

On Apple platforms, the One Time Programmable ROM in the Broadcom chips
contains information about the specific board design (module, vendor,
version) that is required to select the correct NVRAM file. Parse this
OTP ROM and extract the required strings.

Note that the user OTP offset/size is per-chip. This patch does not add
any chips yet.

Reviewed-by: Arend van Spriel <arend.vanspriel@broadcom.com>
Signed-off-by: Hector Martin <marcan@marcan.st>
Signed-off-by: Russell King (Oracle) <rmk+kernel@armlinux.org.uk>
Signed-off-by: Kalle Valo <kvalo@kernel.org>
Link: https://lore.kernel.org/r/E1oZDni-0077aM-I6@rmk-PC.armlinux.org.uk
drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c
include/linux/bcma/bcma_driver_chipcommon.h