diff options
author | stroese <stroese> | 2004-12-16 18:15:52 +0000 |
---|---|---|
committer | stroese <stroese> | 2004-12-16 18:15:52 +0000 |
commit | 5e746fce05f564a57f3d455134dbb5ae6f2d0315 (patch) | |
tree | c3712b0c0af8b8daf77b1c2d957826dc7f22e229 /cpu | |
parent | b39392a98b6df7de221fadfdac07ecfd1497732e (diff) | |
download | u-boot-imx-5e746fce05f564a57f3d455134dbb5ae6f2d0315.zip u-boot-imx-5e746fce05f564a57f3d455134dbb5ae6f2d0315.tar.gz u-boot-imx-5e746fce05f564a57f3d455134dbb5ae6f2d0315.tar.bz2 |
PMC405 board support added
Diffstat (limited to 'cpu')
-rw-r--r-- | cpu/ppc4xx/405gp_pci.c | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/cpu/ppc4xx/405gp_pci.c b/cpu/ppc4xx/405gp_pci.c index ff9215f..e59a5af 100644 --- a/cpu/ppc4xx/405gp_pci.c +++ b/cpu/ppc4xx/405gp_pci.c @@ -95,7 +95,7 @@ void pci_405gp_init(struct pci_controller *hose) unsigned short temp_short; unsigned long ptmpcila[2] = {CFG_PCI_PTM1PCI, CFG_PCI_PTM2PCI}; -#if defined(CONFIG_CPCI405) +#if defined(CONFIG_CPCI405) || defined(CONFIG_PMC405) unsigned long ptmla[2] = {bd->bi_memstart, bd->bi_flashstart}; unsigned long ptmms[2] = {~(bd->bi_memsize - 1) | 1, ~(bd->bi_flashsize - 1) | 1}; #else @@ -113,6 +113,11 @@ void pci_405gp_init(struct pci_controller *hose) unsigned long pmmpcila[3] = {0x80000000, 0,0}; unsigned long pmmpciha[3] = {0x00000000, 0,0}; #endif +#ifdef CONFIG_PCI_PNP +#if (CONFIG_PCI_HOST == PCI_HOST_AUTO) + char *s; +#endif +#endif /* * Register the hose @@ -255,7 +260,8 @@ void pci_405gp_init(struct pci_controller *hose) #if (CONFIG_PCI_HOST != PCI_HOST_ADAPTER) #if (CONFIG_PCI_HOST == PCI_HOST_AUTO) - if (mfdcr(strap) & PSR_PCI_ARBIT_EN) + if ((mfdcr(strap) & PSR_PCI_ARBIT_EN) || + (((s = getenv("pciscan")) != NULL) && (strcmp(s, "yes") == 0))) #endif { /*--------------------------------------------------------------------------+ @@ -284,7 +290,8 @@ void pci_405gp_init(struct pci_controller *hose) * Scan the PCI bus and configure devices found. *--------------------------------------------------------------------------*/ #if (CONFIG_PCI_HOST == PCI_HOST_AUTO) - if (mfdcr(strap) & PSR_PCI_ARBIT_EN) + if ((mfdcr(strap) & PSR_PCI_ARBIT_EN) || + (((s = getenv("pciscan")) != NULL) && (strcmp(s, "yes") == 0))) #endif { #ifdef CONFIG_PCI_SCAN_SHOW |