add KT support

This commit is contained in:
Qingping Hou
2012-12-08 01:06:47 -05:00
parent e98a89f8d5
commit cc38d9e6fc
2 changed files with 14 additions and 3 deletions

View File

@@ -15,9 +15,16 @@ function Device:getModel()
end
end
if cpu_mod == "MX50" then
local f = lfs.attributes("/sys/devices/system/fl_tps6116x/fl_tps6116x0/fl_intensity")
if f then
-- for KPW
local pw_test_fd = lfs.attributes("/sys/devices/system/fl_tps6116x/fl_tps6116x0/fl_intensity")
-- for KT
local kt_test_fd = lfs.attributes("/sys/devices/platform/whitney-button")
-- another special file for KT is Neonode zForce touchscreen:
-- /sys/devices/platform/zforce.0/
if pw_test_fd then
return "KindlePaperWhite"
elseif kt_test_fd then
return "KindleTouch"
else
return "Kindle4"
end