summaryrefslogtreecommitdiff
path: root/chip/ish/config_chip.h
diff options
context:
space:
mode:
authorJack Rosenthal <jrosenth@chromium.org>2019-06-19 15:33:32 -0600
committerCommit Bot <commit-bot@chromium.org>2019-06-24 22:45:18 +0000
commit52e914fa8e674f61b9602f124e998a74adbc2b61 (patch)
tree4a3b18d5fab03b12e1443c10233f36e83663c356 /chip/ish/config_chip.h
parentc6aa7a384d179128339068531f79baed3a42ceef (diff)
downloadchrome-ec-52e914fa8e674f61b9602f124e998a74adbc2b61.tar.gz
ish: Use 64-bit hardware timer
ISH has native support for storing the hardware ticks in a 64-bit integer. With CONFIG_HWTIMER_64BIT, we can use this instead of relying on the periodic rollover interrupt. BUG=b:133190570,chromium:976804 BRANCH=none TEST=ran arcada_ish for more than 2³² μs, observed timer worked as normal Change-Id: I3b608c49081842f28d2ef8c16279992af1cb4fad Signed-off-by: Jack Rosenthal <jrosenth@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/1668056 Reviewed-by: Denis Brockus <dbrockus@chromium.org>
Diffstat (limited to 'chip/ish/config_chip.h')
-rw-r--r--chip/ish/config_chip.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/chip/ish/config_chip.h b/chip/ish/config_chip.h
index e6b1b52050..148341db47 100644
--- a/chip/ish/config_chip.h
+++ b/chip/ish/config_chip.h
@@ -108,6 +108,9 @@
/* Customize the build */
/* Optional features present on this chip */
+/* ISH uses 64-bit hardware timer */
+#define CONFIG_HWTIMER_64BIT
+
/* Macro used with gpio.inc, ISH only has port 0 */
#define GPIO_PIN(index) 0, (1 << (index))
#define GPIO_PIN_MASK(m) .port = 0, .mask = (m)