diff options
author | Wolfgang Denk <wd@denx.de> | 2010-10-23 21:59:42 +0200 |
---|---|---|
committer | Wolfgang Denk <wd@denx.de> | 2010-10-23 21:59:42 +0200 |
commit | f2b382ea066d02d5ba44870024cc1295e85782ef (patch) | |
tree | 9891424412f40e0bbe3cb64d022597bffa301b50 /drivers/pci/fsl_pci_init.c | |
parent | 33a08c10c78baf67e41cd03d5732ddc338e8c2e9 (diff) | |
parent | bfe18815e8123f4456be8b5858b2b255d7881698 (diff) | |
download | u-boot-imx-f2b382ea066d02d5ba44870024cc1295e85782ef.zip u-boot-imx-f2b382ea066d02d5ba44870024cc1295e85782ef.tar.gz u-boot-imx-f2b382ea066d02d5ba44870024cc1295e85782ef.tar.bz2 |
Merge branch 'master' of git://git.denx.de/u-boot-mpc85xx
Diffstat (limited to 'drivers/pci/fsl_pci_init.c')
-rw-r--r-- | drivers/pci/fsl_pci_init.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/pci/fsl_pci_init.c b/drivers/pci/fsl_pci_init.c index 001e6eb..1f02103 100644 --- a/drivers/pci/fsl_pci_init.c +++ b/drivers/pci/fsl_pci_init.c @@ -91,6 +91,9 @@ int fsl_setup_hose(struct pci_controller *hose, unsigned long addr) { volatile ccsr_fsl_pci_t *pci = (ccsr_fsl_pci_t *) addr; + /* Reset hose to make sure its in a clean state */ + memset(hose, 0, sizeof(struct pci_controller)); + pci_setup_indirect(hose, (u32)&pci->cfg_addr, (u32)&pci->cfg_data); return fsl_is_pci_agent(hose); |