Add hall_file support to KindleTouch and KindleBasic4 (#15654)

Same as #13603 and #13615.
This commit is contained in:
Evan Krummel authored and GitHub committed 2026-07-08 18:41:14 +02:00
1 parent cc63764721
commit 93efd883e6
1 file changed
+2
+2
View File
@@ -1297,6 +1297,7 @@ function KindleTouch:init()
device = self,
batt_capacity_file = "/sys/devices/system/yoshi_battery/yoshi_battery0/battery_capacity",
is_charging_file = "/sys/devices/platform/fsl-usb2-udc/charging",
hall_file = "/sys/devices/platform/eink_hall/hall_enable",
}
self.input = require("device/input"):new{
device = self,
@@ -1798,6 +1799,7 @@ function KindleBasic4:init()
batt_capacity_file = "/sys/class/power_supply/bd71827_bat/capacity",
is_charging_file = "/sys/class/power_supply/bd71827_bat/charging",
batt_status_file = "/sys/class/power_supply/bd71827_bat/status",
hall_file = "/sys/devices/platform/eink_hall/hall_enable",
}
-- Enable the so-called "fast" mode, so as to prevent the driver from silently promoting refreshes to REAGL.