summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKinsey Moore <kinsey.moore@oarcorp.com>2021-06-08 15:08:48 -0500
committerJoel Sherrill <joel@rtems.org>2021-06-28 09:15:13 -0500
commit4ce914cb906f8f28980d1c8378eb5f56eb03205c (patch)
treeeb2ced2a14f6e255b73d0ba1f0425889285d4ec5
parentbuilder.py: Only disable tests if they are there (diff)
downloadrtems-libbsd-4ce914cb906f8f28980d1c8378eb5f56eb03205c.tar.bz2
rtemsbsd: Make ZynqMP CGEM interfaces selectable
Use the new options from the ZynqMP BSPs to allow selection of the available CGEM ethernet interfaces.
-rw-r--r--rtemsbsd/include/bsp/nexus-devices.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/rtemsbsd/include/bsp/nexus-devices.h b/rtemsbsd/include/bsp/nexus-devices.h
index 5b51de7e..5c1bab42 100644
--- a/rtemsbsd/include/bsp/nexus-devices.h
+++ b/rtemsbsd/include/bsp/nexus-devices.h
@@ -115,7 +115,18 @@ RTEMS_BSD_DRIVER_XILINX_ZYNQMP_SLCR;
* CGEM3 is used for LibBSD because all Zynq Ultrascale+ MPSoC dev boards treat
* the highest-mapped CGEM as the primary interface.
*/
+#if BSP_XILINX_ZYNQMP_USE_CGEM0
+RTEMS_BSD_DRIVER_XILINX_ZYNQMP_CGEM0(ZYNQMP_IRQ_ETHERNET_0);
+#endif
+#if BSP_XILINX_ZYNQMP_USE_CGEM1
+RTEMS_BSD_DRIVER_XILINX_ZYNQMP_CGEM1(ZYNQMP_IRQ_ETHERNET_1);
+#endif
+#if BSP_XILINX_ZYNQMP_USE_CGEM2
+RTEMS_BSD_DRIVER_XILINX_ZYNQMP_CGEM2(ZYNQMP_IRQ_ETHERNET_2);
+#endif
+#if BSP_XILINX_ZYNQMP_USE_CGEM3
RTEMS_BSD_DRIVER_XILINX_ZYNQMP_CGEM3(ZYNQMP_IRQ_ETHERNET_3);
+#endif
RTEMS_BSD_DRIVER_E1000PHY;
RTEMS_BSD_DRIVER_UKPHY;