bangkk: Correct double tap and udfps nodes

Change-Id: I323ffa5a0e4a33ee73005d12cdb3f919845b6bdb
This commit is contained in:
Anand S 2024-09-19 19:20:34 +05:30 committed by Michael Bestas
parent df17c2ce0a
commit 3c6ac1c248
No known key found for this signature in database
2 changed files with 7 additions and 8 deletions

View file

@ -1,14 +1,13 @@
on post-fs
# "Tap to wake" gesture
chown root input /sys/class/sensors/dt-gesture/enable
chmod 0660 /sys/class/sensors/dt-gesture/enable
chown root input /sys/class/sensors/dt-gesture/poll_delay
chmod 0660 /sys/class/sensors/dt-gesture/poll_delay
on post-fs on post-fs
chown system system /sys/devices/platform/soc/4804000.ufshc/clkgate_enable chown system system /sys/devices/platform/soc/4804000.ufshc/clkgate_enable
chown system system /sys/devices/platform/soc/4804000.ufshc/devfreq/4804000.ufshc/min_freq chown system system /sys/devices/platform/soc/4804000.ufshc/devfreq/4804000.ufshc/min_freq
# Sensors
chown system system /sys/devices/platform/soc/4a80000.spi/spi_master/spi0/spi0.0/touchscreen/primary/double_tap_enabled
chown system system /sys/devices/platform/soc/4a80000.spi/spi_master/spi0/spi0.0/touchscreen/primary/double_tap_pressed
chown system system /sys/devices/platform/soc/4a80000.spi/spi_master/spi0/spi0.0/touchscreen/primary/udfps_enabled
chown system system /sys/devices/platform/soc/4a80000.spi/spi_master/spi0/spi0.0/touchscreen/primary/udfps_pressed
on post-fs-data on post-fs-data
chown system system /sys/devices/platform/soc/soc:fm_wcn39x0/elna_en chown system system /sys/devices/platform/soc/soc:fm_wcn39x0/elna_en

View file

@ -120,7 +120,7 @@ class SysfsPollingOneShotSensor : public OneShotSensor {
int mPollFd; int mPollFd;
}; };
const std::string kTsPath = "/sys/devices/platform/soc/a94000.spi/spi_master/spi0/spi0.0/touchscreen/primary/"; const std::string kTsPath = "/sys/devices/platform/soc/4a80000.spi/spi_master/spi0/spi0.0/touchscreen/primary/";
const std::string kTsDoubleTapPressedPath = kTsPath + "double_tap_pressed"; const std::string kTsDoubleTapPressedPath = kTsPath + "double_tap_pressed";
const std::string kTsDoubleTapEnabledPath = kTsPath + "double_tap_enabled"; const std::string kTsDoubleTapEnabledPath = kTsPath + "double_tap_enabled";