diff options
author | Anton Vorontsov <avorontsov@ru.mvista.com> | 2008-10-02 19:17:33 +0400 |
---|---|---|
committer | Kim Phillips <kim.phillips@freescale.com> | 2008-10-21 18:34:14 -0500 |
commit | 00f7bbae92e3b13f2b37aeb1def9bb12445521b7 (patch) | |
tree | 83615d76b5951cd8d9d5f9e27b8cc13c200fb371 /include | |
parent | 1da83a63d8e1b4bddeb82581b1745a09aac3e2d3 (diff) | |
download | u-boot-00f7bbae92e3b13f2b37aeb1def9bb12445521b7.tar.gz u-boot-00f7bbae92e3b13f2b37aeb1def9bb12445521b7.tar.bz2 u-boot-00f7bbae92e3b13f2b37aeb1def9bb12445521b7.zip |
mpc83xx: fix PCI scan hang on the standalone MPC837xE-MDS boards
The MPC837xE-MDS board's CPLD can auto-detect if the board is on the PIB,
standalone or acting as a PCI agent. User's Guide says:
- When the CPLD recognizes its location on the PIB it automatically
configures RCW to the PCI Host.
- If the CPLD fails to recognize its location then it is automatically
configured as an Agent and the PCI is configured to an external arbiter.
This sounds good. Though in the standalone setup the CPLD sets PCI_HOST
flag (it's ok, we can't act as PCI agents since we receive CLKIN, not
PCICLK), but the CPLD doesn't set the ARBITER_ENABLE flag, and without
any arbiter bad things will happen (here the board hangs during any config
space reads).
In this situation we must disable the PCI. And in case of anybody really
want to use an external arbiter, we provide "pci_external_aribter"
environment variable.
Signed-off-by: Anton Vorontsov <avorontsov@ru.mvista.com>
Signed-off-by: Kim Phillips <kim.phillips@freescale.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/configs/MPC837XEMDS.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/configs/MPC837XEMDS.h b/include/configs/MPC837XEMDS.h index e2f0942ce9..c3431ee4cc 100644 --- a/include/configs/MPC837XEMDS.h +++ b/include/configs/MPC837XEMDS.h @@ -348,6 +348,9 @@ #define CONFIG_SYS_PCI_SLV_MEM_SIZE 0x80000000 #ifdef CONFIG_PCI +#ifndef __ASSEMBLY__ +extern int board_pci_host_broken(void); +#endif #define CONFIG_83XX_GENERIC_PCI 1 /* Use generic PCI setup */ #define CONFIG_PQ_MDS_PIB 1 /* PQ MDS Platform IO Board */ |