7e4e32ffdd6e20520b2c80d35b177e93ee9a7ee4
[openwrt/openwrt.git] / package / kernel / mac80211 / patches / brcm / 114-v5.6-0003-brcmfmac-fix-rambase-for-4359-9.patch
1 From 6647274ed995a172369cb04754eb5f8b85f68f6d Mon Sep 17 00:00:00 2001
2 From: Soeren Moch <smoch@web.de>
3 Date: Thu, 12 Dec 2019 00:52:47 +0100
4 Subject: [PATCH 3/7] brcmfmac: fix rambase for 4359/9
5
6 Newer 4359 chip revisions need a different rambase address.
7 This fixes firmware download on such devices which fails otherwise.
8
9 Signed-off-by: Soeren Moch <smoch@web.de>
10 Acked-by: Chi-Hsien Lin <chi-hsien.lin@cypress.com>
11 Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
12 ---
13 drivers/net/wireless/broadcom/brcm80211/brcmfmac/chip.c | 3 ++-
14 1 file changed, 2 insertions(+), 1 deletion(-)
15
16 --- a/drivers/net/wireless/broadcom/brcm80211/brcmfmac/chip.c
17 +++ b/drivers/net/wireless/broadcom/brcm80211/brcmfmac/chip.c
18 @@ -712,7 +712,6 @@ static u32 brcmf_chip_tcm_rambase(struct
19 case BRCM_CC_43569_CHIP_ID:
20 case BRCM_CC_43570_CHIP_ID:
21 case BRCM_CC_4358_CHIP_ID:
22 - case BRCM_CC_4359_CHIP_ID:
23 case BRCM_CC_43602_CHIP_ID:
24 case BRCM_CC_4371_CHIP_ID:
25 return 0x180000;
26 @@ -722,6 +721,8 @@ static u32 brcmf_chip_tcm_rambase(struct
27 case BRCM_CC_4366_CHIP_ID:
28 case BRCM_CC_43664_CHIP_ID:
29 return 0x200000;
30 + case BRCM_CC_4359_CHIP_ID:
31 + return (ci->pub.chiprev < 9) ? 0x180000 : 0x160000;
32 case CY_CC_4373_CHIP_ID:
33 return 0x160000;
34 default: