Skip to content

Commit

Permalink
remove unneeded
Browse files Browse the repository at this point in the history
  • Loading branch information
cronyx committed Dec 18, 2023
1 parent b7cedf3 commit f371f00
Showing 1 changed file with 0 additions and 73 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,79 +5,6 @@ set_gpio() {
sleep 1
}

set_mmc() {
mmc=/sys/devices/platform/jzmmc_v1.2.$1/present
[ "$(cat $mmc)" = "N" ] && echo "INSERT" > $mmc
}

# Generic ATBM603X
if [ "$1" = "atbm603x-generic" ]; then
set_mmc 1
cp -f /usr/share/atbm60xx_conf/atbm_txpwer_dcxo_cfg.txt /tmp
cp -f /usr/share/atbm60xx_conf/set_rate_power.txt /tmp
modprobe atbm603x_wifi_sdio
exit 0
fi

# Generic RTL8189FS
if [ "$1" = "rtl8189fs-generic" ]; then
set_mmc 1
modprobe 8189fs
exit 0
fi

# T20 Wyze PanV1
if [ "$1" = "rtl8189es-t20-wyze-pan-v1" ]; then
set_mmc 1
modprobe 8189es rtw_power_mgnt=0 rtw_enusbss=0
exit 0
fi

# T20 Wyze V2
if [ "$1" = "rtl8189ftv-t20-wyze-v2" ]; then
set_mmc 1
modprobe 8189fs rtw_power_mgnt=0 rtw_enusbss=0
exit 0
fi

# T31 Wyze DB3
if [ "$1" = "rtl8189ftv-t31-wyze-db3" ]; then
set_mmc 1
modprobe 8189fs rtw_power_mgnt=0 rtw_enusbss=0
exit 0
fi

# T31 Wyze PanV2
if [ "$1" = "atbm603x-t31-wyze-pan-v2" ]; then
set_gpio 58 0
set_gpio 58 1
set_mmc 1
cp -f /usr/share/atbm60xx_conf/atbm_txpwer_dcxo_cfg.txt /tmp
cp -f /usr/share/atbm60xx_conf/set_rate_power.txt /tmp
modprobe atbm603x_wifi_sdio atbm_printk_mask=0
exit 0
fi

# T31 Wyze V3 / AtomCam 2
if [ "$1" = "atbm603x-t31-wyze-v3" ]; then
set_gpio 57 0
set_gpio 57 1
set_mmc 1
cp -f /usr/share/atbm60xx_conf/atbm_txpwer_dcxo_cfg.txt /tmp
cp -f /usr/share/atbm60xx_conf/set_rate_power.txt /tmp
modprobe atbm603x_wifi_sdio atbm_printk_mask=0
exit 0
fi

# T31 Wyze V3
if [ "$1" = "rtl8189ftv-t31-wyze-v3" ]; then
set_gpio 57 1
set_mmc 1
modprobe 8189fs rtw_power_mgnt=0 rtw_enusbss=0
exit 0
fi

# Hi3518ev300 Xiaomi MJSXJ02HL
if [ "$1" = "rtl8189fs-mjsxj02hl" ]; then
devmem 0x112C0048 32 0x1D54
devmem 0x112C004C 32 0x1174
Expand Down

0 comments on commit f371f00

Please sign in to comment.