From: juhosg Date: Mon, 25 Jan 2010 15:13:38 +0000 (+0000) Subject: rtl8366: make it available on all platforms X-Git-Url: http://git.ozo.com/?p=openwrt-10.03%2F.git;a=commitdiff_plain;h=d7d76ebff9e1fd64a232c60d7fd5b2f04a0c552d rtl8366: make it available on all platforms git-svn-id: svn://svn.openwrt.org/openwrt/trunk@19329 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- diff --git a/target/linux/ar71xx/patches-2.6.30/101-ksz8041_phy_driver.patch b/target/linux/ar71xx/patches-2.6.30/101-ksz8041_phy_driver.patch index d02addb87..2a09911e1 100644 --- a/target/linux/ar71xx/patches-2.6.30/101-ksz8041_phy_driver.patch +++ b/target/linux/ar71xx/patches-2.6.30/101-ksz8041_phy_driver.patch @@ -14,9 +14,9 @@ depends on PHYLIB=y --- a/drivers/net/phy/Makefile +++ b/drivers/net/phy/Makefile -@@ -20,6 +20,7 @@ obj-$(CONFIG_REALTEK_PHY) += realtek.o - obj-$(CONFIG_AR8216_PHY) += ar8216.o - obj-$(CONFIG_RTL8306_PHY) += rtl8306.o +@@ -22,6 +22,7 @@ obj-$(CONFIG_RTL8306_PHY) += rtl8306.o + obj-$(CONFIG_RTL8366_SMI) += rtl8366_smi.o + obj-$(CONFIG_RTL8366S_PHY) += rtl8366s.o obj-$(CONFIG_LSI_ET1011C_PHY) += et1011c.o +obj-$(CONFIG_MICREL) += micrel.o obj-$(CONFIG_FIXED_PHY) += fixed.o diff --git a/target/linux/ar71xx/patches-2.6.31/101-ksz8041_phy_driver.patch b/target/linux/ar71xx/patches-2.6.31/101-ksz8041_phy_driver.patch index d02addb87..2a09911e1 100644 --- a/target/linux/ar71xx/patches-2.6.31/101-ksz8041_phy_driver.patch +++ b/target/linux/ar71xx/patches-2.6.31/101-ksz8041_phy_driver.patch @@ -14,9 +14,9 @@ depends on PHYLIB=y --- a/drivers/net/phy/Makefile +++ b/drivers/net/phy/Makefile -@@ -20,6 +20,7 @@ obj-$(CONFIG_REALTEK_PHY) += realtek.o - obj-$(CONFIG_AR8216_PHY) += ar8216.o - obj-$(CONFIG_RTL8306_PHY) += rtl8306.o +@@ -22,6 +22,7 @@ obj-$(CONFIG_RTL8306_PHY) += rtl8306.o + obj-$(CONFIG_RTL8366_SMI) += rtl8366_smi.o + obj-$(CONFIG_RTL8366S_PHY) += rtl8366s.o obj-$(CONFIG_LSI_ET1011C_PHY) += et1011c.o +obj-$(CONFIG_MICREL) += micrel.o obj-$(CONFIG_FIXED_PHY) += fixed.o diff --git a/target/linux/ar71xx/patches-2.6.32/101-ksz8041_phy_driver.patch b/target/linux/ar71xx/patches-2.6.32/101-ksz8041_phy_driver.patch index 866b50386..94193e855 100644 --- a/target/linux/ar71xx/patches-2.6.32/101-ksz8041_phy_driver.patch +++ b/target/linux/ar71xx/patches-2.6.32/101-ksz8041_phy_driver.patch @@ -14,9 +14,9 @@ depends on PHYLIB=y --- a/drivers/net/phy/Makefile +++ b/drivers/net/phy/Makefile -@@ -21,6 +21,7 @@ obj-$(CONFIG_REALTEK_PHY) += realtek.o - obj-$(CONFIG_AR8216_PHY) += ar8216.o - obj-$(CONFIG_RTL8306_PHY) += rtl8306.o +@@ -23,6 +23,7 @@ obj-$(CONFIG_RTL8306_PHY) += rtl8306.o + obj-$(CONFIG_RTL8366_SMI) += rtl8366_smi.o + obj-$(CONFIG_RTL8366S_PHY) += rtl8366s.o obj-$(CONFIG_LSI_ET1011C_PHY) += et1011c.o +obj-$(CONFIG_MICREL) += micrel.o obj-$(CONFIG_FIXED_PHY) += fixed.o diff --git a/target/linux/generic-2.6/config-2.6.30 b/target/linux/generic-2.6/config-2.6.30 index d5e82a2a2..db44fd792 100644 --- a/target/linux/generic-2.6/config-2.6.30 +++ b/target/linux/generic-2.6/config-2.6.30 @@ -1707,6 +1707,9 @@ CONFIG_RTC_LIB=y # CONFIG_RTL8180 is not set # CONFIG_RTL8187 is not set # CONFIG_RTL8306_PHY is not set +# CONFIG_RTL8366S_PHY is not set +# CONFIG_RTL8366S_PHY_DEBUG_FS is not set +# CONFIG_RTL8366_SMI is not set CONFIG_RT_MUTEXES=y CONFIG_RWSEM_GENERIC_SPINLOCK=y # CONFIG_S2IO is not set diff --git a/target/linux/generic-2.6/config-2.6.31 b/target/linux/generic-2.6/config-2.6.31 index 9e56c5d3d..afb387e89 100644 --- a/target/linux/generic-2.6/config-2.6.31 +++ b/target/linux/generic-2.6/config-2.6.31 @@ -1759,6 +1759,9 @@ CONFIG_RTC_LIB=y # CONFIG_RTL8187SE is not set # CONFIG_RTL8192SU is not set # CONFIG_RTL8306_PHY is not set +# CONFIG_RTL8366S_PHY is not set +# CONFIG_RTL8366S_PHY_DEBUG_FS is not set +# CONFIG_RTL8366_SMI is not set CONFIG_RT_MUTEXES=y CONFIG_RWSEM_GENERIC_SPINLOCK=y # CONFIG_S2IO is not set diff --git a/target/linux/generic-2.6/config-2.6.32 b/target/linux/generic-2.6/config-2.6.32 index 3c355fa48..d23d8ffc8 100644 --- a/target/linux/generic-2.6/config-2.6.32 +++ b/target/linux/generic-2.6/config-2.6.32 @@ -1787,6 +1787,9 @@ CONFIG_RTC_LIB=y # CONFIG_RTL8192E is not set # CONFIG_RTL8192SU is not set # CONFIG_RTL8306_PHY is not set +# CONFIG_RTL8366S_PHY is not set +# CONFIG_RTL8366S_PHY_DEBUG_FS is not set +# CONFIG_RTL8366_SMI is not set CONFIG_RT_MUTEXES=y CONFIG_RWSEM_GENERIC_SPINLOCK=y # CONFIG_S2IO is not set diff --git a/target/linux/ar71xx/files/drivers/net/phy/rtl8366_smi.c b/target/linux/generic-2.6/files/drivers/net/phy/rtl8366_smi.c similarity index 100% rename from target/linux/ar71xx/files/drivers/net/phy/rtl8366_smi.c rename to target/linux/generic-2.6/files/drivers/net/phy/rtl8366_smi.c diff --git a/target/linux/ar71xx/files/drivers/net/phy/rtl8366_smi.h b/target/linux/generic-2.6/files/drivers/net/phy/rtl8366_smi.h similarity index 100% rename from target/linux/ar71xx/files/drivers/net/phy/rtl8366_smi.h rename to target/linux/generic-2.6/files/drivers/net/phy/rtl8366_smi.h diff --git a/target/linux/ar71xx/files/drivers/net/phy/rtl8366s.c b/target/linux/generic-2.6/files/drivers/net/phy/rtl8366s.c similarity index 100% rename from target/linux/ar71xx/files/drivers/net/phy/rtl8366s.c rename to target/linux/generic-2.6/files/drivers/net/phy/rtl8366s.c diff --git a/target/linux/ar71xx/files/include/linux/rtl8366s.h b/target/linux/generic-2.6/files/include/linux/rtl8366s.h similarity index 100% rename from target/linux/ar71xx/files/include/linux/rtl8366s.h rename to target/linux/generic-2.6/files/include/linux/rtl8366s.h diff --git a/target/linux/ar71xx/patches-2.6.30/204-rtl8366-smi-driver.patch b/target/linux/generic-2.6/patches-2.6.30/691-phy_rtl8366.patch similarity index 92% rename from target/linux/ar71xx/patches-2.6.30/204-rtl8366-smi-driver.patch rename to target/linux/generic-2.6/patches-2.6.30/691-phy_rtl8366.patch index 6de4af032..6223f00fe 100644 --- a/target/linux/ar71xx/patches-2.6.30/204-rtl8366-smi-driver.patch +++ b/target/linux/generic-2.6/patches-2.6.30/691-phy_rtl8366.patch @@ -1,6 +1,6 @@ --- a/drivers/net/phy/Kconfig +++ b/drivers/net/phy/Kconfig -@@ -140,4 +140,25 @@ config MDIO_GPIO +@@ -135,4 +135,25 @@ config MDIO_GPIO To compile this driver as a module, choose M here: the module will be called mdio-gpio. @@ -35,5 +35,5 @@ +obj-$(CONFIG_RTL8366_SMI) += rtl8366_smi.o +obj-$(CONFIG_RTL8366S_PHY) += rtl8366s.o obj-$(CONFIG_LSI_ET1011C_PHY) += et1011c.o - obj-$(CONFIG_MICREL) += micrel.o obj-$(CONFIG_FIXED_PHY) += fixed.o + obj-$(CONFIG_MDIO_BITBANG) += mdio-bitbang.o diff --git a/target/linux/ar71xx/patches-2.6.31/204-rtl8366-smi-driver.patch b/target/linux/generic-2.6/patches-2.6.31/691-phy_rtl8366.patch similarity index 92% rename from target/linux/ar71xx/patches-2.6.31/204-rtl8366-smi-driver.patch rename to target/linux/generic-2.6/patches-2.6.31/691-phy_rtl8366.patch index 6de4af032..6223f00fe 100644 --- a/target/linux/ar71xx/patches-2.6.31/204-rtl8366-smi-driver.patch +++ b/target/linux/generic-2.6/patches-2.6.31/691-phy_rtl8366.patch @@ -1,6 +1,6 @@ --- a/drivers/net/phy/Kconfig +++ b/drivers/net/phy/Kconfig -@@ -140,4 +140,25 @@ config MDIO_GPIO +@@ -135,4 +135,25 @@ config MDIO_GPIO To compile this driver as a module, choose M here: the module will be called mdio-gpio. @@ -35,5 +35,5 @@ +obj-$(CONFIG_RTL8366_SMI) += rtl8366_smi.o +obj-$(CONFIG_RTL8366S_PHY) += rtl8366s.o obj-$(CONFIG_LSI_ET1011C_PHY) += et1011c.o - obj-$(CONFIG_MICREL) += micrel.o obj-$(CONFIG_FIXED_PHY) += fixed.o + obj-$(CONFIG_MDIO_BITBANG) += mdio-bitbang.o diff --git a/target/linux/ar71xx/patches-2.6.32/204-rtl8366-smi-driver.patch b/target/linux/generic-2.6/patches-2.6.32/691-phy_rtl8366.patch similarity index 92% rename from target/linux/ar71xx/patches-2.6.32/204-rtl8366-smi-driver.patch rename to target/linux/generic-2.6/patches-2.6.32/691-phy_rtl8366.patch index fbd52c3b7..2f6b3c49f 100644 --- a/target/linux/ar71xx/patches-2.6.32/204-rtl8366-smi-driver.patch +++ b/target/linux/generic-2.6/patches-2.6.32/691-phy_rtl8366.patch @@ -1,6 +1,6 @@ --- a/drivers/net/phy/Kconfig +++ b/drivers/net/phy/Kconfig -@@ -146,4 +146,25 @@ config MDIO_GPIO +@@ -141,4 +141,25 @@ config MDIO_GPIO To compile this driver as a module, choose M here: the module will be called mdio-gpio. @@ -35,5 +35,5 @@ +obj-$(CONFIG_RTL8366_SMI) += rtl8366_smi.o +obj-$(CONFIG_RTL8366S_PHY) += rtl8366s.o obj-$(CONFIG_LSI_ET1011C_PHY) += et1011c.o - obj-$(CONFIG_MICREL) += micrel.o obj-$(CONFIG_FIXED_PHY) += fixed.o + obj-$(CONFIG_MDIO_BITBANG) += mdio-bitbang.o