mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-28 05:45:09 +07:00
57878f2f46
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>
37 lines
1.1 KiB
Plaintext
37 lines
1.1 KiB
Plaintext
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
|
|
depends on HAS_IOMEM
|
|
select MFD_SYSCON
|
|
select PHYLIB
|
|
---help---
|
|
Driver for gigabit ethernet MACs, called AVE, in the
|
|
Socionext UniPhier family.
|
|
|
|
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.
|
|
|
|
endif #NET_VENDOR_SOCIONEXT
|