summaryrefslogtreecommitdiff
path: root/board/mccroskey
diff options
context:
space:
mode:
authorRandall Spangler <rspangler@chromium.org>2013-06-21 14:17:38 -0700
committerChromeBot <chrome-bot@google.com>2013-06-24 14:03:59 -0700
commit8a66ae3182268d51fe616a71148ccf0091f8005d (patch)
tree11f1b0d3586a6979757410377936339eaeb9a3a7 /board/mccroskey
parentc7e60d03aa4b60122aacaf77e0fd2491771b6662 (diff)
downloadchrome-ec-8a66ae3182268d51fe616a71148ccf0091f8005d.tar.gz
pit: Fix watchdog help for STM32L
Clean up timer initialization code to be more general, so that we can use timer 9 for the LSB on STM32L. Then use timer 4 for the watchdog helper. BUG=chrome-os-partner:18781 BRANCH=none TEST=From EC console: timerinfo -> current time still counts up properly waitms 2000 -> prints watchdog info before rebooting Change-Id: Ib0ba496b0eadb93756dcd1841857546910baf2a9 Signed-off-by: Randall Spangler <rspangler@chromium.org> Reviewed-on: https://gerrit.chromium.org/gerrit/59612 Reviewed-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'board/mccroskey')
-rw-r--r--board/mccroskey/board.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/board/mccroskey/board.h b/board/mccroskey/board.h
index a290ddc691..b5fe645496 100644
--- a/board/mccroskey/board.h
+++ b/board/mccroskey/board.h
@@ -49,6 +49,7 @@
/* Timer selection */
#define TIM_CLOCK_MSB 3
#define TIM_CLOCK_LSB 4
+#define TIM_WATCHDOG 1
/* GPIO signal list */
enum gpio_signal {