From: Goenjoy Huang Date: Fri, 14 Oct 2022 02:20:52 +0000 (+0800) Subject: wifi_bt: update firmware of AP6256 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=b002bfa0372e842ffd0a0a55e8f17b828ab23907;p=GitHub%2FLineageOS%2FG12%2Fandroid_hardware_amlogic_kernel-modules_dhd-driver.git wifi_bt: update firmware of AP6256 Change-Id: I5952ec1d8fb71d7290295d767c10ed588473f39b Signed-off-by: Goenjoy Huang --- diff --git a/firmware/bluetooth/bcm4345c5/BCM4345C5.hcd b/firmware/bluetooth/bcm4345c5/BCM4345C5.hcd index ac65ae3..e878cb7 100644 Binary files a/firmware/bluetooth/bcm4345c5/BCM4345C5.hcd and b/firmware/bluetooth/bcm4345c5/BCM4345C5.hcd differ diff --git a/firmware/wifi/bcm43456c5_ag/fw_bcm43456c5_ag.bin b/firmware/wifi/bcm43456c5_ag/fw_bcm43456c5_ag.bin index 58c3537..c3f8c32 100644 Binary files a/firmware/wifi/bcm43456c5_ag/fw_bcm43456c5_ag.bin and b/firmware/wifi/bcm43456c5_ag/fw_bcm43456c5_ag.bin differ diff --git a/firmware/wifi/bcm43456c5_ag/nvram_ap6256.txt b/firmware/wifi/bcm43456c5_ag/nvram_ap6256.txt index 0916af5..a61242b 100644 --- a/firmware/wifi/bcm43456c5_ag/nvram_ap6256.txt +++ b/firmware/wifi/bcm43456c5_ag/nvram_ap6256.txt @@ -1,4 +1,4 @@ -#AP6256_NVRAM_V1.1_08252017 +#AP6256_NVRAM_V1.4_06112021 # Cloned from bcm94345wlpagb_p2xx.txt NVRAMRev=$Rev: 498373 $ sromrev=11 @@ -10,14 +10,19 @@ macaddr=00:90:4c:c5:12:38 nocrc=1 boardtype=0x6e4 boardrev=0x1304 + +#XTAL 37.4MHz xtalfreq=37400 +btc_mode=1 + +#----------------------------------------- #boardflags: 5GHz eTR switch by default # 2.4GHz eTR switch by default # bit1 for btcoex boardflags=0x00480201 boardflags2=0x40800000 boardflags3=0x48200100 -#phycal_tempdelta=15 +phycal_tempdelta=15 rxchain=1 txchain=1 aa2g=1 @@ -25,13 +30,22 @@ aa5g=1 tssipos5g=1 tssipos2g=1 femctrl=0 -AvVmid_c0=0,157,1,126,1,126,1,126,1,126 -pa2ga0=-164,5427,-623 -pa2ga1=-165,3699,-515 -#pa5ga0=-146,5304,-612,-140,5341,-613,-166,5326,-633,-154,5272,-621 -#pa5ga0=-134,5385,-609,-132,5359,-605,-154,5360,-621,-140,5288,-604 -pa5ga0=-127,5380,-603,-130,5395,-608,-148,5369,-622,-147,5222,-608 -pa5ga1=-161,3544,-499,-166,3543,-497,-169,3569,-497,-171,3598,-498 +AvVmid_c0=1,165,2,100,2,100,2,100,2,100 + +pa2ga0=-154,5722,-656 + +#1pa2ga0=-195,5558,-672 +pa2ga1=-118,4850,-635 +pa5ga0=-193,6098,-740,-192,6095,-738,-199,5996,-730,-182,6148,-741 + + +#3pa5ga0=-214,6002,-737,-209,6102,-746,-209,6024,-738,-200,6149,-747 +#2pa5ga0=-203,5495,-683,-205,5489,-682,-207,5494,-678,-208,5549,-683 +#1pa5ga0=-203,5495,-683,-205,5489,-682,-207,5494,-678,-185,6130,-740 +pa5ga1=-142,4930,-655,-150,4859,-646,-156,4887,-644,-158,4864,-641 + + + itrsw=1 pdoffset2g40ma0=10 pdoffset40ma0=0xaaaa @@ -47,44 +61,39 @@ ltecxpadnum=0x0504 ltecxfnsel=0x22 ltecxgcigpio=0x32 -pacalshift5g=0,0,3 +maxp2ga0=78 +cckbw202gpo=0x5555 +cckbw20ul2gpo=0x5555 -maxp2ga0=70 -cckbw202gpo=0x1000 -cckbw20ul2gpo=0x1000 -ofdmlrbw202gpo=0x0033 -dot11agofdmhrbw202gpo=0x2222 -mcsbw202gpo=0x99333322 +ofdmlrbw202gpo=0x2244 +dot11agofdmhrbw202gpo=0x7744 +ccode=DE +regrev=0 -cckdigfilttype=5 -#maxp5ga0=82,82,82,82 -#mcsbw205glpo=0x99555000 -#mcsbw205gmpo=0x99555000 -#mcsbw205ghpo=0x99555000 -#mcsbw405glpo=0x99555000 -#mcsbw405gmpo=0x99555000 -#mcsbw405ghpo=0x99555000 -#mcsbw805glpo=0x99555000 -#mcsbw805gmpo=0x99555000 -#mcsbw805ghpo=0x99555000 - -maxp5ga0=73,74,73,73 -mcsbw205glpo=0x8a875444 -mcsbw205gmpo=0x8a875444 -mcsbw205ghpo=0x8a875444 - -mcsbw405glpo=0xda844333 -mcsbw405gmpo=0xdb844333 -mcsbw405ghpo=0xda844333 - -mcsbw805glpo=0xdb555444 -mcsbw805gmpo=0xda555444 -mcsbw805ghpo=0xda555444 - - -swctrlmap_2g=0x00040004,0x00020002,0x00040004,0x010a02,0x1ff -swctrlmap_5g=0x00100010,0x00200020,0x00200020,0x010a02,0x2f4 +mcsbw202gpo=0x98886422 +mcsbw402gpo=0x98777755 + +maxp5ga0=75,75,75,76 + +#5GHz_20MHz Offset +mcsbw205glpo=0xba753311 +mcsbw205gmpo=0xba753311 +mcsbw205ghpo=0xba753311 + +#5GHz_40MHz Offset +mcsbw405glpo=0xe8753311 +mcsbw405gmpo=0xe8753311 +mcsbw405ghpo=0xd9753311 + +#5GHz_80MHz Offset +mcsbw805glpo=0xea633311 +mcsbw805gmpo=0xe7422211 +mcsbw805ghpo=0xda632211 + + +swctrlmap_2g=0x00000000,0x00000000,0x00000000,0x010000,0x3ff +swctrlmap_5g=0x00100010,0x00200020,0x00200020,0x010000,0x3fe swctrlmapext_5g=0x00000000,0x00000000,0x00000000,0x000000,0x3 swctrlmapext_2g=0x00000000,0x00000000,0x00000000,0x000000,0x3 @@ -95,5 +104,39 @@ ed_thresh5g=-54 eu_edthresh2g=-54 eu_edthresh5g=-54 +#ed_thresh2g=-69 +#ed_thresh5g=-69 +#eu_edthresh2g=-69 +#eu_edthresh5g=-69 +ldo1=4 +rawtempsense=0x1ff +cckPwrIdxCorr=3 +cckTssiDelay=150 +ofdmTssiDelay=150 +txpwr2gAdcScale=1 +txpwr5gAdcScale=1 +dot11b_opts=0x3aa85 +cbfilttype=0 +#fdsslevel_ch1=6 +#fdsslevel_ch11=4 +#btc_mode=1 muxenab=0x10 + +cckdigfilttype=5 + +fdss_level_2g=6 +#fdss_level_5g=6 +#pacalshift5g=0,0,1 + +tempthresh=102 + + + + +pa2ga0_tsmc=-154,5722,-656 +pa2g40a0_tsmc=-199,6126,-732 +pa5ga0_tsmc=-193,6098,-740,-192,6095,-738,-199,5996,-730,-182,6148,-741 +pa5g40a0_tsmc=-193,6098,-740,-192,6095,-738,-199,5996,-730,-182,6148,-741 +pa5g80a0_tsmc=-193,6098,-740,-192,6095,-738,-199,5996,-730,-182,6148,-741 +fdss_level_5g=4