feat(esp32s3-devkit): initialize opencores eth mac
This commit is contained in:
parent
c17ab3beb5
commit
d2d653aebf
|
@ -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 */
|
||||||
|
|
|
@ -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)
|
||||||
|
|
Loading…
Reference in New Issue