[no ci] wireless: sdio update

pull/1171/head
gtxaspec 2023-12-01 20:59:11 -08:00
parent 056b185828
commit ed83e28762
1 changed files with 9 additions and 22 deletions

View File

@ -15,37 +15,26 @@ set_mmc() {
fi fi
} }
# T31 ATBM603X mmc0 # RTL8189FS Generic
if [ "$1" = "atbm603x-t31-mmc0" ]; then if [ "$1" = "rtl8189fs-generic" ]; then
# PB10 wifi mmc1, pull-down -> high-impedance set_mmc 1
devmem 0x10011128 32 0x400 modprobe 8189fs
# Set wifi mmc1 clk drive capability to 8mA exit 0
devmem 0x10011134 32 0x20000
set_mmc 0
cp /usr/share/atbm60xx_conf/atbm_txpwer_dcxo_cfg.txt /tmp
cp /usr/share/atbm60xx_conf/set_rate_power.txt /tmp
modprobe atbm603x_wifi_sdio atbm_printk_mask=0
exit 0
fi fi
# T31 ATBM603X mmc1 # ATBM603x Generic
if [ "$1" = "atbm603x-t31-mmc1" ]; then if [ "$1" = "atbm603x-generic" ]; then
# Copied from stock firmware
devmem 0x10011110 32 0x6e094800
set_mmc 1 set_mmc 1
cp /usr/share/atbm60xx_conf/atbm_txpwer_dcxo_cfg.txt /tmp cp /usr/share/atbm60xx_conf/atbm_txpwer_dcxo_cfg.txt /tmp
cp /usr/share/atbm60xx_conf/set_rate_power.txt /tmp cp /usr/share/atbm60xx_conf/set_rate_power.txt /tmp
modprobe atbm603x_wifi_sdio atbm_printk_mask=0 modprobe atbm603x_wifi_sdio
exit 0 exit 0
fi fi
# T31 Wyze V3 / AtomCam 2 ATBM603x # T31 Wyze V3 / AtomCam 2 ATBM603x
if [ "$1" = "atbm603x-t31-wyze-v3" ]; then if [ "$1" = "atbm603x-t31-wyze-v3" ]; then
set_gpio 57 0;set_gpio 57 1 set_gpio 57 0;set_gpio 57 1
set_mmc 1 set_mmc 1
cp /usr/share/atbm60xx_conf/atbm_txpwer_dcxo_cfg.txt /tmp cp /usr/share/atbm60xx_conf/atbm_txpwer_dcxo_cfg.txt /tmp
cp /usr/share/atbm60xx_conf/set_rate_power.txt /tmp cp /usr/share/atbm60xx_conf/set_rate_power.txt /tmp
modprobe atbm603x_wifi_sdio atbm_printk_mask=0 modprobe atbm603x_wifi_sdio atbm_printk_mask=0
@ -54,10 +43,8 @@ fi
# T31 Wyze PanV2 ATBM603x # T31 Wyze PanV2 ATBM603x
if [ "$1" = "atbm603x-t31-wyze-pan-v2" ]; then if [ "$1" = "atbm603x-t31-wyze-pan-v2" ]; then
set_gpio 58 0;set_gpio 58 1 set_gpio 58 0;set_gpio 58 1
set_mmc 1 set_mmc 1
cp /usr/share/atbm60xx_conf/atbm_txpwer_dcxo_cfg.txt /tmp cp /usr/share/atbm60xx_conf/atbm_txpwer_dcxo_cfg.txt /tmp
cp /usr/share/atbm60xx_conf/set_rate_power.txt /tmp cp /usr/share/atbm60xx_conf/set_rate_power.txt /tmp
modprobe atbm603x_wifi_sdio atbm_printk_mask=0 modprobe atbm603x_wifi_sdio atbm_printk_mask=0