From 49c4df54876253b4f3c3d74f788c947c4982bc4c Mon Sep 17 00:00:00 2001 From: Gabor Juhos Date: Mon, 25 Jan 2010 15:13:38 +0000 Subject: [PATCH] rtl8366: make it available on all platforms SVN-Revision: 19329 --- .../ar71xx/patches-2.6.30/101-ksz8041_phy_driver.patch | 6 +++--- .../ar71xx/patches-2.6.31/101-ksz8041_phy_driver.patch | 6 +++--- .../ar71xx/patches-2.6.32/101-ksz8041_phy_driver.patch | 6 +++--- target/linux/generic-2.6/config-2.6.30 | 3 +++ target/linux/generic-2.6/config-2.6.31 | 3 +++ target/linux/generic-2.6/config-2.6.32 | 3 +++ .../files/drivers/net/phy/rtl8366_smi.c | 0 .../files/drivers/net/phy/rtl8366_smi.h | 0 .../files/drivers/net/phy/rtl8366s.c | 0 .../{ar71xx => generic-2.6}/files/include/linux/rtl8366s.h | 0 .../patches-2.6.30/691-phy_rtl8366.patch} | 4 ++-- .../patches-2.6.31/691-phy_rtl8366.patch} | 4 ++-- .../patches-2.6.32/691-phy_rtl8366.patch} | 4 ++-- 13 files changed, 24 insertions(+), 15 deletions(-) rename target/linux/{ar71xx => generic-2.6}/files/drivers/net/phy/rtl8366_smi.c (100%) rename target/linux/{ar71xx => generic-2.6}/files/drivers/net/phy/rtl8366_smi.h (100%) rename target/linux/{ar71xx => generic-2.6}/files/drivers/net/phy/rtl8366s.c (100%) rename target/linux/{ar71xx => generic-2.6}/files/include/linux/rtl8366s.h (100%) rename target/linux/{ar71xx/patches-2.6.30/204-rtl8366-smi-driver.patch => generic-2.6/patches-2.6.30/691-phy_rtl8366.patch} (92%) rename target/linux/{ar71xx/patches-2.6.31/204-rtl8366-smi-driver.patch => generic-2.6/patches-2.6.31/691-phy_rtl8366.patch} (92%) rename target/linux/{ar71xx/patches-2.6.32/204-rtl8366-smi-driver.patch => generic-2.6/patches-2.6.32/691-phy_rtl8366.patch} (92%) 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 d02addb879..2a09911e1d 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 d02addb879..2a09911e1d 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 866b50386a..94193e8554 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 d5e82a2a2d..db44fd792a 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 9e56c5d3df..afb387e899 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 3c355fa48f..d23d8ffc8d 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 6de4af0326..6223f00fe7 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 6de4af0326..6223f00fe7 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 fbd52c3b78..2f6b3c49f7 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 -- 2.25.1