Added adapter info for T21 (#715)

Co-authored-by: jayfan0 <>
pull/721/head
jayfan0 2023-04-08 20:49:20 +01:00 committed by GitHub
parent b6696a8ecc
commit c7b1f8497a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 11 additions and 5 deletions

View File

@ -1,7 +1,7 @@
#!/bin/sh
GPIO_RED=78
GPIO_GREEN=75
GPIO_RED=
GPIO_GREEN=
GPIO_BLUE=
help() {
@ -14,7 +14,7 @@ setRed() {
if [ -n "$GPIO_RED" ]; then
[ $1 -eq 1 ] && gpio set "$GPIO_RED" || gpio clear "$GPIO_RED"
else
echo "Red GPIO undefined"
echo "[INFO] Status Lights: Red GPIO undefined in /usr/sbin/light" > /dev/kmsg
fi
}
@ -22,7 +22,7 @@ setGreen() {
if [ -n "$GPIO_GREEN" ]; then
[ $1 -eq 1 ] && gpio set "$GPIO_GREEN" || gpio clear "$GPIO_GREEN"
else
echo "Green GPIO undefined"
echo "[INFO] Status Lights: Green GPIO undefined in /usr/sbin/light" > /dev/kmsg
fi
}
@ -30,7 +30,7 @@ setBlue() {
if [ -n "$GPIO_BLUE" ]; then
[ $1 -eq 1 ] && gpio set "$GPIO_BLUE" || gpio clear "$GPIO_BLUE"
else
echo "Blue GPIO undefined"
echo "[INFO] Status Lights: Blue GPIO undefined in /usr/sbin/light" > /dev/kmsg
fi
}

View File

@ -15,3 +15,9 @@ if [ "$CONFIG" = "hi3516ev300_ultimate_defconfig" ]; then
echo 7 > /sys/class/gpio/unexport
modprobe mt7601usta
fi
# Ingenic T21
if [ "$CONFIG" = "t21_lite_defconfig" ]; then
gpio clear 50
modprobe 8188fu
fi