universal7885: Enable dt2w support

Signed-off-by: SamarV-121 <samarvispute121@gmail.com>
Change-Id: I94472cb028204aee3ff8379f4638848a90698234
This commit is contained in:
SamarV-121 2020-12-27 16:04:55 +05:30 committed by roynatech2544
commit d48312f054
2 changed files with 1 additions and 6 deletions

View file

@ -137,11 +137,9 @@ Return<void> Power::setFeature(Feature feature __unused, bool activate __unused)
initialize(); initialize();
} }
#ifdef TAP_TO_WAKE_NODE
if (feature == Feature::POWER_FEATURE_DOUBLE_TAP_TO_WAKE) { if (feature == Feature::POWER_FEATURE_DOUBLE_TAP_TO_WAKE) {
set(TAP_TO_WAKE_NODE, activate ? "1" : "0"); set("/sys/class/sec/tsp/cmd", activate ? "aot_enable,1" : "aot_enable,0");
} }
#endif
return Void(); return Void();
} }

View file

@ -36,7 +36,4 @@ static const std::vector<std::string> cpuInteractivePaths = {
"/sys/devices/system/cpu/cpu4/cpufreq/interactive" "/sys/devices/system/cpu/cpu4/cpufreq/interactive"
}; };
/* double tap to wake node */
//#define TAP_TO_WAKE_NODE "/sys/class/sec/tsp/dt2w_enable"
#endif // SAMSUNG_POWER_H #endif // SAMSUNG_POWER_H