summaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
authorVincent Palatin <vpalatin@chromium.org>2013-10-25 15:33:41 -0700
committerchrome-internal-fetch <chrome-internal-fetch@google.com>2014-01-08 02:24:23 +0000
commit4cf4fcf1cb6a4332a27dd76ae19ba8852ddbaaec (patch)
treec7c60433492976a10506ec93e8fee8f7483fa44c /common
parent375e75de27813e0f440fefc45892157972e300dc (diff)
downloadchrome-ec-4cf4fcf1cb6a4332a27dd76ae19ba8852ddbaaec.tar.gz
ite: Add initial support for ITE IT8380 chip
Initial support for the ITE IT8380 chip with the following peripherals : - 8250-like UART module. - HW timer (with a 128-us tick period). - GPIO with pins initialization and edge interrupt support. other functions are stubbed. - Clock : basic fixed frequency setup only. It also add the dev board configuration as a test vehicle. Signed-off-by: Alec Berg <alecaberg@chromium.org> Signed-off-by: Vincent Palatin <vpalatin@chromium.org> BRANCH=none BUG=chrome-os-partner:23575 TEST=make BOARD=it8380dev on IT8380 dev board, use the EC serial console, use gettime from console. Change-Id: Id4bf37d1beb21d1a4bee404c9a0bc500025fe787 Reviewed-on: https://chromium-review.googlesource.com/175481 Reviewed-by: Vincent Palatin <vpalatin@chromium.org> Commit-Queue: Alec Berg <alecaberg@chromium.org> Tested-by: Alec Berg <alecaberg@chromium.org>
Diffstat (limited to 'common')
-rw-r--r--common/timer.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/common/timer.c b/common/timer.c
index 550b9d20ea..bc36c87c49 100644
--- a/common/timer.c
+++ b/common/timer.c
@@ -94,6 +94,7 @@ void process_timers(int overflow)
} while (next.val <= get_time().val);
}
+#ifndef CONFIG_HW_SPECIFIC_UDELAY
void udelay(unsigned us)
{
unsigned t0 = __hw_clock_source_read();
@@ -111,6 +112,7 @@ void udelay(unsigned us)
while (__hw_clock_source_read() - t0 < us)
;
}
+#endif
int timer_arm(timestamp_t tstamp, task_id_t tskid)
{