| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
In the interest of making long-term branch maintenance incur as little
technical debt on us as possible, we should not maintain any files on
the branch we are not actually using.
This has the added effect of making it extremely clear when merging CLs
from the main branch when changes have the possibility to affect us.
The follow-on CL adds a convenience script to actually pull updates from
the main branch and generate a CL for the update.
BUG=b:204206272
BRANCH=ish
TEST=make BOARD=arcada_ish && make BOARD=drallion_ish
Signed-off-by: Jack Rosenthal <jrosenth@chromium.org>
Change-Id: I17e4694c38219b5a0823e0a3e55a28d1348f4b18
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3262038
Reviewed-by: Jett Rink <jettrink@chromium.org>
Reviewed-by: Tom Hughes <tomhughes@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Zephyr PCF85063A RTC driver
BRANCH=none
BUG=b:194710429
TEST=ectool rtcset 30000
ectool rtcget
Current time: 0x0000753d (30013)
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
RTC: 0x00047624 (292388.00 s)
$ hibernate
Hibernating until wake pin asserted.
# Wait approx. 30s before pressing power button
[Reset cause: hibernate wake-pin]
$ rtc
RTC: 0x00047645 (292421.00 s)
# 292421s - 292388s = 33s
Signed-off-by: Sam Hurst <shurst@google.com>
Change-Id: I3d5eb7d209dd63df54049a02165076f393d53be1
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3115449
Reviewed-by: Keith Short <keithshort@chromium.org>
Reviewed-by: Wai-Hong Tam <waihong@google.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Zephyr v2.6 deprecated the macro device_pm_control_nop, remove the
use in our repo to avoid warnings.
BRANCH=none
BUG=b:190731415
TEST=zmake configure -b zephyr/projects/trogdor/lazor
Signed-off-by: Yuval Peress <peress@chromium.org>
Change-Id: I515de7e62e3496ca9ddb55b05ca195fa91e35cc1
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2980434
Reviewed-by: Denis Brockus <dbrockus@chromium.org>
Commit-Queue: Denis Brockus <dbrockus@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This CL enables the RTC's irq when users set rtc alarm and disables it
when users reset rtc alarm. It makes sure rtc alarm works properly
when someone turn off the related WKEN unexpectedly.
BUG=b:183745774
BRANCH=none
TEST=zmake testall
Signed-off-by: Mulin Chao <mlchao@nuvoton.com>
Change-Id: I1da24a497f10e2b1b94546979659e1eb188b1028
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2821115
Tested-by: Wealian Liao <whliao@nuvoton.corp-partner.google.com>
Reviewed-by: Jack Rosenthal <jrosenth@chromium.org>
Reviewed-by: Wai-Hong Tam <waihong@google.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Keith Short <keithshort@chromium.org>
Commit-Queue: Jack Rosenthal <jrosenth@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This implements cros_rtc_npcx driver for Zephyr OS-based EC. For the
NPCX7 chip, NPCX Monotonic Counter(MTC) provides a time-keeping
function with a resolution of one second. MTC is selected to implement
the cros_rtc_npcx driver.
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: Ibd9e27efe4a8b84cdac6d61539742c4f3eb93fce
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2767056
Reviewed-by: Simon Glass <sjg@chromium.org>
|
|
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>
|