Skip to content

Commit

Permalink
fix(espressif_openeth): rename from xtensa to esp
Browse files Browse the repository at this point in the history
Since this is only used by espressiv variants of the xtensa
architecture, we separate the openeth driver from the xtensa
architecture files.
  • Loading branch information
casaroli committed Oct 12, 2024
1 parent d4e03f2 commit 87a04b7
Show file tree
Hide file tree
Showing 7 changed files with 9 additions and 9 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/****************************************************************************
* arch/xtensa/src/common/xtensa_openeth.c
* arch/xtensa/src/common/espressif/esp_openeth.c
*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
Expand Down Expand Up @@ -436,7 +436,7 @@ static int openeth_set_addr(uint8_t *addr)
****************************************************************************/

/****************************************************************************
* Name: xtensa_openeth_initialize
* Name: esp_openeth_initialize
*
* Description:
* Initialize the openeth driver
Expand All @@ -449,7 +449,7 @@ static int openeth_set_addr(uint8_t *addr)
*
****************************************************************************/

int xtensa_openeth_initialize(void)
int esp_openeth_initialize(void)
{
int ret;
struct openeth_priv_s *priv = &g_openeth;
Expand Down
2 changes: 1 addition & 1 deletion arch/xtensa/src/esp32/Make.defs
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ endif
endif

ifeq ($(CONFIG_ESP32_OPENETH),y)
CHIP_CSRCS += xtensa_openeth.c
CHIP_CSRCS += esp_openeth.c
endif

#############################################################################
Expand Down
2 changes: 1 addition & 1 deletion arch/xtensa/src/esp32s3/Make.defs
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ CHIP_CSRCS += esp32s3_pm.c
endif

ifeq ($(CONFIG_ESP32S3_OPENETH),y)
CHIP_CSRCS += xtensa_openeth.c
CHIP_CSRCS += esp_openeth.c
endif

#############################################################################
Expand Down
2 changes: 1 addition & 1 deletion boards/xtensa/esp32/esp32-devkitc/src/esp32-devkitc.h
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,7 @@ int board_ws2812_initialize(
*
****************************************************************************/
#ifdef CONFIG_ESP32_OPENETH
int xtensa_openeth_initialize(void);
int esp_openeth_initialize(void);
#endif

#endif /* __ASSEMBLY__ */
Expand Down
2 changes: 1 addition & 1 deletion boards/xtensa/esp32/esp32-devkitc/src/esp32_bringup.c
Original file line number Diff line number Diff line change
Expand Up @@ -362,7 +362,7 @@ int esp32_bringup(void)
#endif

#ifdef CONFIG_ESP32_OPENETH
ret = xtensa_openeth_initialize();
ret = esp_openeth_initialize();
if (ret < 0)
{
syslog(LOG_ERR, "ERROR: Failed to initialize Open ETH ethernet.\n");
Expand Down
2 changes: 1 addition & 1 deletion boards/xtensa/esp32s3/esp32s3-devkit/src/esp32s3-devkit.h
Original file line number Diff line number Diff line change
Expand Up @@ -270,7 +270,7 @@ int esp32s3_lan9250_uninitialize(int port);
#endif

#ifdef CONFIG_ESP32S3_OPENETH
int xtensa_openeth_initialize(void);
int esp_openeth_initialize(void);
#endif

#endif /* __ASSEMBLY__ */
Expand Down
2 changes: 1 addition & 1 deletion boards/xtensa/esp32s3/esp32s3-devkit/src/esp32s3_bringup.c
Original file line number Diff line number Diff line change
Expand Up @@ -439,7 +439,7 @@ int esp32s3_bringup(void)
#endif

#ifdef CONFIG_ESP32S3_OPENETH
ret = xtensa_openeth_initialize();
ret = esp_openeth_initialize();
if (ret < 0)
{
syslog(LOG_ERR, "ERROR: Failed to initialize Open ETH ethernet.\n");
Expand Down

0 comments on commit 87a04b7

Please sign in to comment.