diff options
author | Kim Phillips <kim.phillips@freescale.com> | 2008-06-10 13:25:24 -0500 |
---|---|---|
committer | Kim Phillips <kim.phillips@freescale.com> | 2008-06-10 13:34:27 -0500 |
commit | 2329fe113d847e43cca8e4a0e4edd613b50b8492 (patch) | |
tree | 1f6ae0ae91ee71bb5741274f7f0ae06d4fabb60c /board/mvblm7/pci.c | |
parent | a1293e549b56da135ef32ffca5b9d35a16aa6802 (diff) | |
download | u-boot-imx-2329fe113d847e43cca8e4a0e4edd613b50b8492.zip u-boot-imx-2329fe113d847e43cca8e4a0e4edd613b50b8492.tar.gz u-boot-imx-2329fe113d847e43cca8e4a0e4edd613b50b8492.tar.bz2 |
mpc83xx: MVBLM7: minor build fixups
Signed-off-by: Kim Phillips <kim.phillips@freescale.com>
Diffstat (limited to 'board/mvblm7/pci.c')
-rw-r--r-- | board/mvblm7/pci.c | 36 |
1 files changed, 2 insertions, 34 deletions
diff --git a/board/mvblm7/pci.c b/board/mvblm7/pci.c index 49fe921..ef34a6b 100644 --- a/board/mvblm7/pci.c +++ b/board/mvblm7/pci.c @@ -29,44 +29,12 @@ #endif #include <pci.h> #include <mpc83xx.h> +#include <fpga.h> #include "mvblm7.h" +#include "fpga.h" DECLARE_GLOBAL_DATA_PTR; -/* System RAM mapped to PCI space */ -#define CONFIG_PCI_SYS_MEM_BUS CFG_SDRAM_BASE -#define CONFIG_PCI_SYS_MEM_PHYS CFG_SDRAM_BASE - -#define SLOT0_IRQ 3 -#define SLOT1_IRQ 4 -void pci_mvblm7_fixup_irq(struct pci_controller *hose, pci_dev_t dev) -{ - unsigned char line = 0xff; - - if (PCI_BUS(dev) == 0) { - switch (PCI_DEV(dev)) { - case 0x0: - return; - case 0xb: - line = 0; - break; - case 0xc: - line = 1; - break; - default: - printf("***pci_scan: illegal dev = 0x%08x\n", - PCI_DEV(dev)); - line = 0xff; - break; - } - pci_hose_write_config_byte(hose, dev, PCI_INTERRUPT_LINE, line); - } -} - -static struct pci_controller pci_hose = { - fixup_irq:pci_mvblm7_fixup_irq -}; - int mvblm7_load_fpga(void) { size_t data_size = 0; |