Add Vitesse VSC8662 PHY support
Subsystems (2)
PATCH 1/2 Add Vitesse VSC8662 PHY support
From: Priyanka Jain <[email protected]>
-VSC8662 is Dual Port 10/100/1000Base-T Phy,
100Base-FX/1000/Base-X Gigabit Ethernt Transceiver Phy.
-Its register set and features are similar to
other Vitesse Phys
--- drivers/net/phy/vitesse.c | 18 ++++++++++++++---- 1 files changed, 14 insertions(+), 4 deletions(-)
drivers/net/phy/vitesse.c +14 -4
@@ -1,6 +1,9 @@/* * Vitesse PHY drivers * +* Copyright 2010-2012 Freescale Semiconductor, Inc. +* Author: Andy Fleming +* Add vsc8662 phy support - Priyanka Jain * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License as * published by the Free Software Foundation; either version 2 of
@@ -15,10 +18,6 @@* along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, * MA 02111-1307 USA -* -* Copyright 2010-2011 Freescale Semiconductor, Inc. -* author Andy Fleming -* */ #include <miiphy.h>
@@ -206,6 +205,16 @@ static struct phy_driver VSC8641_driver = { .shutdown = &genphy_shutdown, }; +static struct phy_driver VSC8662_driver = { + .name ="Vitesse VSC8662" , + .uid =0x70660 , + .mask =0xffff0 , + .features =PHY_GBIT_FEATURES , + .config = &genphy_config_aneg, + .startup = &vitesse_startup, + .shutdown = &genphy_shutdown, +}; +/* Vitesse bought Cicada, so we'll put these here */ static struct phy_driver cis8201_driver = { .name ="CIS8201" ,
@@ -235,6 +244,7 @@ int phy_vitesse_init(void)phy_register (&VSC8244_driver);phy_register (&VSC8211_driver);phy_register (&VSC8221_driver); +phy_register (&VSC8662_driver);phy_register (&cis8201_driver);phy_register (&cis8204_driver);
Signature · 1 line
1.7.0.4
PATCH 2/2 board/freescale/common: VSC3316/VSC3308 initialization code
From: Shaveta Leekha <[email protected]>
Add code for configuring VSC3316/3308 crosspoint switches Add README to understand the APIs
- VSC 3316/3308 is a low-power, low-cost asynchronous crosspoint switch capable of data rates upto 11.5Gbps. VSC3316 has 16 input and 16 output ports whereas VSC3308 has 8 input and 8 output ports. Programming of these devices are performed by two-wire or four-wire serial interface.
--- board/freescale/common/Makefile | 1 + board/freescale/common/vsc3316_3308.c | 184 +++++++++++++++++++++++++++++++++ board/freescale/common/vsc3316_3308.h | 34 ++++++ doc/README.VSC3316-3308 | 43 ++++++++ 4 files changed, 262 insertions(+), 0 deletions(-) create mode 100644 board/freescale/common/vsc3316_3308.c create mode 100644 board/freescale/common/vsc3316_3308.h create mode 100644 doc/README.VSC3316-3308
board/freescale/common/Makefile +1 -0
@@ -55,6 +55,7 @@ COBJS-$(CONFIG_P3060QDS) += ics307_clk.o COBJS-$(CONFIG_P4080DS) += ics307_clk.o COBJS-$(CONFIG_P5020DS) += ics307_clk.o COBJS-$(CONFIG_P5040DS) += ics307_clk.o +COBJS-$(CONFIG_VSC_CROSSBAR) += vsc3316_3308.o # deal with common files for P-series corenet based devices SUBLIB-$(CONFIG_P2041RDB) += p_corenet/libp_corenet.o
board/freescale/common/vsc3316_3308.c new file +184 -0
184 lines not on this page · raw message
board/freescale/common/vsc3316_3308.h new file +34 -0
@@ -0,0 +1,34 @@ +/* +* Copyright 2012 Freescale Semiconductor, Inc. +* +* This program is free software; you can redistribute it and/or +* modify it under the terms of the GNU General Public License as +* published by the Free Software Foundation; either version 2 of +* the License, or (at your option) any later version. +* +* This program is distributed in the hope that it will be useful, +* but WITHOUT ANY WARRANTY; without even the implied warranty of +* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +* GNU General Public License for more details. +* +* You should have received a copy of the GNU General Public License +* along with this program; if not, write to the Free Software +* Foundation, Inc., 59 Temple Place, Suite 330, Boston, +* MA 02111-1307 USA +*/ + +#ifndef __VSC_CROSSBAR_H_ +#define __VSC_CROSSBAR_H 1_ + +#include <common.h> +#include <i2c.h> +#include <errno.h> + +int vsc_if_enable (unsigned int vsc_addr); +int vsc3316_config (unsigned int vsc_addr,const int8_t con_arr[][2 ], +unsigned int num_con); +int vsc3308_config (unsigned int vsc_addr,const int8_t con_arr[][2 ], +unsigned int num_con); +void vsc_wp_config (unsigned int vsc_addr); + +#endif /* __VSC_CROSSBAR_H_ */
doc/README.VSC3316-3308 new file +43 -0
43 lines not on this page · raw message
Signature · 1 line
1.7.0.4
Joe Hershberger
AppliedPATCH 1/2 Add Vitesse VSC8662 PHY support
In reply to York SunHi York,
Quoted 11 lines · York Sun
From: Priyanka Jain <[email protected]>
(quoted diff) +0
-2-VSC8662 is Dual Port 10/100/1000Base-T Phy, 100Base-FX/1000/Base-X Gigabit Ethernt Transceiver Phy. -Its register set and features are similar to other Vitesse PhysSigned-off-by Priyanka Jain <[email protected]>Signed-off-by York Sun <[email protected]>---
Applied, thanks.
-Joe