wifi: brcmfmac: pcie: Support PCIe core revisions >= 64
authorHector Martin <marcan@marcan.st>
Fri, 16 Sep 2022 16:03:12 +0000 (17:03 +0100)
committerKalle Valo <kvalo@kernel.org>
Mon, 19 Sep 2022 09:59:35 +0000 (12:59 +0300)
commite01d7a546981c68ca00964f0c7e6411e9da0e137
tree6ec0c40afb2e3dde379400711b8f75bd8b7f3367
parentf48476780ce33ffbbe4fb1fd9e07881c8cf69294
wifi: 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>
Signed-off-by: Kalle Valo <kvalo@kernel.org>
Link: https://lore.kernel.org/r/E1oZDo8-0077aq-6I@rmk-PC.armlinux.org.uk
drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c