Hi Ithamar,

Am 06.08.2010 17:54, schrieb Ithamar R. Adema:
> Tested on ifxmips based board. The PSB6970 is also known as the Infineon 
> Tantos switch.
> 
> Signed-off-by: Ithamar R. Adema <[email protected]>
> ---
>  target/linux/generic/config-2.6.33                 |    1 +
>  .../linux/generic/files/drivers/net/phy/psb6970.c  |  438 
> ++++++++++++++++++++
>  .../generic/patches-2.6.33/692-phy_psb6970.patch   |   22 +
>  3 files changed, 461 insertions(+), 0 deletions(-)
>  create mode 100644 target/linux/generic/files/drivers/net/phy/psb6970.c
>  create mode 100644 target/linux/generic/patches-2.6.33/692-phy_psb6970.patch
> 
.....
> diff --git a/target/linux/generic/patches-2.6.33/692-phy_psb6970.patch 
> b/target/linux/generic/patches-2.6.33/692-phy_psb6970.patch
> new file mode 100644
> index 0000000..a214462
> --- /dev/null
> +++ b/target/linux/generic/patches-2.6.33/692-phy_psb6970.patch
> @@ -0,0 +1,22 @@
> +--- linux-2.6.30.9.orig/drivers/net/phy/Makefile     2009-11-25 
> 00:03:50.000000000 +0000
> ++++ linux-2.6.30.9/drivers/net/phy/Makefile  2009-11-22 15:44:14.000000000 
> +0000

change this line to:

+--- a/drivers/net/phy/Makefile
++++ b/drivers/net/phy/Makefile

or use "make target/{clean,refresh} V=99" to format the patch in the
correct way.

> +@@ -15,6 +15,7 @@ obj-$(CONFIG_VITESSE_PHY)  += vitesse.o
> + obj-$(CONFIG_BROADCOM_PHY)  += broadcom.o
> + obj-$(CONFIG_ICPLUS_PHY)    += icplus.o
> + obj-$(CONFIG_ADM6996_PHY)   += adm6996.o
> ++obj-$(CONFIG_PSB6970_PHY)   += psb6970.o
> + obj-$(CONFIG_MVSWITCH_PHY)  += mvswitch.o
> + obj-$(CONFIG_IP175C_PHY)    += ip175c.o
> + obj-$(CONFIG_REALTEK_PHY)   += realtek.o
> +--- linux-2.6.30.9.orig/drivers/net/phy/Kconfig      2009-11-24 
> 18:17:33.000000000 +0000
> ++++ linux-2.6.30.9/drivers/net/phy/Kconfig   2009-11-22 15:44:26.000000000 
> +0000
> +@@ -99,6 +99,10 @@ config ADM6996_PHY
> +     ---help---
> +       Currently supports the ADM6996F switch
> + 
> ++config PSB6970_PHY
> ++    tristate "Driver for Lantiq PSB6970 (Tantos) switch"
> ++    select SWCONFIG
> ++
> + config MVSWITCH_PHY
> +     tristate "Driver for Marvell 88E6060 switches"

Please add a patch to integrate it also in the other kernel versions.
At least for the more recent kernel like 2.6.34 and 2.6.35.

Hauke
_______________________________________________
openwrt-devel mailing list
[email protected]
https://lists.openwrt.org/mailman/listinfo/openwrt-devel

Reply via email to