brcmfmac: pcie: Read Apple OTP information
authorHector Martin <marcan@marcan.st>
Tue, 21 Dec 2021 08:26:34 +0000 (17:26 +0900)
committerJens Axboe <axboe@kernel.dk>
Tue, 1 Mar 2022 17:44:57 +0000 (10:44 -0700)
commit485a202c049b40d1382b74a35090061cc335dce8
tree4667d6c7cfd428196e88fac9598774118662c3e8
parent36f7570e76e7eaec8a497897e55cc38248c58cdc
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