Skip to content

Commit aecfbf9

Browse files
committed
Merge branch 'feature/ethernet_phy_ksz8081' into 'master'
Ethernet phy driver: ksz8081 Closes IDFGH-4775 See merge request espressif/esp-idf!12723
2 parents 813d9ca + 2a34b04 commit aecfbf9

File tree

6 files changed

+448
-370
lines changed

6 files changed

+448
-370
lines changed

Diff for: components/esp_eth/CMakeLists.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ if(CONFIG_ETH_ENABLED)
2222
list(APPEND srcs "src/esp_eth_mac_esp32.c"
2323
"src/esp_eth_phy_dp83848.c"
2424
"src/esp_eth_phy_ip101.c"
25-
"src/esp_eth_phy_ksz8041.c"
25+
"src/esp_eth_phy_ksz80xx.c"
2626
"src/esp_eth_phy_lan8720.c"
2727
"src/esp_eth_phy_rtl8201.c")
2828
endif()

Diff for: components/esp_eth/include/esp_eth_phy.h

+11
Original file line numberDiff line numberDiff line change
@@ -264,6 +264,17 @@ esp_eth_phy_t *esp_eth_phy_new_dp83848(const eth_phy_config_t *config);
264264
*/
265265
esp_eth_phy_t *esp_eth_phy_new_ksz8041(const eth_phy_config_t *config);
266266

267+
/**
268+
* @brief Create a PHY instance of KSZ8081
269+
*
270+
* @param[in] config: configuration of PHY
271+
*
272+
* @return
273+
* - instance: create PHY instance successfully
274+
* - NULL: create PHY instance failed because some error occurred
275+
*/
276+
esp_eth_phy_t *esp_eth_phy_new_ksz8081(const eth_phy_config_t *config);
277+
267278
#if CONFIG_ETH_SPI_ETHERNET_DM9051
268279
/**
269280
* @brief Create a PHY instance of DM9051

Diff for: components/esp_eth/src/esp_eth_phy_ksz8041.c

-369
This file was deleted.

0 commit comments

Comments
 (0)