2017-12-28 14:58:12 +08:00
|
|
|
config NET_VENDOR_SOCIONEXT
|
|
|
|
bool "Socionext ethernet drivers"
|
|
|
|
default y
|
|
|
|
---help---
|
|
|
|
Option to select ethernet drivers for Socionext platforms.
|
|
|
|
|
|
|
|
Note that the answer to this question doesn't directly affect the
|
|
|
|
kernel: saying N will just cause the configurator to skip all
|
|
|
|
the questions about Socionext devices. If you say Y, you will be asked
|
|
|
|
for your specific card in the following questions.
|
|
|
|
|
|
|
|
if NET_VENDOR_SOCIONEXT
|
|
|
|
|
|
|
|
config SNI_AVE
|
|
|
|
tristate "Socionext AVE ethernet support"
|
|
|
|
depends on (ARCH_UNIPHIER || COMPILE_TEST) && OF
|
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>
2018-04-19 15:24:55 +08:00
|
|
|
depends on HAS_IOMEM
|
|
|
|
select MFD_SYSCON
|
2017-12-28 14:58:12 +08:00
|
|
|
select PHYLIB
|
|
|
|
---help---
|
|
|
|
Driver for gigabit ethernet MACs, called AVE, in the
|
|
|
|
Socionext UniPhier family.
|
|
|
|
|
2018-01-06 22:14:37 +08:00
|
|
|
config SNI_NETSEC
|
|
|
|
tristate "Socionext NETSEC ethernet support"
|
|
|
|
depends on (ARCH_SYNQUACER || COMPILE_TEST) && OF
|
|
|
|
select PHYLIB
|
|
|
|
select MII
|
|
|
|
---help---
|
|
|
|
Enable to add support for the SocioNext NetSec Gigabit Ethernet
|
|
|
|
controller + PHY, as found on the Synquacer SC2A11 SoC
|
|
|
|
|
|
|
|
To compile this driver as a module, choose M here: the module will be
|
|
|
|
called netsec. If unsure, say N.
|
|
|
|
|
2017-12-28 14:58:12 +08:00
|
|
|
endif #NET_VENDOR_SOCIONEXT
|