From 0593a055c8041a38ae32c9c3aca71e8f88f33d0c Mon Sep 17 00:00:00 2001 From: Bogdan Kolendovskyy Date: Thu, 8 Aug 2024 11:35:19 +0200 Subject: [PATCH] Re-enable LAN867x option in ethernet_init --- ethernet_init/Kconfig.projbuild | 12 +++++------- ethernet_init/idf_component.yml | 5 ++++- 2 files changed, 9 insertions(+), 8 deletions(-) diff --git a/ethernet_init/Kconfig.projbuild b/ethernet_init/Kconfig.projbuild index 09f6b81..70a25a2 100644 --- a/ethernet_init/Kconfig.projbuild +++ b/ethernet_init/Kconfig.projbuild @@ -63,13 +63,11 @@ menu "Ethernet Configuration" KSZ8051, KSZ8061, KSZ8081, KSZ8091 Goto https://www.microchip.com for more information about them. - # TODO: un-hide this option once processing of Matches and Rules is fixed in IDF Component Manager and so LAN867x component can be conditionally included. - #config ETHERNET_PHY_LAN867X - # bool "LAN867x" - # depends on !ETHERNET_INTERNAL_SUPPORT - # help - # The LAN8670/1/2 is a high-performance 10BASE-T1S single-pair Ethernet PHY transceiver for 10 Mbit/s half-duplex networking over a single pair of conductors - # Goto https://www.microchip.com for more information about them. + config ETHERNET_PHY_LAN867X + bool "LAN867x" + help + The LAN8670/1/2 is a high-performance 10BASE-T1S single-pair Ethernet PHY transceiver for 10 Mbit/s half-duplex networking over a single pair of conductors + Goto https://www.microchip.com for more information about them. endchoice # ETHERNET_PHY_MODEL config ETHERNET_MDC_GPIO diff --git a/ethernet_init/idf_component.yml b/ethernet_init/idf_component.yml index 9bcf08f..8771e60 100644 --- a/ethernet_init/idf_component.yml +++ b/ethernet_init/idf_component.yml @@ -1,4 +1,7 @@ dependencies: + espressif/lan867x: + rules: + - if: "target in [esp32, esp32p4]" idf: version: '>=5.1' ch390: @@ -8,4 +11,4 @@ examples: - path: ../common_examples/ description: This component initializes Ethernet driver based on Espressif IoT Development Framework Configuration. url: https://github.com/espressif/esp-eth-drivers/tree/master/ethernet_init -version: 0.3.0 +version: 0.3.1