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>
Tue, 18 Jan 2022 11:22:11 +0000 (20:22 +0900)
commit680f1bc0c4368199fb8f1bf18bb5d3b8e242b9b8
tree09f1bc4747fd6574dd8c0d04f5e303f468dfb6fe
parente3d1958924b8731cd97fa82c6dd98672875af334
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