summaryrefslogtreecommitdiff
path: root/src/mainboard
diff options
context:
space:
mode:
authorRonald G. Minnich <rminnich@gmail.com>2006-06-22 04:37:27 +0000
committerRonald G. Minnich <rminnich@gmail.com>2006-06-22 04:37:27 +0000
commit88fb1a6c371c9f368157bdb907f70d46bb670311 (patch)
treee15de2e82954df04eeacd055471c278c93b55f4f /src/mainboard
parent9d0b30dd2b33d04859986be85b125c3005b2a277 (diff)
downloadcoreboot-88fb1a6c371c9f368157bdb907f70d46bb670311.tar.xz
set up interrupt values for the southbridge, and add a function to
manage them. Make pci_level_irq global. Add value settings for OLPC rev_a board. Comment out no-longer-needed code in olpc mainboard.c -- it is replaced by the settings in Config.lb, and the support in cs5536.c git-svn-id: svn://svn.coreboot.org/coreboot/trunk@2328 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
Diffstat (limited to 'src/mainboard')
-rw-r--r--src/mainboard/olpc/rev_a/Config.lb9
-rw-r--r--src/mainboard/olpc/rev_a/mainboard.c4
2 files changed, 11 insertions, 2 deletions
diff --git a/src/mainboard/olpc/rev_a/Config.lb b/src/mainboard/olpc/rev_a/Config.lb
index e0e2613b30..0cc42811d0 100644
--- a/src/mainboard/olpc/rev_a/Config.lb
+++ b/src/mainboard/olpc/rev_a/Config.lb
@@ -135,8 +135,13 @@ chip northbridge/amd/gx2
device pci 1.1 on end
chip southbridge/amd/cs5536
register "enable_gpio0_inta" = "1"
- register "enable_ide_nand_flash" = "1"
- register "enable_uarta" = "1"
+ register "enable_ide_nand_flash" = "1"
+ register "enable_uarta" = "1"
+ register "audio_irq" = "5"
+ register "usbf4_irq" = "10"
+ register "usbf5_irq" = "0"
+ register "usbf6_irq" = "0"
+ register "usbf7_irq" = "0"
device pci d.0 on end # Realtek 8139 LAN
device pci f.0 on end # ISA Bridge
device pci f.2 on end # IDE Controller
diff --git a/src/mainboard/olpc/rev_a/mainboard.c b/src/mainboard/olpc/rev_a/mainboard.c
index b4e7eba93f..80d01586c8 100644
--- a/src/mainboard/olpc/rev_a/mainboard.c
+++ b/src/mainboard/olpc/rev_a/mainboard.c
@@ -9,13 +9,16 @@
static void init(struct device *dev) {
+/*
unsigned bus = 0;
unsigned devfn = PCI_DEVFN(0xf, 4);
device_t usb = NULL;
unsigned char usbirq = 0xa;
+*/
printk_debug("OLPC REVA ENTER %s\n", __FUNCTION__);
+#if 0
/* I can't think of any reason NOT to just set this. If it turns out we want this to be
* conditional we can make it a config variable later.
*/
@@ -28,6 +31,7 @@ static void init(struct device *dev) {
} else {
pci_write_config8(usb, PCI_INTERRUPT_LINE, usbirq);
}
+#endif
printk_debug("OLPC REVA EXIT %s\n", __FUNCTION__);
}