[rtems-libbsd commit] pci_mpc85xx.c: Disable reset during initialization

Christian Mauderer christianm at rtems.org
Wed Jan 31 09:00:59 UTC 2024


Module:    rtems-libbsd
Branch:    6-freebsd-12
Commit:    e9acd95722765457643da892bfcfec9eddbc6ea0
Changeset: http://git.rtems.org/rtems-libbsd/commit/?id=e9acd95722765457643da892bfcfec9eddbc6ea0

Author:    Sebastian Huber <sebastian.huber at embedded-brains.de>
Date:      Wed Jan 19 09:04:34 2022 +0100

pci_mpc85xx.c: Disable reset during initialization

---

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



More information about the vc mailing list