From 581f592c12de91c0cf8279ede2850e38dd0cd2e8 Mon Sep 17 00:00:00 2001 From: Gabe Black Date: Sat, 26 Oct 2013 08:00:20 -0700 Subject: [PATCH] nyan: Initialize the ARM architectural timer in the RAM stage. This could be done much sooner in the generic timer initialization, but it's not used by coreboot and, if it's done in the RAM stage, it would be updateable when using early firmware selection. BUG=None TEST=Before setting up these timers, the Linux kernel behaved very poorly and would hang, trip the watchdog timer, and/or otherwise crash. After setting them up those problems were no longer noticeable. BRANCH=None Change-Id: I26e9dc6d5090a67c775e67f96cee13fad582803e Signed-off-by: Gabe Black Reviewed-on: https://chromium-review.googlesource.com/174836 Reviewed-by: Gabe Black Commit-Queue: Gabe Black Tested-by: Gabe Black --- src/mainboard/google/nyan/mainboard.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/mainboard/google/nyan/mainboard.c b/src/mainboard/google/nyan/mainboard.c index ccc6f12e97..38a6aa44ef 100644 --- a/src/mainboard/google/nyan/mainboard.c +++ b/src/mainboard/google/nyan/mainboard.c @@ -21,6 +21,7 @@ #include #include #include +#include #include #include @@ -126,6 +127,7 @@ static void mainboard_init(device_t dev) { setup_pinmux(); setup_kernel_info(); + clock_init_arm_generic_timer(); } static void mainboard_enable(device_t dev)