From 88fb1a6c371c9f368157bdb907f70d46bb670311 Mon Sep 17 00:00:00 2001 From: "Ronald G. Minnich" Date: Thu, 22 Jun 2006 04:37:27 +0000 Subject: 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 --- src/mainboard/olpc/rev_a/Config.lb | 9 +++++++-- src/mainboard/olpc/rev_a/mainboard.c | 4 ++++ 2 files changed, 11 insertions(+), 2 deletions(-) (limited to 'src/mainboard') 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__); } -- cgit v1.2.3