kernel: generic: add kernel 4.3
[openwrt.git] / target / linux / generic / patches-4.3 / 726-phy_rtl8366.patch
1 --- a/drivers/net/phy/Kconfig
2 +++ b/drivers/net/phy/Kconfig
3 @@ -263,6 +263,31 @@ config MDIO_BCM_UNIMAC
4           This hardware can be found in the Broadcom GENET Ethernet MAC
5           controllers as well as some Broadcom Ethernet switches such as the
6           Starfighter 2 switches.
7 +
8 +config RTL8366_SMI
9 +       tristate "Driver for the RTL8366 SMI interface"
10 +       depends on GPIOLIB
11 +       ---help---
12 +         This module implements the SMI interface protocol which is used
13 +         by some RTL8366 ethernet switch devices via the generic GPIO API.
14 +
15 +if RTL8366_SMI
16 +
17 +config RTL8366_SMI_DEBUG_FS
18 +       bool "RTL8366 SMI interface debugfs support"
19 +        depends on DEBUG_FS
20 +        default n
21 +
22 +config RTL8366S_PHY
23 +       tristate "Driver for the Realtek RTL8366S switch"
24 +       select SWCONFIG
25 +
26 +config RTL8366RB_PHY
27 +       tristate "Driver for the Realtek RTL8366RB switch"
28 +       select SWCONFIG
29 +
30 +endif # RTL8366_SMI
31 +
32  endif # PHYLIB
33  
34  config MICREL_KS8995MA
35 --- a/drivers/net/phy/Makefile
36 +++ b/drivers/net/phy/Makefile
37 @@ -26,6 +26,9 @@ obj-$(CONFIG_IP17XX_PHY)      += ip17xx.o
38  obj-$(CONFIG_REALTEK_PHY)      += realtek.o
39  obj-$(CONFIG_AR8216_PHY)       += ar8216.o ar8327.o
40  obj-$(CONFIG_RTL8306_PHY)      += rtl8306.o
41 +obj-$(CONFIG_RTL8366_SMI)      += rtl8366_smi.o
42 +obj-$(CONFIG_RTL8366S_PHY)     += rtl8366s.o
43 +obj-$(CONFIG_RTL8366RB_PHY)    += rtl8366rb.o
44  obj-$(CONFIG_LSI_ET1011C_PHY)  += et1011c.o
45  obj-$(CONFIG_FIXED_PHY)                += fixed_phy.o
46  obj-$(CONFIG_MDIO_BITBANG)     += mdio-bitbang.o