diff options
author | Mulin Chao <mlchao@nuvoton.com> | 2021-03-22 16:58:44 +0800 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2021-03-24 07:03:53 +0000 |
commit | 87910263fc889211312efbce054c811b61af7a74 (patch) | |
tree | f0a12fd1ba0568f52b32d7efffc842dc26d0f73e /zephyr/drivers/cros_rtc | |
parent | 18dd72e55c6ea7bb8a3a0429cf8df782f898e511 (diff) | |
download | chrome-ec-87910263fc889211312efbce054c811b61af7a74.tar.gz |
zephyr: driver: add CROS_RTC api
Add Real-Time Clock (RTC) API for Zephyr OS-based ec. Currently, Zephyr
doesn't provide setting RTC value functionality in the counter driver
api interface. Hence, a cros RTC api provides the low-level driver
interface related to it and the others used in cros ec.
BUG=b:178230662
BRANCH=None.
TEST=zmake testall
Signed-off-by: Mulin Chao <mlchao@nuvoton.com>
Signed-off-by: Wealian Liao <whliao@nuvoton.corp-partner.google.com>
Change-Id: Ia4b10739fbf65fa7213022cac6a17d2a9bc56b10
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2777938
Reviewed-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'zephyr/drivers/cros_rtc')
-rw-r--r-- | zephyr/drivers/cros_rtc/CMakeLists.txt | 3 | ||||
-rw-r--r-- | zephyr/drivers/cros_rtc/Kconfig | 3 |
2 files changed, 6 insertions, 0 deletions
diff --git a/zephyr/drivers/cros_rtc/CMakeLists.txt b/zephyr/drivers/cros_rtc/CMakeLists.txt new file mode 100644 index 0000000000..80f1d03d96 --- /dev/null +++ b/zephyr/drivers/cros_rtc/CMakeLists.txt @@ -0,0 +1,3 @@ +# Copyright 2021 The Chromium OS Authors. All rights reserved. +# Use of this source code is governed by a BSD-style license that can be +# found in the LICENSE file. diff --git a/zephyr/drivers/cros_rtc/Kconfig b/zephyr/drivers/cros_rtc/Kconfig new file mode 100644 index 0000000000..80f1d03d96 --- /dev/null +++ b/zephyr/drivers/cros_rtc/Kconfig @@ -0,0 +1,3 @@ +# Copyright 2021 The Chromium OS Authors. All rights reserved. +# Use of this source code is governed by a BSD-style license that can be +# found in the LICENSE file. |