Skip to content

Commit 8e4ea02

Browse files
committed
esp32/modnetwork: Always enable PHY_GENERIC.
Also enable MICROPY_PY_NETWORK_LAN if SOC_EMAC_SUPPORTED is defined, which enables on ESP32-P4. Signed-off-by: Dryw Wade <dryw.wade@sparkfun.com>
1 parent 78ff170 commit 8e4ea02

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

ports/esp32/modnetwork.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
#endif
3838

3939
// PHY_GENERIC support requires newer IDF version
40-
#if ESP_IDF_VERSION >= ESP_IDF_VERSION_VAL(5, 4, 0) && CONFIG_IDF_TARGET_ESP32
40+
#if ESP_IDF_VERSION >= ESP_IDF_VERSION_VAL(5, 4, 0)
4141
#define PHY_GENERIC_ENABLED (1)
4242
#else
4343
#define PHY_GENERIC_ENABLED (0)

ports/esp32/mpconfigport.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -387,7 +387,7 @@ typedef long mp_off_t;
387387
void boardctrl_startup(void);
388388

389389
#ifndef MICROPY_PY_NETWORK_LAN
390-
#if CONFIG_IDF_TARGET_ESP32 || (CONFIG_ETH_USE_SPI_ETHERNET && (CONFIG_ETH_SPI_ETHERNET_KSZ8851SNL || CONFIG_ETH_SPI_ETHERNET_DM9051 || CONFIG_ETH_SPI_ETHERNET_W5500))
390+
#if SOC_EMAC_SUPPORTED || (CONFIG_ETH_USE_SPI_ETHERNET && (CONFIG_ETH_SPI_ETHERNET_KSZ8851SNL || CONFIG_ETH_SPI_ETHERNET_DM9051 || CONFIG_ETH_SPI_ETHERNET_W5500))
391391
#define MICROPY_PY_NETWORK_LAN (1)
392392
#else
393393
#define MICROPY_PY_NETWORK_LAN (0)

0 commit comments

Comments
 (0)