feat(esp32s3-devkit): initialize opencores eth mac

This commit is contained in:
Marco Casaroli 2024-09-18 15:38:50 +00:00 committed by Xiang Xiao
parent c17ab3beb5
commit d2d653aebf
2 changed files with 12 additions and 0 deletions

View File

@ -269,5 +269,9 @@ int esp32s3_lan9250_initialize(int port);
int esp32s3_lan9250_uninitialize(int port); int esp32s3_lan9250_uninitialize(int port);
#endif #endif
#ifdef CONFIG_ESP32S3_OPENETH
int esp_openeth_initialize(void);
#endif
#endif /* __ASSEMBLY__ */ #endif /* __ASSEMBLY__ */
#endif /* __BOARDS_XTENSA_ESP32S3_ESP32S3_DEVKIT_SRC_ESP32S3_DEVKIT_H */ #endif /* __BOARDS_XTENSA_ESP32S3_ESP32S3_DEVKIT_SRC_ESP32S3_DEVKIT_H */

View File

@ -438,6 +438,14 @@ int esp32s3_bringup(void)
#endif #endif
#ifdef CONFIG_ESP32S3_OPENETH
ret = esp_openeth_initialize();
if (ret < 0)
{
syslog(LOG_ERR, "ERROR: Failed to initialize Open ETH ethernet.\n");
}
#endif
#ifdef CONFIG_DEV_GPIO #ifdef CONFIG_DEV_GPIO
ret = esp32s3_gpio_init(); ret = esp32s3_gpio_init();
if (ret < 0) if (ret < 0)