Cleanup tapo-c110 project and other small updates

pull/7/head
Igor Zalatov (from Citadel PC) 2023-11-14 23:16:12 +03:00
parent df5023893d
commit d7fa8c64a9
7 changed files with 9 additions and 143 deletions

View File

@ -1,3 +0,0 @@
insmod sc3338_MIPI.ko chmap=1 lane_num=4 hdr_lane_num=4

View File

@ -1,140 +0,0 @@
#!/bin/sh
set_gpio() {
test -e /sys/class/gpio/gpio$1 && echo $1 > /sys/class/gpio/unexport
echo $1 > /sys/class/gpio/export
echo out > /sys/class/gpio/gpio$1/direction
echo $2 > /sys/class/gpio/gpio$1/value
sleep 1
}
# MT7601U Generic
if [ "$1" = "mt7601u-generic" ]; then
modprobe mt7601u
exit 0
fi
# RTL8188FU Generic
if [ "$1" = "rtl8188fu-generic" ]; then
modprobe 8188fu
exit 0
fi
# RTL8733BU Generic
if [ "$1" = "rtl8733bu-generic" ]; then
modprobe 8733bu
exit 0
fi
# GK7205V200 CamHi
if [ "$1" = "mt7601u-gk7205v200-camhi" ]; then
set_gpio 9 0
modprobe mt7601u
exit 0
fi
# GK7205V200 CamHi
if [ "$1" = "rtl8733bu-gk7205v200-camhi" ]; then
set_gpio 9 0
modprobe 8733bu
exit 0
fi
# GK7205V200 Kafei
if [ "$1" = "8188fu-gk7205v200-kafei" ]; then
set_gpio 57 0
modprobe 8188fu
exit 0
fi
# HI3516EV200 CamHi
if [ "$1" = "mt7601u-hi3516ev200-camhi" ]; then
set_gpio 9 0
modprobe mt7601u
exit 0
fi
# HI3516EV300 CamHi
if [ "$1" = "mt7601u-hi3516ev300-camhi" ]; then
devmem 0x100C0080 32 0x530
set_gpio 7 0
modprobe mt7601sta
exit 0
fi
# HI3518EV100 CamHi
if [ "$1" = "mt7601u-hi3518ev100-camhi" ]; then
modprobe mt7601sta
exit 0
fi
# HI3518EV200 LifeSmart
if [ "$1" = "rtl8188fu-hi3518ev200-lifesmart" ]; then
set_gpio 54 1
modprobe 8188fu
exit 0
fi
# HI3518EV200 Rostelecom QVC-IPC-136W
if [ "$1" = "rtl8188eu-hi3518ev200-qvc-ipc-136w" ]; then
set_gpio 7 1
modprobe 8188eu
exit 0
fi
# HI3518EV300 Unknown1
if [ "$1" = "rtl8188fu-hi3518ev300-unknown1" ]; then
set_gpio 57 0
modprobe mac80211
modprobe 8188fu
exit 0
fi
# SSC333 Tapo C110
if [ "$1" = "ssw101b-ssc333-tapo-c110" ]; then
set_gpio 16 1
modprobe ssw101b_wifi_usb
exit 0
fi
# SSC337DE Foscam
if [ "$1" = "rtl8188fu-ssc337de-foscam" ]; then
modprobe 8188fu
exit 0
fi
# SSC337DE Vendor
if [ "$1" = "aic8800-ssc337de-vendor" ]; then
modprobe aic8800_fdrv
exit 0
fi
# T10 NVT
if [ "$1" = "mt7601sta-t10-nvt" ]; then
modprobe cfg80211
modprobe mt7601sta
exit 0
fi
# T21 BJS
if [ "$1" = "rtl8188fu-t21-bjs" ]; then
set_gpio 50 0
modprobe 8188fu
exit 0
fi
# T21 Smartwares
if [ "$1" = "rtl8188fu-t21-smartwares" ]; then
set_gpio 49 1
modprobe 8188fu
exit 0
fi
# T31 CamHi
if [ "$1" = "mt7601u-t31-camhi" ]; then
set_gpio 61 0
modprobe mac80211
exit 0
fi
exit 1

View File

@ -10,6 +10,9 @@ lib/modules/3.10.14__isvp_swan_1.0__/extra/sensor_gc4023_t31.ko
etc/sensor/gc4653-t31.bin
etc/sensor/gc4653.yaml
lib/modules/3.10.14__isvp_swan_1.0__/extra/sensor_gc4653_t31.ko
etc/sensor/imx327-t31.bin
etc/sensor/imx327.yaml
lib/modules/3.10.14__isvp_swan_1.0__/extra/sensor_imx327_t31.ko
etc/sensor/jxf37-t31.bin
etc/sensor/jxf37.yaml
lib/modules/3.10.14__isvp_swan_1.0__/extra/sensor_jxf37_t31.ko

View File

@ -23,6 +23,9 @@ etc/sensor/imx307-t31.bin
etc/sensor/imx307.yaml
lib/modules/3.10.14__isvp_swan_1.0__/extra/sensor_imx307_t31.ko
etc/sensor/imx327-t31.bin
etc/sensor/imx327.yaml
lib/modules/3.10.14__isvp_swan_1.0__/extra/sensor_imx327_t31.ko
etc/sensor/jxf37-t31.bin
etc/sensor/jxf37.yaml

View File

@ -1,6 +1,9 @@
etc/sensor/imx307-t31.bin
etc/sensor/imx307.yaml
lib/modules/3.10.14__isvp_swan_1.0__/extra/sensor_imx307_t31.ko
etc/sensor/imx327-t31.bin
etc/sensor/imx327.yaml
lib/modules/3.10.14__isvp_swan_1.0__/extra/sensor_imx327_t31.ko
etc/sensor/jxf37-t31.bin
etc/sensor/jxf37.yaml
lib/modules/3.10.14__isvp_swan_1.0__/extra/sensor_jxf37_t31.ko