diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2022-01-19 09:04:34 +0100 |
---|---|---|
committer | Christian Mauderer <christian.mauderer@embedded-brains.de> | 2024-01-31 09:55:59 +0100 |
commit | e9acd95722765457643da892bfcfec9eddbc6ea0 (patch) | |
tree | 11afac6a073a5090caf1b9506f9303d5f228c2dc | |
parent | mpc85xx: Support P20XX Local Access Window regs (diff) | |
download | rtems-libbsd-e9acd95722765457643da892bfcfec9eddbc6ea0.tar.bz2 |
pci_mpc85xx.c: Disable reset during initialization
-rw-r--r-- | freebsd/sys/powerpc/mpc85xx/pci_mpc85xx.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/freebsd/sys/powerpc/mpc85xx/pci_mpc85xx.c b/freebsd/sys/powerpc/mpc85xx/pci_mpc85xx.c index beaf96e8..47879e68 100644 --- a/freebsd/sys/powerpc/mpc85xx/pci_mpc85xx.c +++ b/freebsd/sys/powerpc/mpc85xx/pci_mpc85xx.c @@ -383,6 +383,7 @@ fsl_pcib_attach(device_t dev) PCIM_CMD_PORTEN; fsl_pcib_cfgwrite(sc, 0, 0, 0, PCIR_COMMAND, cfgreg, 2); +#ifndef __rtems__ /* Reset the bus. Needed for Radeon video cards. */ brctl = fsl_pcib_read_config(sc->sc_dev, 0, 0, 0, PCIR_BRIDGECTL_1, 1); @@ -394,6 +395,7 @@ fsl_pcib_attach(device_t dev) fsl_pcib_write_config(sc->sc_dev, 0, 0, 0, PCIR_BRIDGECTL_1, brctl, 1); DELAY(100000); +#endif /* __rtems__ */ if (sc->sc_pcie) { ltssm = fsl_pcib_cfgread(sc, 0, 0, 0, PCIR_LTSSM, 1); |