mirror of
https://github.com/apache/nuttx.git
synced 2026-06-04 23:03:27 +08:00
STM32 Ethernet: Last patch breaks every board that does not use the KSZ80801 PHY.
This commit is contained in:
@@ -192,36 +192,38 @@
|
|||||||
|
|
||||||
/* These definitions are used to enable the PHY interrupts */
|
/* These definitions are used to enable the PHY interrupts */
|
||||||
|
|
||||||
#if defined( CONFIG_ETH0_PHY_AM79C874)
|
#if defined(CONFIG_NETDEV_PHY_IOCTL) && defined(CONFIG_ARCH_PHY_INTERRUPT)
|
||||||
# error missing logic
|
# if defined( CONFIG_ETH0_PHY_AM79C874)
|
||||||
#elif defined( CONFIG_ETH0_PHY_KS8721)
|
# error missing logic
|
||||||
# error missing logic
|
# elif defined( CONFIG_ETH0_PHY_KS8721)
|
||||||
#elif defined( CONFIG_ETH0_PHY_KSZ8041)
|
# error missing logic
|
||||||
# error missing logic
|
# elif defined( CONFIG_ETH0_PHY_KSZ8041)
|
||||||
#elif defined( CONFIG_ETH0_PHY_KSZ8051)
|
# error missing logic
|
||||||
# error missing logic
|
# elif defined( CONFIG_ETH0_PHY_KSZ8051)
|
||||||
#elif defined( CONFIG_ETH0_PHY_KSZ8061)
|
# error missing logic
|
||||||
# error missing logic
|
# elif defined( CONFIG_ETH0_PHY_KSZ8061)
|
||||||
#elif defined( CONFIG_ETH0_PHY_KSZ8081)
|
# error missing logic
|
||||||
# define MII_INT_REG MII_KSZ8081_INT
|
# elif defined( CONFIG_ETH0_PHY_KSZ8081)
|
||||||
# define MII_INT_SETEN MII_KSZ80x1_INT_LDEN | MII_KSZ80x1_INT_LUEN
|
# define MII_INT_REG MII_KSZ8081_INT
|
||||||
# define MII_INT_CLREN 0
|
# define MII_INT_SETEN MII_KSZ80x1_INT_LDEN | MII_KSZ80x1_INT_LUEN
|
||||||
#elif defined( CONFIG_ETH0_PHY_KSZ90x1)
|
# define MII_INT_CLREN 0
|
||||||
# error missing logic
|
# elif defined( CONFIG_ETH0_PHY_KSZ90x1)
|
||||||
#elif defined( CONFIG_ETH0_PHY_DP83848C)
|
# error missing logic
|
||||||
# error missing logic
|
# elif defined( CONFIG_ETH0_PHY_DP83848C)
|
||||||
#elif defined( CONFIG_ETH0_PHY_LAN8720)
|
# error missing logic
|
||||||
# error missing logic
|
# elif defined( CONFIG_ETH0_PHY_LAN8720)
|
||||||
#elif defined( CONFIG_ETH0_PHY_LAN8740)
|
# error missing logic
|
||||||
# error missing logic
|
# elif defined( CONFIG_ETH0_PHY_LAN8740)
|
||||||
#elif defined( CONFIG_ETH0_PHY_LAN8740A)
|
# error missing logic
|
||||||
# error missing logic
|
# elif defined( CONFIG_ETH0_PHY_LAN8740A)
|
||||||
#elif defined( CONFIG_ETH0_PHY_LAN8742A)
|
# error missing logic
|
||||||
# error missing logic
|
# elif defined( CONFIG_ETH0_PHY_LAN8742A)
|
||||||
#elif defined( CONFIG_ETH0_PHY_DM9161)
|
# error missing logic
|
||||||
# error missing logic
|
# elif defined( CONFIG_ETH0_PHY_DM9161)
|
||||||
#else
|
# error missing logic
|
||||||
# error unknown PHY
|
# else
|
||||||
|
# error unknown PHY
|
||||||
|
# endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef CONFIG_STM32_ETH_PTP
|
#ifdef CONFIG_STM32_ETH_PTP
|
||||||
|
|||||||
Reference in New Issue
Block a user