[PATCH rtems-libbsd] nexus-devices: Add riscv/MPFS BSP variant

Padmarao Begari padmarao.begari at microchip.com
Wed Mar 1 06:15:22 UTC 2023


Add riscv Microchip PolarFire SoC BSP variant and the
CGEM driver support
---
 rtemsbsd/include/bsp/nexus-devices.h | 12 +++++++++++-
 1 file changed, 11 insertions(+), 1 deletion(-)

diff --git a/rtemsbsd/include/bsp/nexus-devices.h b/rtemsbsd/include/bsp/nexus-devices.h
index 43a08207..239cb21e 100644
--- a/rtemsbsd/include/bsp/nexus-devices.h
+++ b/rtemsbsd/include/bsp/nexus-devices.h
@@ -285,6 +285,16 @@ SYSINIT_DRIVER_REFERENCE(xae, simplebus);
 SYSINIT_DRIVER_REFERENCE(axidma, simplebus);
 RTEMS_BSD_DRIVER_E1000PHY;
 
-#endif /* LIBBSP_MICROBLAZE_FPGA_BSP_H */
+#elif defined(LIBBSP_RISCV_GENERIC_H)
+
+#include <bsp/irq.h>
+#if defined(RISCV_ENABLE_MPFS_SUPPORT)
+RTEMS_BSD_DEFINE_NEXUS_DEVICE(ofwbus, 0, 0, NULL);
+SYSINIT_DRIVER_REFERENCE(simplebus, ofwbus);
+SYSINIT_DRIVER_REFERENCE(cgem, simplebus);
+RTEMS_BSD_DRIVER_UKPHY;
+#endif /* RISCV_ENABLE_MPFS_SUPPORT */
+
+#endif /* LIBBSP_RISCV_GENERIC_H */
 
 #endif
-- 
2.25.1



More information about the devel mailing list