diff options
author | Vincent Palatin <vpalatin@chromium.org> | 2015-01-06 11:00:36 -0800 |
---|---|---|
committer | ChromeOS Commit Bot <chromeos-commit-bot@chromium.org> | 2015-01-15 01:07:02 +0000 |
commit | 4e75e20f4ec5cecda6742d821b1a4484952fd07e (patch) | |
tree | 210a7f79055092da7b180a27a67f7d3331b339ee /board/zinger/runtime.c | |
parent | 389ef0f90ff9318ced905d7a1ed8c025953aebc3 (diff) | |
download | chrome-ec-4e75e20f4ec5cecda6742d821b1a4484952fd07e.tar.gz |
Add PD events logging
Add a FIFO to log important events on the PD MCU and coming from the PD
accessories.
The retrieval of the accessories log from the accessories by the PD MCU
is not implemented yet.
Signed-off-by: Vincent Palatin <vpalatin@chromium.org>
BRANCH=samus
BUG=chrome-os-partner:32785
TEST=execute "ectool --name=cros_pd pdlog"
before and after plugging Zinger charger.
Change-Id: If96d73e711ff6ad64cfb99bd3e4d2d8f2643f19a
Reviewed-on: https://chromium-review.googlesource.com/238854
Tested-by: Vincent Palatin <vpalatin@chromium.org>
Reviewed-by: Alec Berg <alecaberg@chromium.org>
Commit-Queue: Vincent Palatin <vpalatin@chromium.org>
Trybot-Ready: Vincent Palatin <vpalatin@chromium.org>
Diffstat (limited to 'board/zinger/runtime.c')
-rw-r--r-- | board/zinger/runtime.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/board/zinger/runtime.c b/board/zinger/runtime.c index 9d644e763a..0dfb51aed4 100644 --- a/board/zinger/runtime.c +++ b/board/zinger/runtime.c @@ -56,6 +56,16 @@ void task_clear_pending_irq(int irq) CPU_NVIC_UNPEND(0) = 1 << irq; } +void interrupt_disable(void) +{ + asm("cpsid i"); +} + +void interrupt_enable(void) +{ + asm("cpsie i"); +} + uint32_t task_set_event(task_id_t tskid, uint32_t event, int wait) { last_event = event; |