mirror of
https://github.com/fail0verflow/switch-coreboot.git
synced 2025-05-04 01:39:18 -04:00
fixed irq table with Dave Ashley's Patch
This commit is contained in:
parent
c36551cea1
commit
5f2d733946
1 changed files with 9 additions and 16 deletions
|
@ -5,11 +5,12 @@
|
||||||
|
|
||||||
#include <types.h>
|
#include <types.h>
|
||||||
|
|
||||||
//static const unsigned char usbIrqs[4] = { 11, 5, 10, 12 };
|
static const unsigned char usbIrqs[4] = { 11, 10, 12, 5 };
|
||||||
static const unsigned char usbIrqs[4] = { 11, 12, 10, 5 };
|
|
||||||
static const unsigned char enetIrqs[4] = { 11, 5, 10, 12 };
|
static const unsigned char enetIrqs[4] = { 11, 5, 10, 12 };
|
||||||
static const unsigned char slotIrqs[4] = { 10, 12, 5, 11 };
|
static const unsigned char slotIrqs[4] = { 10, 12, 5, 11 };
|
||||||
static const unsigned char firewireIrqs[4] = { 12, 10, 5, 11 };
|
static const unsigned char firewireIrqs[4] = {10, 12, 5, 11 };
|
||||||
|
static const unsigned char vt8235Irqs[4] = { 5,10, 12, 11 }; // (DA) ???
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
Our IDSEL mappings are as follows
|
Our IDSEL mappings are as follows
|
||||||
|
@ -32,11 +33,11 @@ static void pci_routing_fixup(void)
|
||||||
* PINTD = IRQ5
|
* PINTD = IRQ5
|
||||||
*/
|
*/
|
||||||
pci_write_config_byte(dev, 0x55, 0xb0);
|
pci_write_config_byte(dev, 0x55, 0xb0);
|
||||||
pci_write_config_byte(dev, 0x56, 0xac);
|
pci_write_config_byte(dev, 0x56, 0xca);
|
||||||
pci_write_config_byte(dev, 0x57, 0x50);
|
pci_write_config_byte(dev, 0x57, 0x50);
|
||||||
|
|
||||||
}
|
}
|
||||||
#if 1
|
|
||||||
// firewire built into southbridge
|
// firewire built into southbridge
|
||||||
printk_info("setting firewire\n");
|
printk_info("setting firewire\n");
|
||||||
pci_assign_irqs(0, 0x0d, firewireIrqs);
|
pci_assign_irqs(0, 0x0d, firewireIrqs);
|
||||||
|
@ -53,16 +54,9 @@ static void pci_routing_fixup(void)
|
||||||
printk_info("setting pci slot\n");
|
printk_info("setting pci slot\n");
|
||||||
pci_assign_irqs(0, 0x14, slotIrqs);
|
pci_assign_irqs(0, 0x14, slotIrqs);
|
||||||
|
|
||||||
#endif
|
// vt8235 slot
|
||||||
|
printk_info("setting pci slot\n");
|
||||||
printk_debug("4d0: 0x%02x\n", inb(0x4d0));
|
pci_assign_irqs(0, 0x11, vt8235Irqs);
|
||||||
printk_debug("4d1: 0x%02x\n", inb(0x4d1));
|
|
||||||
#if 0
|
|
||||||
outb(0, 0x4d0);
|
|
||||||
outb(0, 0x4d1);
|
|
||||||
#endif
|
|
||||||
printk_debug("4d0: 0x%02x\n", inb(0x4d0));
|
|
||||||
printk_debug("4d1: 0x%02x\n", inb(0x4d1));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -81,7 +75,6 @@ final_southbridge_fixup()
|
||||||
printk_info("Southbridge fixup\n");
|
printk_info("Southbridge fixup\n");
|
||||||
|
|
||||||
nvram_on();
|
nvram_on();
|
||||||
// keyboard_on();
|
|
||||||
pci_routing_fixup();
|
pci_routing_fixup();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue