Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[no ci] wireless: sdio update #1171

Merged
merged 1 commit into from
Dec 2, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 9 additions & 22 deletions general/overlay/etc/wireless/sdio
Original file line number Diff line number Diff line change
Expand Up @@ -15,37 +15,26 @@ set_mmc() {
fi
}

# T31 ATBM603X mmc0
if [ "$1" = "atbm603x-t31-mmc0" ]; then
# PB10 wifi mmc1, pull-down -> high-impedance
devmem 0x10011128 32 0x400
# Set wifi mmc1 clk drive capability to 8mA
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
# RTL8189FS Generic
if [ "$1" = "rtl8189fs-generic" ]; then
set_mmc 1
modprobe 8189fs
exit 0
fi

# T31 ATBM603X mmc1
if [ "$1" = "atbm603x-t31-mmc1" ]; then
# Copied from stock firmware
devmem 0x10011110 32 0x6e094800
# ATBM603x Generic
if [ "$1" = "atbm603x-generic" ]; then
set_mmc 1

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
modprobe atbm603x_wifi_sdio
exit 0
fi

# T31 Wyze V3 / AtomCam 2 ATBM603x
if [ "$1" = "atbm603x-t31-wyze-v3" ]; then
set_gpio 57 0;set_gpio 57 1
set_mmc 1

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
Expand All @@ -54,10 +43,8 @@ fi

# T31 Wyze PanV2 ATBM603x
if [ "$1" = "atbm603x-t31-wyze-pan-v2" ]; then

set_gpio 58 0;set_gpio 58 1
set_mmc 1

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
Expand Down