sm6375-common: Import vendor files for the Linux 6.1 port

Extracted from malmo_g W1UOS36H.35-39-8 and device-specific compatibility overrides. Device extraction scripts preserve the build compatibility fixups.
This commit is contained in:
TheImposter65 committed 2026-11-07 20:16:21 +00:00
commit 5d0291f99e
936 files changed
+60890

No files matched your search

+53
View File
@@ -0,0 +1,53 @@
#!/vendor/bin/sh
PATH=/sbin:/vendor/sbin:/vendor/bin:/vendor/xbin
export PATH
scriptname=${0##*/}
notice()
{
echo "$*"
echo "$scriptname: $*" > /dev/kmsg
}
# Globals
cap_path=
setup_permissions()
{
chmod 0660 $cap_path/fac_enable
chmod 0660 $cap_path/fac_cal
notice "set permission "
[ -e $cap_path/fac_detect ] && chown system:system $cap_path/fac_detect
[ -e $cap_path/fac_enable ] && chown system:system $cap_path/fac_enable
[ -e $cap_path/fac_cal ] && chown system:system $cap_path/fac_cal
[ -e $cap_path/fac_irq_state ] && chown system:system $cap_path/fac_irq_state
[ -e $cap_path/fac_compensation ] && chown system:system $cap_path/fac_compensation
[ -e $cap_path/fac_raw ] && chown system:system $cap_path/fac_raw
[ -e $cap_path/reset ] && chown system:system $cap_path/reset
}
# main
notice "cap sh start"
count=0
max=10
while [ ! -e /sys/class/capsense/capsense0 ]; do
sleep 1
count=$(($count+1))
if [ $count -gt $max ]; then
break
fi
done
if [ -e /sys/class/capsense/capsense0 ]; then
cap_path=/sys/class/capsense/capsense0
setup_permissions
fi
if [ -e /sys/class/capsense/capsense1 ]; then
cap_path=/sys/class/capsense/capsense1
setup_permissions
fi