aboutsummaryrefslogtreecommitdiffstats
path: root/os/io/platforms/AT91SAM7X/phy_lld.h
diff options
context:
space:
mode:
Diffstat (limited to 'os/io/platforms/AT91SAM7X/phy_lld.h')
-rw-r--r--os/io/platforms/AT91SAM7X/phy_lld.h24
1 files changed, 24 insertions, 0 deletions
diff --git a/os/io/platforms/AT91SAM7X/phy_lld.h b/os/io/platforms/AT91SAM7X/phy_lld.h
index 09f7bbc92..df583426e 100644
--- a/os/io/platforms/AT91SAM7X/phy_lld.h
+++ b/os/io/platforms/AT91SAM7X/phy_lld.h
@@ -31,6 +31,30 @@
/* Driver pre-compile time settings. */
/*===========================================================================*/
+/**
+ * @brief PHY manufacturer and model.
+ */
+#if !defined(PHY_HARDWARE) || defined(__DOXYGEN__)
+#define PHY_HARDWARE PHY_MICREL_KS8721
+#endif
+
+/*===========================================================================*/
+/* PHY specific constants. */
+/*===========================================================================*/
+
+#define PHY_MICREL_KS8721 0
+
+#define PHY_ADDRESS 1
+
+/**
+ * @brief Pins latched by the PHY at reset.
+ */
+#define PHY_LATCHED_PINS (AT91C_PB4_ECRS | AT91C_PB5_ERX0 | \
+ AT91C_PB6_ERX1 | AT91C_PB7_ERXER | \
+ AT91C_PB13_ERX2 | AT91C_PB14_ERX3 | \
+ AT91C_PB15_ERXDV | AT91C_PB16_ECOL | \
+ AT91C_PIO_PB26)
+
/*===========================================================================*/
/* Driver data structures and types. */
/*===========================================================================*/