summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorRonald G. Minnich <rminnich@gmail.com>2006-04-23 19:21:12 +0000
committerRonald G. Minnich <rminnich@gmail.com>2006-04-23 19:21:12 +0000
commit2f1980026865af7b11f27257c36b61d897932186 (patch)
tree865287e8829ceb85b5a63014e2ad8dbd7cc57140 /src
parentff8c08e2577ee82446a3b800509ae7786d375979 (diff)
downloadcoreboot-2f1980026865af7b11f27257c36b61d897932186.tar.xz
fix so that olpc uarts come up enabled.
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@2272 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
Diffstat (limited to 'src')
-rw-r--r--src/mainboard/olpc/rev_a/auto.c2
-rw-r--r--src/southbridge/amd/cs5536/cs5536_early_setup.c9
2 files changed, 10 insertions, 1 deletions
diff --git a/src/mainboard/olpc/rev_a/auto.c b/src/mainboard/olpc/rev_a/auto.c
index 0c148b4f68..249df48814 100644
--- a/src/mainboard/olpc/rev_a/auto.c
+++ b/src/mainboard/olpc/rev_a/auto.c
@@ -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();
diff --git a/src/southbridge/amd/cs5536/cs5536_early_setup.c b/src/southbridge/amd/cs5536/cs5536_early_setup.c
index ff31f76235..99cc5d28c5 100644
--- a/src/southbridge/amd/cs5536/cs5536_early_setup.c
+++ b/src/southbridge/amd/cs5536/cs5536_early_setup.c
@@ -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;