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>
Tue, 18 Jan 2022 11:22:09 +0000 (20:22 +0900)
commitd1c2ca9d513a10d9336841ff6d1771c344e2f8f8
treea6746c474b988ec33bade066c90d2330772daa72
parent3d3f288692cc90e85af3b4364d27004d603d93ae
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