diff options
author | wdenk <wdenk> | 2003-10-22 09:00:28 +0000 |
---|---|---|
committer | wdenk <wdenk> | 2003-10-22 09:00:28 +0000 |
commit | 4654af27b894277c9e3dac5359f6b3e74d1405ac (patch) | |
tree | 9dab871bcc0aec4e86f6ec336011023d5af4978f /cpu | |
parent | a3ad8e26a4ac96838b2963cb462770c70c9f6443 (diff) | |
download | u-boot-imx-4654af27b894277c9e3dac5359f6b3e74d1405ac.zip u-boot-imx-4654af27b894277c9e3dac5359f6b3e74d1405ac.tar.gz u-boot-imx-4654af27b894277c9e3dac5359f6b3e74d1405ac.tar.bz2 |
Fix PCI problems on PPChameleon board
Diffstat (limited to 'cpu')
-rw-r--r-- | cpu/ppc4xx/405gp_pci.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/cpu/ppc4xx/405gp_pci.c b/cpu/ppc4xx/405gp_pci.c index fa5acfc..d3f6b23 100644 --- a/cpu/ppc4xx/405gp_pci.c +++ b/cpu/ppc4xx/405gp_pci.c @@ -206,11 +206,14 @@ void pci_405gp_init(struct pci_controller *hose) *--------------------------------------------------------------------------*/ out32r(PTM1LA, ptmla[0]); /* insert address */ out32r(PTM1MS, ptmms[0]); /* insert size, enable bit is 1 */ + pci_write_config_dword(PCIDEVID_405GP, PCI_BASE_ADDRESS_1, ptmpcila[0]); /*--------------------------------------------------------------------------+ * 405GP PCI Target configuration. (PTM2) *--------------------------------------------------------------------------*/ out32r(PTM2LA, ptmla[1]); /* insert address */ + pci_write_config_dword(PCIDEVID_405GP, PCI_BASE_ADDRESS_2, ptmpcila[1]); + if (ptmms[1] == 0) { out32r(PTM2MS, 0x00000001); /* set enable bit */ @@ -251,7 +254,7 @@ void pci_405gp_init(struct pci_controller *hose) } #if (CONFIG_PCI_HOST != PCI_HOST_ADAPTER) -#if (CONFIG_PCI_HOSE == PCI_HOST_AUTO) +#if (CONFIG_PCI_HOST == PCI_HOST_AUTO) if (mfdcr(strap) & PSR_PCI_ARBIT_EN) #endif { |