diff options
author | Sam Hurst <shurst@google.com> | 2021-09-21 08:44:33 -0700 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2021-09-23 06:14:02 +0000 |
commit | 3151e266808c9cbff6a5274ad8ab993e5b7d09f0 (patch) | |
tree | adf1d3b81b1ae07eed0639f056808e7fcaed4b37 /zephyr/drivers/cros_rtc/Kconfig | |
parent | 5155d9c7bfc42aa3f53572e0389a8180d7f3a366 (diff) | |
download | chrome-ec-3151e266808c9cbff6a5274ad8ab993e5b7d09f0.tar.gz |
RTC: Zephyr IDT1337AG RTC driver
Zephyr IDT1337AG RTC driver
BRANCH=none
BUG=b:197743934
TEST=ectool rtcset 30000
ectool rtcget
Current time: 0x00007535 (30005)
ectool rtcsetalarm 10
after ~10 (measured with a timer) printed on
ec console: [160.248900 event set 0x0000000002000000]
I tested the alarm up to one hour.
Hibernation test:
rtc_alarm 10
hibernate
[339.906200 system hibernating]
*** Booting Zephyr OS build zephyr-v2.6.0-110-g862339fbeda5 ***
[Image: RO, herobrine_npcx9_v2.6.73690-ec:c87457
[Reset cause: power-on hibernate]
Signed-off-by: Sam Hurst <shurst@google.com>
Change-Id: If5b936af2555915582ca38fee751f57bb2b8d10f
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3173093
Reviewed-by: Wai-Hong Tam <waihong@google.com>
Reviewed-by: Keith Short <keithshort@chromium.org>
Diffstat (limited to 'zephyr/drivers/cros_rtc/Kconfig')
-rw-r--r-- | zephyr/drivers/cros_rtc/Kconfig | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/zephyr/drivers/cros_rtc/Kconfig b/zephyr/drivers/cros_rtc/Kconfig index 05aefe384c..9abe8e27e0 100644 --- a/zephyr/drivers/cros_rtc/Kconfig +++ b/zephyr/drivers/cros_rtc/Kconfig @@ -24,6 +24,13 @@ config CROS_RTC_NXP_PCF85063A This option enables a driver for providing the support of NXP Real-Time Clock (RTC) on the the I2C bus. +config CROS_RTC_RENESAS_IDT1337AG + bool "RENESAS IDT1337AG Real-Time Clock (RTC) driver for the Zephyr shim" + depends on PLATFORM_EC_I2C + help + This option enables a driver for providing the support of RENESAS + Real-Time Clock (RTC) on the the I2C bus. + endchoice # RTC Select endif # PLATFORM_EC_RTC |