mirror of
https://github.com/Fishwaldo/u-boot.git
synced 2025-03-29 10:31:30 +00:00
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>
This commit is contained in:
parent
6e9233d30a
commit
1f84021a85
1 changed files with 14 additions and 0 deletions
|
@ -29,6 +29,7 @@
|
||||||
#include <asm/gpio.h>
|
#include <asm/gpio.h>
|
||||||
#include <asm/processor.h>
|
#include <asm/processor.h>
|
||||||
#include <asm/io.h>
|
#include <asm/io.h>
|
||||||
|
#include <asm/ppc4xx-intvec.h>
|
||||||
|
|
||||||
DECLARE_GLOBAL_DATA_PTR;
|
DECLARE_GLOBAL_DATA_PTR;
|
||||||
|
|
||||||
|
@ -387,6 +388,16 @@ int testdram(void)
|
||||||
}
|
}
|
||||||
#endif
|
#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
|
* 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;
|
addr = (addr & ~plb1_acr_wrp_mask) | plb1_acr_wrp_2deep;
|
||||||
mtdcr(plb1_acr, addr);
|
mtdcr(plb1_acr, addr);
|
||||||
|
|
||||||
|
#ifdef CONFIG_PCI_PNP
|
||||||
|
hose->fixup_irq = sequoia_pci_fixup_irq;
|
||||||
|
#endif
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
#endif /* defined(CONFIG_PCI) */
|
#endif /* defined(CONFIG_PCI) */
|
||||||
|
|
Loading…
Add table
Reference in a new issue