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)
commite63efbcaba7d6f6846b1c2ec5cf259249b9ed88f
tree0176bf37fb5d618e19f1ebb25870d4715411c1fd
parent7cb46e7214179db6d8de21c1b395a9d42efa735e
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