mirror of
https://github.com/apache/nuttx.git
synced 2026-05-21 13:13:08 +08:00
arch/arm/src/lpc17xx_40xx/Kconfig: Add missing LPC17_40_PHY_CEMENT_DISABLE config to the lpc17xx Kconfig file. For some reason this config wasn't referenced anywhere else except in arch/arm/src/lpc17xx_40xx/lpc17_40_ethernet.c.
This commit is contained in:
committed by
Gregory Nutt
parent
7a85cf1728
commit
17518b4a7d
@@ -734,6 +734,11 @@ config LPC17_40_PHY_AUTONEG
|
||||
---help---
|
||||
Enable auto-negotiation
|
||||
|
||||
config LPC17_40_PHY_CEMENT_DISABLE
|
||||
bool "Don't re-write the PHY mode"
|
||||
---help---
|
||||
Re-writing the PHY mode might cause problems with some PHYs.
|
||||
|
||||
config LPC17_40_PHY_SPEED100
|
||||
bool "100Mbit/Sec"
|
||||
depends on !LPC17_40_PHY_AUTONEG
|
||||
|
||||
@@ -2869,13 +2869,13 @@ static inline int lpc17_40_phyinit(struct lpc17_40_driver_s *priv)
|
||||
/* Disable auto-configuration. Set the fixed speed/duplex mode.
|
||||
* (probably more than little redundant).
|
||||
*
|
||||
* REVISIT: Revisit the following CONFIG_PHY_CEMENT_DISABLE work-around.
|
||||
* REVISIT: Revisit the following CONFIG_LPC17_40_PHY_CEMENT_DISABLE work-around.
|
||||
* It is should not needed if CONFIG_LPC17_40_PHY_AUTONEG is defined and is known
|
||||
* cause a problem for at least one PHY (DP83848I PHY). It might be
|
||||
* safe just to remove this elided coded for all PHYs.
|
||||
*/
|
||||
|
||||
#ifndef CONFIG_PHY_CEMENT_DISABLE
|
||||
#ifndef CONFIG_LPC17_40_PHY_CEMENT_DISABLE
|
||||
ret = lpc17_40_phymode(phyaddr, priv->lp_mode);
|
||||
#endif
|
||||
lpc17_40_showmii(phyaddr, "After final configuration");
|
||||
|
||||
Reference in New Issue
Block a user