summaryrefslogtreecommitdiff
path: root/chip
diff options
context:
space:
mode:
authorDino Li <dino.li@ite.com.tw>2016-02-17 13:31:30 +0800
committerchrome-bot <chrome-bot@chromium.org>2016-02-17 20:57:01 -0800
commit5a7767a20e3f654298eb1f92ace1e9d0d8a332c8 (patch)
tree1c39002374fa9c74e07cd87725253c3b9d5c2a1c /chip
parentc505edb0b5f3ed329338047127f356733ab72184 (diff)
downloadchrome-ec-5a7767a20e3f654298eb1f92ace1e9d0d8a332c8.tar.gz
config: it83xx: remove "CONFIG_IT83XX_PECI_WITH_INTERRUPT"
IT839x and the new series all support interrupt of PECI, so we remove it. Signed-off-by: Dino Li <dino.li@ite.com.tw> BRANCH=none BUG=none TEST=make -j buildall Change-Id: Ib126cb418a4ba5ef313ee93948bc2fbb96bc936d Reviewed-on: https://chromium-review.googlesource.com/327643 Commit-Ready: Dino Li <dino.li@ite.com.tw> Tested-by: Dino Li <dino.li@ite.com.tw> Reviewed-by: Vincent Palatin <vpalatin@chromium.org>
Diffstat (limited to 'chip')
-rw-r--r--chip/it83xx/peci.c11
1 files changed, 0 insertions, 11 deletions
diff --git a/chip/it83xx/peci.c b/chip/it83xx/peci.c
index 7aa1dbb0e8..7682ddbcfe 100644
--- a/chip/it83xx/peci.c
+++ b/chip/it83xx/peci.c
@@ -185,7 +185,6 @@ static enum peci_status peci_transaction(uint8_t addr,
IT83XX_PECI_HOWRDR = w_buf[index];
peci_current_task = task_get_current();
-#ifdef CONFIG_IT83XX_PECI_WITH_INTERRUPT
task_clear_pending_irq(IT83XX_IRQ_PECI);
task_enable_irq(IT83XX_IRQ_PECI);
@@ -198,17 +197,7 @@ static enum peci_status peci_transaction(uint8_t addr,
index = 0;
task_disable_irq(IT83XX_IRQ_PECI);
-#else
- /* start */
- IT83XX_PECI_HOCTLR |= 0x01;
-
- for (index = 0x00; index < timeout_us; index += 16) {
- if (IT83XX_PECI_HOSTAR & PECI_STATUS_ANY_BIT)
- break;
- udelay(15);
- }
-#endif
peci_current_task = TASK_ID_INVALID;
if (index < timeout_us) {