summaryrefslogtreecommitdiff
path: root/ports/esp32/modnetwork.c
diff options
context:
space:
mode:
authorrobert-hh <robert@hammelrath.com>2022-12-24 09:37:02 +0100
committerDamien George <damien@micropython.org>2023-01-18 10:04:31 +1100
commitefb4bd35551ef1de393c088ce6d75ced7e810b64 (patch)
tree4aff96646a0c00a477145eca7e92b00e4c29b730 /ports/esp32/modnetwork.c
parentfc745d85febd3f8d407f38a5002ae39fba39cd07 (diff)
esp32/network_lan: Add support for LAN8710 PHY.
LAN8710 uses the same drivers as LAN8720, so this commit just adds the names. Alternatively, both could be summarised under LAN87xx, like the esp-idf does.
Diffstat (limited to 'ports/esp32/modnetwork.c')
-rw-r--r--ports/esp32/modnetwork.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/ports/esp32/modnetwork.c b/ports/esp32/modnetwork.c
index 7429274c1..cc066f361 100644
--- a/ports/esp32/modnetwork.c
+++ b/ports/esp32/modnetwork.c
@@ -261,6 +261,7 @@ STATIC const mp_rom_map_elem_t mp_module_network_globals_table[] = {
#endif
#if (ESP_IDF_VERSION_MAJOR == 4) && (ESP_IDF_VERSION_MINOR >= 1) && (CONFIG_IDF_TARGET_ESP32)
+ { MP_ROM_QSTR(MP_QSTR_PHY_LAN8710), MP_ROM_INT(PHY_LAN8710) },
{ MP_ROM_QSTR(MP_QSTR_PHY_LAN8720), MP_ROM_INT(PHY_LAN8720) },
{ MP_ROM_QSTR(MP_QSTR_PHY_IP101), MP_ROM_INT(PHY_IP101) },
{ MP_ROM_QSTR(MP_QSTR_PHY_RTL8201), MP_ROM_INT(PHY_RTL8201) },