brcmfmac: common: Add support for external calibration blobs
authorHector Martin <marcan@marcan.st>
Sat, 25 Dec 2021 15:53:37 +0000 (00:53 +0900)
committerJens Axboe <axboe@kernel.dk>
Tue, 1 Mar 2022 17:44:58 +0000 (10:44 -0700)
commitc125c235e80366bfd35330e57881818645447509
treec2185dad91eae28bd08587ec10027b476d30e70f
parent71f9c7e2972d47ec92ba9caa37b6760833e13922
brcmfmac: common: Add support for external calibration blobs

The calibration blob for a chip is normally stored in SROM and loaded
internally by the firmware. However, Apple ARM64 platforms instead store
it as part of platform configuration data, and provide it via the Apple
Device Tree. We forward this into the Linux DT in the bootloader.

Add support for taking this blob from the DT and loading it into the
dongle. The loading mechanism is the same as used for the CLM and TxCap
blobs.

Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Hector Martin <marcan@marcan.st>
drivers/net/wireless/broadcom/brcm80211/brcmfmac/common.c
drivers/net/wireless/broadcom/brcm80211/brcmfmac/common.h
drivers/net/wireless/broadcom/brcm80211/brcmfmac/of.c