diff options
author | Stephen Barber <smbarber@chromium.org> | 2016-07-07 11:40:38 -0700 |
---|---|---|
committer | chrome-bot <chrome-bot@chromium.org> | 2016-07-09 01:40:59 -0700 |
commit | 24abdc9a4e2dc056815feea2150b1d50f4d7c836 (patch) | |
tree | 507504fa02df7e7c4879445311878cac21f3829b /common/host_command.c | |
parent | 815b1356903306c66b3a433f0daa4577e1182a2e (diff) | |
download | chrome-ec-24abdc9a4e2dc056815feea2150b1d50f4d7c836.tar.gz |
common: add EC_FEATURE_RTC to features host command
If the EC has CONFIG_HOSTCMD_RTC set to 'y', then export this via the
features host command. The kernel can then use this feature to expose
an RTC device under /dev/rtc*.
Signed-off-by: Stephen Barber <smbarber@chromium.org>
BRANCH=none
BUG=chrome-os-partner:54639
TEST=`ectool inventory` shows RTC on kevin
Change-Id: I644c8e61c4d9f691cc6ca94ef60bee4384c21660
Reviewed-on: https://chromium-review.googlesource.com/359414
Commit-Ready: Stephen Barber <smbarber@chromium.org>
Tested-by: Stephen Barber <smbarber@chromium.org>
Reviewed-by: Shawn N <shawnn@chromium.org>
Diffstat (limited to 'common/host_command.c')
-rw-r--r-- | common/host_command.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/common/host_command.c b/common/host_command.c index 2a4c48a803..3fa537b0cf 100644 --- a/common/host_command.c +++ b/common/host_command.c @@ -755,6 +755,9 @@ static int host_command_get_features(struct host_cmd_handler_args *args) #ifdef CONFIG_USB_MUX_VIRTUAL | EC_FEATURE_MASK_0(EC_FEATURE_USBC_SS_MUX_VIRTUAL) #endif +#ifdef CONFIG_HOSTCMD_RTC + | EC_FEATURE_MASK_0(EC_FEATURE_RTC) +#endif ; return EC_RES_SUCCESS; } |