some todo and comment for ron.

git-svn-id: svn://svn.coreboot.org/coreboot/trunk@2280 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
This commit is contained in:
Li-Ta Lo
2006-04-26 22:07:16 +00:00
parent ae11b37ea5
commit b7a09b4f19
3 changed files with 21 additions and 12 deletions

View File

@@ -156,12 +156,23 @@ static void dummy(void)
}
/* see page 412 of the cs5536 companion book */
static int cs5536_setup_onchipuart(void) {
static int cs5536_setup_onchipuart(void)
{
/* ToDo:
* 1. Eanble GPIO 8 to OUT_AUX1, 9 to IN_AUX1
* GPIO LBAR + 0x04, LBAR + 0x10, LBAR + 0x20, LBAR + 34
* 2. Enable UART IO space in MDD
* MSR 0x51400014 bit 18:16
* 3. Enable UART controller
* MSR 0x5140003A bit 0, 1
* 4. IRQ routing on IRQ Mapper
* MSR 0x51400021 bit [27:24]
*/
msr_t msr;
msr.lo = 2;
msr.hi = 0;
wrmsr(0x5160003a, msr);
wrmsr(0x5160003e, msr);
wrmsr(0x5140003a, msr);
wrmsr(0x5140003e, msr);
}
static int cs5536_early_setup(void)