summaryrefslogtreecommitdiff
path: root/cpu/ppc4xx/4xx_pci.c
diff options
context:
space:
mode:
authorWolfgang Denk <wd@denx.de>2009-07-13 23:34:30 +0200
committerWolfgang Denk <wd@denx.de>2009-07-13 23:34:30 +0200
commit5db1dcce91e98915ef8a3377774f860ba601301c (patch)
tree2504c06e506d807248cbb192cc1611f9e07b6e9d /cpu/ppc4xx/4xx_pci.c
parent116a0a544d13de12105ffb3cd8b19603db5def36 (diff)
parent632e9b671efb0a6c900499f7a49fe5b63292b5fc (diff)
downloadu-boot-imx-5db1dcce91e98915ef8a3377774f860ba601301c.zip
u-boot-imx-5db1dcce91e98915ef8a3377774f860ba601301c.tar.gz
u-boot-imx-5db1dcce91e98915ef8a3377774f860ba601301c.tar.bz2
Merge branch 'master' of git://git.denx.de/u-boot-ppc4xx
Diffstat (limited to 'cpu/ppc4xx/4xx_pci.c')
-rw-r--r--cpu/ppc4xx/4xx_pci.c25
1 files changed, 23 insertions, 2 deletions
diff --git a/cpu/ppc4xx/4xx_pci.c b/cpu/ppc4xx/4xx_pci.c
index 31ca85d..4b5d636 100644
--- a/cpu/ppc4xx/4xx_pci.c
+++ b/cpu/ppc4xx/4xx_pci.c
@@ -87,6 +87,20 @@ DECLARE_GLOBAL_DATA_PTR;
*/
int __pci_pre_init(struct pci_controller *hose)
{
+#if defined (CONFIG_405EP)
+ /*
+ * Enable the internal PCI arbiter by default.
+ *
+ * On 405EP CPUs the internal arbiter can be controlled
+ * by the I2C strapping EEPROM. If you want to do so
+ * or if you want to disable the arbiter pci_pre_init()
+ * must be reimplemented without enabling the arbiter.
+ * The arbiter is enabled in this place because of
+ * compatibility reasons.
+ */
+ mtdcr(cpc0_pci, mfdcr(cpc0_pci) | CPC0_PCI_ARBIT_EN);
+#endif /* CONFIG_405EP */
+
return 1;
}
int pci_pre_init(struct pci_controller *hose) __attribute__((weak, alias("__pci_pre_init")));
@@ -323,8 +337,15 @@ void pci_405gp_init(struct pci_controller *hose)
}
#endif
-#if defined(CONFIG_405EP) /* on ppc405ep vendor id is not set */
- pci_write_config_word(PCIDEVID_405GP, PCI_VENDOR_ID, 0x1014); /* IBM */
+#if defined(CONFIG_405EP)
+ /*
+ * on ppc405ep vendor/device id is not set
+ * The user manual says 0x1014 (IBM) / 0x0156 (405GP!)
+ * are the correct values.
+ */
+ pci_write_config_word(PCIDEVID_405GP, PCI_VENDOR_ID, PCI_VENDOR_ID_IBM);
+ pci_write_config_word(PCIDEVID_405GP,
+ PCI_DEVICE_ID, PCI_DEVICE_ID_IBM_405GP);
#endif
/*