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>
Tue, 18 Jan 2022 11:22:08 +0000 (20:22 +0900)
commit1b3f024a42ffd102e9abcf974c3102afd7966252
tree4581efccd13c0d627cdf88ff0a44f4dff9608998
parent9d37f47175a3170cb44c641c10bb7237a70db961
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