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:
@@ -153,7 +153,7 @@ static void main(unsigned long bist)
|
||||
SystemPreInit();
|
||||
msr_init();
|
||||
|
||||
w83627hf_enable_serial(SERIAL_DEV, TTYS0_BASE);
|
||||
cs5536_setup_onchipuart();
|
||||
uart_init();
|
||||
console_init();
|
||||
|
||||
|
@@ -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)
|
||||
{
|
||||
msr_t msr;
|
||||
|
Reference in New Issue
Block a user