This is to enable COM1 early.
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@2299 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
This commit is contained in:
parent
1656c18d76
commit
694d20e2d6
|
@ -190,12 +190,13 @@ static int cs5536_setup_onchipuart(void)
|
||||||
msr_t msr;
|
msr_t msr;
|
||||||
msr.lo = 2;
|
msr.lo = 2;
|
||||||
msr.hi = 0;
|
msr.hi = 0;
|
||||||
/* not sure what this is for, so comment it out ...
|
/* This enables COM2, but that should be done elsewhere
|
||||||
wrmsr(0x5140003a, msr);
|
|
||||||
wrmsr(0x5140003e, msr);
|
wrmsr(0x5140003e, msr);
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
|
/* enable COM1 */
|
||||||
|
wrmsr(0x5140003a, msr);
|
||||||
/* GPIO8 - UART1_TX */
|
/* GPIO8 - UART1_TX */
|
||||||
/* Set: Output Enable (0x4) */
|
/* Set: Output Enable (0x4) */
|
||||||
m = inl(GPIOL_OUTPUT_ENABLE);
|
m = inl(GPIOL_OUTPUT_ENABLE);
|
||||||
|
|
Loading…
Reference in New Issue