summaryrefslogtreecommitdiff
path: root/board/amcc/katmai/katmai.c
diff options
context:
space:
mode:
authorGrzegorz Bernacki <gjb@semihalf.com>2007-09-07 18:35:37 +0200
committerRafal Jaworowski <raj@semihalf.com>2007-09-07 18:35:37 +0200
commit6efc1fc0b63e55f94c5bc61d8dd23c918e3bc778 (patch)
tree460ef1c2867ad29a0d68c3149d910e6ab351bec5 /board/amcc/katmai/katmai.c
parent7f1913938984ef6c6a46cb53e003719196d9c5de (diff)
downloadu-boot-imx-6efc1fc0b63e55f94c5bc61d8dd23c918e3bc778.zip
u-boot-imx-6efc1fc0b63e55f94c5bc61d8dd23c918e3bc778.tar.gz
u-boot-imx-6efc1fc0b63e55f94c5bc61d8dd23c918e3bc778.tar.bz2
[PPC440SPe] PCIe environment settings for Katmai and Yucca
- 'pciconfighost' is set by default in order to be able to scan bridges behind the primary host/PCIe - 'pciscandelay' env variable is recognized to allow for user-controlled delay before the PCIe bus enumeration; some peripheral devices require a significant delay before they can be scanned (e.g. LSI8408E); without the delay they are not detected Signed-off-by: Grzegorz Bernacki <gjb@semihalf.com>
Diffstat (limited to 'board/amcc/katmai/katmai.c')
-rw-r--r--board/amcc/katmai/katmai.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/board/amcc/katmai/katmai.c b/board/amcc/katmai/katmai.c
index a9ae4a3..afd60ec 100644
--- a/board/amcc/katmai/katmai.c
+++ b/board/amcc/katmai/katmai.c
@@ -396,6 +396,8 @@ void pcie_setup_hoses(int busno)
{
struct pci_controller *hose;
int i, bus;
+ char *env;
+ unsigned int delay;
/*
* assume we're called after the PCIX hose is initialized, which takes
@@ -439,6 +441,16 @@ void pcie_setup_hoses(int busno)
*/
#else
ppc440spe_setup_pcie_rootpoint(hose, i);
+
+ env = getenv ("pciscandelay");
+ if (env != NULL) {
+ delay = simple_strtoul (env, NULL, 10);
+ if (delay > 5)
+ printf ("Warning, expect noticable delay before PCIe"
+ "scan due to 'pciscandelay' value!\n");
+ mdelay (delay * 1000);
+ }
+
/*
* Config access can only go down stream
*/