mirror of
https://github.com/micropython/micropython.git
synced 2026-01-06 12:10:13 +01:00
esp32/network_lan: Add PHY_GENERIC device type.
Support the new PHY_GENERIC device type, added in ESP-IDF v5.4.0 [1].
This PHY driver was added to ESP-IDF to support "generic"/oddball PHY
LAN chips like the JL1101, which offer no features beyond the bare
802.3 PHY standard and don't actually need a chip-specific driver (see
discussion at [2]).
[1] 0738314308
[2] https://github.com/espressif/esp-eth-drivers/pull/28
Signed-off-by: Elvis Pfutzenreuter <epxx@epxx.co>
This commit is contained in:
@@ -35,12 +35,22 @@
|
||||
#define PHY_LAN867X_ENABLED (0)
|
||||
#endif
|
||||
|
||||
// PHY_GENERIC support requires newer IDF version
|
||||
#if ESP_IDF_VERSION >= ESP_IDF_VERSION_VAL(5, 4, 0) && CONFIG_IDF_TARGET_ESP32
|
||||
#define PHY_GENERIC_ENABLED (1)
|
||||
#else
|
||||
#define PHY_GENERIC_ENABLED (0)
|
||||
#endif
|
||||
|
||||
enum {
|
||||
// PHYs supported by the internal Ethernet MAC:
|
||||
PHY_LAN8710, PHY_LAN8720, PHY_IP101, PHY_RTL8201, PHY_DP83848, PHY_KSZ8041, PHY_KSZ8081,
|
||||
#if PHY_LAN867X_ENABLED
|
||||
PHY_LAN8670,
|
||||
#endif
|
||||
#if PHY_GENERIC_ENABLED
|
||||
PHY_GENERIC,
|
||||
#endif
|
||||
// PHYs which are actually SPI Ethernet MAC+PHY chips:
|
||||
PHY_KSZ8851SNL = 100, PHY_DM9051, PHY_W5500
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user