[rtems-libbsd commit] nexus: Add UKPHY driver to ZynqMP
Joel Sherrill
joel at rtems.org
Wed Mar 10 14:58:05 UTC 2021
Module: rtems-libbsd
Branch: 6-freebsd-12
Commit: 023e94fd8b414dded9f0a19c4aa350754451b27a
Changeset: http://git.rtems.org/rtems-libbsd/commit/?id=023e94fd8b414dded9f0a19c4aa350754451b27a
Author: Kinsey Moore <kinsey.moore at oarcorp.com>
Date: Mon Mar 8 08:05:24 2021 -0600
nexus: Add UKPHY driver to ZynqMP
ZynqMP hardware comes with many different Ethernet PHYs depending on
which board is used. Add the UKPHY driver to handle basic PHY
interaction for any unrecognized PHYs.
---
rtemsbsd/include/bsp/nexus-devices.h | 1 +
rtemsbsd/include/machine/rtems-bsd-nexus-bus.h | 9 +++++++++
2 files changed, 10 insertions(+)
diff --git a/rtemsbsd/include/bsp/nexus-devices.h b/rtemsbsd/include/bsp/nexus-devices.h
index ea8fa7d..50f23e7 100644
--- a/rtemsbsd/include/bsp/nexus-devices.h
+++ b/rtemsbsd/include/bsp/nexus-devices.h
@@ -117,6 +117,7 @@ RTEMS_BSD_DRIVER_XILINX_ZYNQMP_SLCR;
*/
RTEMS_BSD_DRIVER_XILINX_ZYNQMP_CGEM3(ZYNQMP_IRQ_ETHERNET_3);
RTEMS_BSD_DRIVER_E1000PHY;
+RTEMS_BSD_DRIVER_UKPHY;
#elif defined(LIBBSP_ARM_ATSAM_BSP_H)
diff --git a/rtemsbsd/include/machine/rtems-bsd-nexus-bus.h b/rtemsbsd/include/machine/rtems-bsd-nexus-bus.h
index bb5546a..632c146 100644
--- a/rtemsbsd/include/machine/rtems-bsd-nexus-bus.h
+++ b/rtemsbsd/include/machine/rtems-bsd-nexus-bus.h
@@ -78,6 +78,7 @@
* RTEMS_BSD_DRIVER_ICSPHY
* RTEMS_BSD_DRIVER_REPHY
* RTEMS_BSD_DRIVER_PHY_MIC
+ * RTEMS_BSD_DRIVER_UKPHY
*/
#if !defined(RTEMS_BSD_NEXUS_BUS_h)
@@ -543,6 +544,14 @@ extern "C" {
SYSINIT_DRIVER_REFERENCE(micphy, miibus);
#endif /* RTEMS_BSD_DRIVER_PHY_MIC */
+/*
+ * UK PHY.
+ */
+#if !defined(RTEMS_BSD_DRIVER_UKPHY)
+ #define RTEMS_BSD_DRIVER_UKPHY \
+ SYSINIT_DRIVER_REFERENCE(ukphy, miibus);
+#endif /* RTEMS_BSD_DRIVER_UKPHY */
+
#ifdef __cplusplus
}
#endif /* __cplusplus */
More information about the vc
mailing list