diff options
author | Matthias Fuchs <matthias.fuchs@esd-electronics.com> | 2008-01-08 15:40:09 +0100 |
---|---|---|
committer | Stefan Roese <sr@denx.de> | 2008-01-09 06:33:03 +0100 |
commit | 1f84021a85abeb837d2ce0dc84297b4f1d45d516 (patch) | |
tree | f0b17515a55bb5577696f6e67d08f0f543eda682 /board | |
parent | 6e9233d30afe57cb6e148fbfa4895e7810196fac (diff) | |
download | u-boot-imx-1f84021a85abeb837d2ce0dc84297b4f1d45d516.zip u-boot-imx-1f84021a85abeb837d2ce0dc84297b4f1d45d516.tar.gz u-boot-imx-1f84021a85abeb837d2ce0dc84297b4f1d45d516.tar.bz2 |
ppc4xx: assign PCI interrupts on seuqoia boards
Some operating systems rely on assigned PCI interrupts.
Signed-off-by: Matthias Fuchs <matthias.fuchs@esd-electronics.com>
Diffstat (limited to 'board')
-rw-r--r-- | board/amcc/sequoia/sequoia.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/board/amcc/sequoia/sequoia.c b/board/amcc/sequoia/sequoia.c index 2268bc0..e46efef 100644 --- a/board/amcc/sequoia/sequoia.c +++ b/board/amcc/sequoia/sequoia.c @@ -29,6 +29,7 @@ #include <asm/gpio.h> #include <asm/processor.h> #include <asm/io.h> +#include <asm/ppc4xx-intvec.h> DECLARE_GLOBAL_DATA_PTR; @@ -387,6 +388,16 @@ int testdram(void) } #endif +#if defined(CONFIG_PCI) && defined(CONFIG_PCI_PNP) +/* + * Assign interrupts to PCI devices. + */ +void sequoia_pci_fixup_irq(struct pci_controller *hose, pci_dev_t dev) +{ + pci_hose_write_config_byte(hose, dev, PCI_INTERRUPT_LINE, VECNUM_EIR2); +} +#endif + /************************************************************************* * pci_pre_init * @@ -438,6 +449,9 @@ int pci_pre_init(struct pci_controller *hose) addr = (addr & ~plb1_acr_wrp_mask) | plb1_acr_wrp_2deep; mtdcr(plb1_acr, addr); +#ifdef CONFIG_PCI_PNP + hose->fixup_irq = sequoia_pci_fixup_irq; +#endif return 1; } #endif /* defined(CONFIG_PCI) */ |