From: Sebastian Huber <sebastian.hu...@embedded-brains.de>

---
 freebsd/sys/powerpc/mpc85xx/pci_mpc85xx.c | 2 ++
 1 file changed, 2 insertions(+)

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);
-- 
2.35.3

_______________________________________________
devel mailing list
devel@rtems.org
http://lists.rtems.org/mailman/listinfo/devel

Reply via email to