[PATCH] rtemsbsd: Make ZynqMP CGEM interfaces selectable
Gedare Bloom
gedare at rtems.org
Tue Jun 8 20:29:21 UTC 2021
Please use the the --subject-prefix="PATCH rtems-libbsd"
as mentioned in
https://docs.rtems.org/branches/master/eng/vc-users.html#creating-a-patch
This helps set the context of the patch review better for non-rtems.git patches.
This patch looks good to me.
On Tue, Jun 8, 2021 at 2:19 PM Kinsey Moore <kinsey.moore at oarcorp.com> wrote:
>
> Use the new options from the ZynqMP BSPs to allow selection of the
> available CGEM ethernet interfaces.
> ---
> rtemsbsd/include/bsp/nexus-devices.h | 11 +++++++++++
> 1 file changed, 11 insertions(+)
>
> 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;
>
> --
> 2.20.1
>
> _______________________________________________
> devel mailing list
> devel at rtems.org
> http://lists.rtems.org/mailman/listinfo/devel
More information about the devel
mailing list