brcmfmac: pcie: Read Apple OTP information
authorHector Martin <marcan@marcan.st>
Tue, 21 Dec 2021 08:26:34 +0000 (17:26 +0900)
committerHector Martin <marcan@marcan.st>
Sat, 19 Feb 2022 08:17:02 +0000 (17:17 +0900)
commit12d778fb715f4d388d71c2f840e41f214f778213
treedea7437e3b0cdb4eae6688c5a7c222ae65f32048
parent3a51f6de0da51984c7b5a8cbcfbe2a14ba4e4290
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>
drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c
include/linux/bcma/bcma_driver_chipcommon.h