summaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/socionext/Kconfig
diff options
context:
space:
mode:
authorKunihiko Hayashi <hayashi.kunihiko@socionext.com>2018-04-19 09:24:55 +0200
committerDavid S. Miller <davem@davemloft.net>2018-04-20 16:49:41 +0200
commit57878f2f4697a4f4ae53586fa7565ed1a3275a2c (patch)
tree78a6f9478e22b9e7f4eb8f06d0361fba04080458 /drivers/net/ethernet/socionext/Kconfig
parentdt-bindings: net: ave: add syscon-phy-mode property to configure phy-mode set... (diff)
downloadlinux-57878f2f4697a4f4ae53586fa7565ed1a3275a2c.tar.xz
linux-57878f2f4697a4f4ae53586fa7565ed1a3275a2c.zip
net: ethernet: ave: add support for phy-mode setting of system controller
This patch adds support for specifying system controller that configures phy-mode setting. According to the DT property "phy-mode", it's necessary to configure the controller, which is used to choose the settings of the MAC suitable, for example, mdio pin connections, internal clocks, and so on. Supported phy-modes are SoC-dependent. The driver allows phy-mode to set "internal" if the SoC has a built-in PHY, and {"mii", "rmii", "rgmii"} if the SoC supports each mode. So we have to check whether the phy-mode is valid or not. This adds the following features for each SoC: - check whether the SoC supports the specified phy-mode - configure the controller accroding to phy-mode The DT property accepts one argument to distinguish them for multiple MAC instances. ethernet@65000000 { ... socionext,syscon-phy-mode = <&soc_glue 0>; }; ethernet@65200000 { ... socionext,syscon-phy-mode = <&soc_glue 1>; }; Signed-off-by: Kunihiko Hayashi <hayashi.kunihiko@socionext.com> Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/socionext/Kconfig')
-rw-r--r--drivers/net/ethernet/socionext/Kconfig2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/net/ethernet/socionext/Kconfig b/drivers/net/ethernet/socionext/Kconfig
index 6bcfe27fc560..b80048ca82a0 100644
--- a/drivers/net/ethernet/socionext/Kconfig
+++ b/drivers/net/ethernet/socionext/Kconfig
@@ -14,6 +14,8 @@ if NET_VENDOR_SOCIONEXT
config SNI_AVE
tristate "Socionext AVE ethernet support"
depends on (ARCH_UNIPHIER || COMPILE_TEST) && OF
+ depends on HAS_IOMEM
+ select MFD_SYSCON
select PHYLIB
---help---
Driver for gigabit ethernet MACs, called AVE, in the