diff options
author | Stefan Roese <sr@denx.de> | 2007-02-02 12:44:22 +0100 |
---|---|---|
committer | Stefan Roese <sr@denx.de> | 2007-02-02 12:44:22 +0100 |
commit | 7372ca68227930d03cffa548310524cad5b96733 (patch) | |
tree | ffbd07e6e891c8a8461890b76c60000cd25475ef /cpu | |
parent | 2aa54f651a42d198673318f07a20c89a43e4d197 (diff) | |
download | u-boot-imx-7372ca68227930d03cffa548310524cad5b96733.zip u-boot-imx-7372ca68227930d03cffa548310524cad5b96733.tar.gz u-boot-imx-7372ca68227930d03cffa548310524cad5b96733.tar.bz2 |
[PATCH] Correctly display PCI arbiter en-/disabled on some 4xx boards
Previously the strapping DCR/SDR was read to determine if the internal PCI
arbiter is enabled or not. This strapping bit can be overridden, so now
the current status is read from the correct DCR/SDR register.
Signed-off-by: Stefan Roese <sr@denx.de>
Diffstat (limited to 'cpu')
-rw-r--r-- | cpu/ppc4xx/cpu.c | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/cpu/ppc4xx/cpu.c b/cpu/ppc4xx/cpu.c index 7c96ad8..b02f6f4 100644 --- a/cpu/ppc4xx/cpu.c +++ b/cpu/ppc4xx/cpu.c @@ -88,14 +88,18 @@ int pci_arbiter_enabled(void) return (mfdcr(cpc0_strp1) & CPC0_STRP1_PAE_MASK); #endif -#if defined(CONFIG_440GX) || \ - defined(CONFIG_440EP) || defined(CONFIG_440GR) || \ - defined(CONFIG_440EPX) || defined(CONFIG_440GRX) || \ - defined(CONFIG_440SP) || defined(CONFIG_440SPE) +#if defined(CONFIG_440GX) || defined(CONFIG_440SP) || defined(CONFIG_440SPE) unsigned long val; - mfsdr(sdr_sdstp1, val); - return (val & SDR0_SDSTP1_PAE_MASK); + mfsdr(sdr_xcr, val); + return (val & 0x80000000); +#endif +#if defined(CONFIG_440EP) || defined(CONFIG_440GR) || \ + defined(CONFIG_440EPX) || defined(CONFIG_440GRX) + unsigned long val; + + mfsdr(sdr_pci0, val); + return (val & 0x80000000); #endif } #endif |