brcmfmac: chip: Handle 1024-unit sizes for TCM blocks
authorHector Martin <marcan@marcan.st>
Tue, 21 Dec 2021 08:14:59 +0000 (17:14 +0900)
committerHector Martin <marcan@marcan.st>
Sat, 19 Feb 2022 08:17:03 +0000 (17:17 +0900)
commit9497bf10623583cebd3865a509ec5d6fa7681c00
treed418484238e345ea843a6a2d0b41625e71c54b2a
parent730f3499accbb9adc421e8dffe1666e0fa83f72b
brcmfmac: chip: Handle 1024-unit sizes for TCM blocks

BCM4387 has trailing odd-sized blocks as part of TCM which have
their size described as a multiple of 1024 instead of 8192. Handle this
so we can compute the TCM size properly.

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