diff options
author | Ronald G. Minnich <rminnich@gmail.com> | 2006-08-10 03:23:48 +0000 |
---|---|---|
committer | Ronald G. Minnich <rminnich@gmail.com> | 2006-08-10 03:23:48 +0000 |
commit | af9cd4d0cf085a1b48e80b658841599b3831b8cd (patch) | |
tree | 07f79fed146a604342671d05758aa881e0fb5e68 /src/mainboard | |
parent | 08af3f535dd4446857e378b5dd87eb8ce35f823b (diff) | |
download | coreboot-af9cd4d0cf085a1b48e80b658841599b3831b8cd.tar.xz |
change from AMD for the IRQ10 problem.
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@2370 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
Diffstat (limited to 'src/mainboard')
-rw-r--r-- | src/mainboard/olpc/rev_a/auto.c | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/src/mainboard/olpc/rev_a/auto.c b/src/mainboard/olpc/rev_a/auto.c index d61532f39e..f0cd85d042 100644 --- a/src/mainboard/olpc/rev_a/auto.c +++ b/src/mainboard/olpc/rev_a/auto.c @@ -149,7 +149,18 @@ static void msr_init(void) __builtin_wrmsr(0x40000021, 0x80fffe0, 0x20000000); } - +static void gpio_init(void) +{ + unsigned long m; + + /* Make sure events enable for gpio 12 is off */ + + m = inl(GPIOL_EVENTS_ENABLE); + m &= ~GPIOL_12_SET; + m |= GPIOL_12_CLEAR; + outl(m, GPIOL_EVENTS_ENABLE); +} + static void main(unsigned long bist) { static const struct mem_controller memctrl [] = { @@ -166,6 +177,7 @@ static void main(unsigned long bist) * for cs5536 */ cs5536_setup_onchipuart(); + gpio_init(); uart_init(); console_init(); |