]> 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)
commite345148a7828c415dd426e7f9fe3d1a40f5f5fa9
tree0176bf37fb5d618e19f1ebb25870d4715411c1fd
parent0cbe701be6cf72faa6bca20730407d13d4d31098
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