lm4: Remove 500k clock delay in clock_init()

We copied that delay because it seemed to be necessary on early LM4
chips to avoid glitching the UART.  But on current boards (e.g. rambi)
this does not seem to be necessary, and delays boot by 31ms.  So,
remove the delay.

BUG=chrome-os-partner:23794
BRANCH=rambi
TEST=boot system; see little to no glitching on EC uart, and system boots ok
     hibernate 1; see little to no glitching on EC uart, and system boots ok

Change-Id: I9d4b5927da4282e47e1b09be838104c64f25268c
Signed-off-by: Randall Spangler <rspangler@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/185232
Reviewed-by: Bill Richardson <wfrichar@chromium.org>
This commit is contained in:
Randall Spangler
2014-02-06 13:14:16 -08:00
committed by chrome-internal-fetch
parent 6ff7a74006
commit 36d4ecb153

View File

@@ -167,16 +167,6 @@ void clock_init(void)
LM4_SYSTEM_MOSCCTL = 0x04;
#endif
/*
* TODO(crosbug.com/p/23794): UART seems to glitch unless we wait 500k
* cycles before enabling the PLL, but only if this is a cold boot.
* Why? UART doesn't even use the PLL'd system clock. I've heard
* rumors the Stellaris ROM library does this too, but why? Revisit on
* current systems to see if this is is still needed.
*/
if (!system_jumped_to_this_image())
clock_wait_cycles(500000);
/* Make sure PLL is disabled */
disable_pll();
}