mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-20 13:41:30 +00:00
smsc911x: add external phy detection overrides
On LAN9115/LAN9117/LAN9215/LAN9217, external phys are supported. These are usually indicated by a hardware strap which sets an "external PHY detected" bit in the HW_CFG register. In some cases it is desirable to override this hardware strap and force use of either the internal phy or an external PHY. This patch adds SMSC911X_FORCE_INTERNAL_PHY and SMSC911X_FORCE_EXTERNAL_PHY flags so a platform can indicate this preference via its platform_data. Signed-off-by: Steve Glendinning <steve.glendinning@smsc.com> Acked-by: Sascha Hauer <s.hauer@pengutronix.de> Tested-by: Sascha Hauer <s.hauer@pengutronix.de> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
e81259b4f7
commit
d23f028a4d
2 changed files with 40 additions and 37 deletions
|
@ -43,5 +43,7 @@ struct smsc911x_platform_config {
|
|||
/* Constants for flags */
|
||||
#define SMSC911X_USE_16BIT (BIT(0))
|
||||
#define SMSC911X_USE_32BIT (BIT(1))
|
||||
#define SMSC911X_FORCE_INTERNAL_PHY (BIT(2))
|
||||
#define SMSC911X_FORCE_EXTERNAL_PHY (BIT(3))
|
||||
|
||||
#endif /* __LINUX_SMSC911X_H__ */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue