fix so that olpc uarts come up enabled.

git-svn-id: svn://svn.coreboot.org/coreboot/trunk@2272 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
This commit is contained in:
Ronald G. Minnich 2006-04-23 19:21:12 +00:00
parent ff8c08e257
commit 2f19800268
2 changed files with 10 additions and 1 deletions

View File

@ -153,7 +153,7 @@ static void main(unsigned long bist)
SystemPreInit(); SystemPreInit();
msr_init(); msr_init();
w83627hf_enable_serial(SERIAL_DEV, TTYS0_BASE); cs5536_setup_onchipuart();
uart_init(); uart_init();
console_init(); console_init();

View File

@ -155,6 +155,15 @@ static void dummy(void)
{ {
} }
/* see page 412 of the cs5536 companion book */
static int cs5536_setup_onchipuart(void) {
msr_t msr;
msr.lo = 2;
msr.hi = 0;
wrmsr(0x5160003a, msr);
wrmsr(0x5160003e, msr);
}
static int cs5536_early_setup(void) static int cs5536_early_setup(void)
{ {
msr_t msr; msr_t msr;