platform/chrome: cros_ec_debugfs: Add debugfs entry to retrieve EC uptime
The new debugfs entry 'uptime' is being made available to userspace so that a userspace daemon can synchronize EC logs with host time. Signed-off-by: Tim Wawrzynczak <twawrzynczak@chromium.org> [rework based on Tim's first approach] Signed-off-by: Enric Balletbo i Serra <enric.balletbo@collabora.com> Tested-by: Tim Wawrzynczak <twawrzynczak@chromium.org>
This commit is contained in:

committed by
Enric Balletbo i Serra

parent
74e80d81cc
commit
e90716a661
8
Documentation/ABI/testing/debugfs-cros-ec
Normal file
8
Documentation/ABI/testing/debugfs-cros-ec
Normal file
@@ -0,0 +1,8 @@
|
||||
What: /sys/kernel/debug/<cros-ec-device>/uptime
|
||||
Date: June 2019
|
||||
KernelVersion: 5.3
|
||||
Description:
|
||||
A u32 providing the time since EC booted in ms. This is
|
||||
is used for synchronizing the AP host time with the EC
|
||||
log. An error is returned if the command is not supported
|
||||
by the EC or there is a communication problem.
|
Reference in New Issue
Block a user