summaryrefslogtreecommitdiff
path: root/chip/it83xx/system.c
diff options
context:
space:
mode:
authorDino Li <dino.li@ite.com.tw>2016-01-05 13:49:57 +0800
committerchrome-bot <chrome-bot@chromium.org>2016-01-05 23:39:11 -0800
commit0c8a1b8d39734eaae692eacbe04894207bb2c6da (patch)
tree27369562b39a8a4aeb54b1da65ec7abaceb8ca4b /chip/it83xx/system.c
parentc3ce180fb06e4d5097e9fd262ff54fa701df3cd3 (diff)
downloadchrome-ec-0c8a1b8d39734eaae692eacbe04894207bb2c6da.tar.gz
core: nds32: add task_wait_event_mask() function to nds32 core
[task] 1. Copy task_wait_event_mask() function of cortex-m0. [system] 2. Include host_command.h for host_command_pd_request_hibernate(). [i2c] 3. Update i2c handler to use task_wait_event_mask. Signed-off-by: Dino Li <dino.li@ite.com.tw> BRANCH=none BUG=chromium:435611,chromium:435612 TEST=1. console commands: i2cscan, i2cxfer, and battery. Change-Id: If5bb4407460d28c0b021ab133ca4b635ff7bc3c9 Reviewed-on: https://chromium-review.googlesource.com/320440 Commit-Ready: Dino Li <dino.li@ite.com.tw> Tested-by: Dino Li <dino.li@ite.com.tw> Reviewed-by: Randall Spangler <rspangler@chromium.org>
Diffstat (limited to 'chip/it83xx/system.c')
-rw-r--r--chip/it83xx/system.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/chip/it83xx/system.c b/chip/it83xx/system.c
index 6019c5f41b..90e234ce86 100644
--- a/chip/it83xx/system.c
+++ b/chip/it83xx/system.c
@@ -9,6 +9,7 @@
#include "cpu.h"
#include "ec2i_chip.h"
#include "flash.h"
+#include "host_command.h"
#include "registers.h"
#include "system.h"
#include "task.h"