feat(esp32_openeth): move to common/espressif

Since this will be used for esp32s3 also, we can have this in
common/espressif.
This commit is contained in:
Marco Casaroli 2024-09-18 12:11:09 +00:00 committed by Xiang Xiao
parent 57bfd02cef
commit d5b32f0335
4 changed files with 6 additions and 6 deletions

View file

@ -1,5 +1,5 @@
/**************************************************************************** /****************************************************************************
* arch/xtensa/src/esp32/esp32_openeth.c * arch/xtensa/src/common/espressif/esp_openeth.c
* *
* Licensed to the Apache Software Foundation (ASF) under one or more * Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with * contributor license agreements. See the NOTICE file distributed with
@ -439,7 +439,7 @@ err:
****************************************************************************/ ****************************************************************************/
/**************************************************************************** /****************************************************************************
* Name: esp32_openeth_initialize * Name: esp_openeth_initialize
* *
* Description: * Description:
* Initialize the openeth driver * Initialize the openeth driver
@ -452,7 +452,7 @@ err:
* *
****************************************************************************/ ****************************************************************************/
int esp32_openeth_initialize(void) int esp_openeth_initialize(void)
{ {
int ret; int ret;
struct openeth_priv_s *priv = &g_openeth; struct openeth_priv_s *priv = &g_openeth;

View file

@ -205,7 +205,7 @@ endif
endif endif
ifeq ($(CONFIG_ESP32_OPENETH),y) ifeq ($(CONFIG_ESP32_OPENETH),y)
CHIP_CSRCS += esp32_openeth.c CHIP_CSRCS += esp_openeth.c
endif endif
############################################################################# #############################################################################

View file

@ -245,7 +245,7 @@ int board_ws2812_initialize(
* *
****************************************************************************/ ****************************************************************************/
#ifdef CONFIG_ESP32_OPENETH #ifdef CONFIG_ESP32_OPENETH
int esp32_openeth_initialize(void); int esp_openeth_initialize(void);
#endif #endif
#endif /* __ASSEMBLY__ */ #endif /* __ASSEMBLY__ */

View file

@ -362,7 +362,7 @@ int esp32_bringup(void)
#endif #endif
#ifdef CONFIG_ESP32_OPENETH #ifdef CONFIG_ESP32_OPENETH
ret = esp32_openeth_initialize(); ret = esp_openeth_initialize();
if (ret < 0) if (ret < 0)
{ {
syslog(LOG_ERR, "ERROR: Failed to initialize Open ETH ethernet.\n"); syslog(LOG_ERR, "ERROR: Failed to initialize Open ETH ethernet.\n");