brcmfmac: extract ram size info from internal memory registers
authorArend van Spriel <arend@broadcom.com>
Wed, 11 Mar 2015 15:11:31 +0000 (16:11 +0100)
committerKalle Valo <kvalo@codeaurora.org>
Fri, 13 Mar 2015 14:10:33 +0000 (16:10 +0200)
commit0da32ba4ee667ef3c837ee4ebaa230f6f826a822
tree08c237355df7cd962af84a1d1f8a269c4fb09787
parent38f29e1f42b114105e1ffefba0bc183e1e144d0b
brcmfmac: extract ram size info from internal memory registers

Instead of hard-coded memory sizes it is possible to obtain that
information from the internal memory registers.

Reviewed-by: Hante Meuleman <meuleman@broadcom.com>
Reviewed-by: Franky (Zhenhui) Lin <frankyl@broadcom.com>
Reviewed-by: Pieter-Paul Giesberts <pieterpg@broadcom.com>
Signed-off-by: Arend van Spriel <arend@broadcom.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/brcm80211/brcmfmac/chip.c
drivers/net/wireless/brcm80211/brcmfmac/chip.h