Skip to content

Commit

Permalink
Merge branch 'feature/ethernet_phy_ksz8081' into 'master'
Browse files Browse the repository at this point in the history
Ethernet phy driver: ksz8081

Closes IDFGH-4775

See merge request espressif/esp-idf!12723
  • Loading branch information
david-cermak committed Mar 31, 2021
2 parents 813d9ca + 2a34b04 commit aecfbf9
Show file tree
Hide file tree
Showing 6 changed files with 448 additions and 370 deletions.
2 changes: 1 addition & 1 deletion components/esp_eth/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ if(CONFIG_ETH_ENABLED)
list(APPEND srcs "src/esp_eth_mac_esp32.c"
"src/esp_eth_phy_dp83848.c"
"src/esp_eth_phy_ip101.c"
"src/esp_eth_phy_ksz8041.c"
"src/esp_eth_phy_ksz80xx.c"
"src/esp_eth_phy_lan8720.c"
"src/esp_eth_phy_rtl8201.c")
endif()
Expand Down
11 changes: 11 additions & 0 deletions components/esp_eth/include/esp_eth_phy.h
Original file line number Diff line number Diff line change
Expand Up @@ -264,6 +264,17 @@ esp_eth_phy_t *esp_eth_phy_new_dp83848(const eth_phy_config_t *config);
*/
esp_eth_phy_t *esp_eth_phy_new_ksz8041(const eth_phy_config_t *config);

/**
* @brief Create a PHY instance of KSZ8081
*
* @param[in] config: configuration of PHY
*
* @return
* - instance: create PHY instance successfully
* - NULL: create PHY instance failed because some error occurred
*/
esp_eth_phy_t *esp_eth_phy_new_ksz8081(const eth_phy_config_t *config);

#if CONFIG_ETH_SPI_ETHERNET_DM9051
/**
* @brief Create a PHY instance of DM9051
Expand Down
369 changes: 0 additions & 369 deletions components/esp_eth/src/esp_eth_phy_ksz8041.c

This file was deleted.

Loading

0 comments on commit aecfbf9

Please sign in to comment.