brcmfmac: pcie: Support PCIe core revisions >= 64
authorHector Martin <marcan@marcan.st>
Tue, 21 Dec 2021 08:25:35 +0000 (17:25 +0900)
committerHector Martin <marcan@marcan.st>
Sat, 19 Feb 2022 08:17:02 +0000 (17:17 +0900)
commitff4f1780e4b1b05c4fbd78cfdce3a39aaeb3d3ae
tree65e99ae8084893c3768f01d3367fd1f9e242b554
parent73c61c1e1a7ec229d89bfa96661476669d7eccd1
brcmfmac: pcie: Support PCIe core revisions >= 64

These newer PCIe core revisions include new sets of registers that must
be used instead of the legacy ones. Introduce a brcmf_pcie_reginfo to
hold the specific register offsets and values to use for a given
platform, and change all the register accesses to indirect through it.

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