6de4af032662439c1e86166a8f93a1393b32fe6f
[openwrt-10.03/.git] / target / linux / ar71xx / patches-2.6.30 / 204-rtl8366-smi-driver.patch
1 --- a/drivers/net/phy/Kconfig
2 +++ b/drivers/net/phy/Kconfig
3 @@ -140,4 +140,25 @@ config MDIO_GPIO
4           To compile this driver as a module, choose M here: the module
5           will be called mdio-gpio.
6  
7 +config RTL8366_SMI
8 +       tristate "Driver for the RTL8366 SMI interface"
9 +       depends on GENERIC_GPIO
10 +       ---help---
11 +         This module implements the SMI interface protocol which is used
12 +         by some RTL8366 ethernet switch devices via the generic GPIO API.
13 +
14 +if RTL8366_SMI
15 +
16 +config RTL8366S_PHY
17 +       tristate "Driver for the Realtek RTL8366S switch"
18 +       select SWCONFIG
19 +
20 +config RTL8366S_PHY_DEBUG_FS
21 +       bool "RTL8366S switch driver DEBUG_FS support"
22 +       depends on RTL8366S_PHY
23 +       depends on DEBUG_FS
24 +       default n
25 +
26 +endif # RTL8366_SMI
27 +
28  endif # PHYLIB
29 --- a/drivers/net/phy/Makefile
30 +++ b/drivers/net/phy/Makefile
31 @@ -19,6 +19,8 @@ obj-$(CONFIG_IP175C_PHY)      += ip175c.o
32  obj-$(CONFIG_REALTEK_PHY)      += realtek.o
33  obj-$(CONFIG_AR8216_PHY)       += ar8216.o
34  obj-$(CONFIG_RTL8306_PHY)      += rtl8306.o
35 +obj-$(CONFIG_RTL8366_SMI)      += rtl8366_smi.o
36 +obj-$(CONFIG_RTL8366S_PHY)     += rtl8366s.o
37  obj-$(CONFIG_LSI_ET1011C_PHY)  += et1011c.o
38  obj-$(CONFIG_MICREL)           += micrel.o
39  obj-$(CONFIG_FIXED_PHY)                += fixed.o