This series implements the Ethernet PHY for the Broadcom Cygnus boards.
Subsystems (5)
cover This series implements the Ethernet PHY for the Broadcom Cygnus boards.
Jiandong Zheng (2):
net: phy: broadcom: Add BCM Cygnus PHY
arm: bcmcygnus: Enable Ethernet support
arch/arm/include/asm/arch-bcmcygnus/configs.h | 11 ++++++++++ board/broadcom/bcm_ep/board.c | 11 ++++++++++ drivers/net/phy/broadcom.c | 29 +++++++++++++++++++++++++++ 3 files changed, 51 insertions(+)
Signature · 1 line
1.8.5
PATCH 1/2 net: phy: broadcom: Add BCM Cygnus PHY
From: Jiandong Zheng <[email protected]>
Add Ethernet PHY for BCM Cygnus SoC
---
drivers/net/phy/broadcom.c | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+)
drivers/net/phy/broadcom.c +29 -0
@@ -137,6 +137,24 @@ static int bcm5482_config(struct phy_device *phydev)return 0 ; } +static int bcm_cygnus_startup (struct phy_device *phydev) +{ +/* Read the Status (2x to make sure link is right) */ +genphy_update_link (phydev); +genphy_parse_link (phydev); + +return 0 ; +} + +static int bcm_cygnus_config (struct phy_device *phydev) +{ +genphy_config_aneg (phydev); + +phy_reset (phydev); + +return 0 ; +} +/* * Find out if PHY is in copper or serdes mode by looking at Expansion Reg * 0x42 - "Operating Mode Status Register"
@@ -264,11 +282,22 @@ static struct phy_driver BCM5482S_driver = { .shutdown = &genphy_shutdown, }; +static struct phy_driver BCM_CYGNUS_driver = { + .name ="Broadcom CYGNUS GPHY" , + .uid =0xae025200 , + .mask =0xfffff0 , + .features =PHY_GBIT_FEATURES , + .config = &bcm_cygnus_config, + .startup = &bcm_cygnus_startup, + .shutdown = &genphy_shutdown, +}; +int phy_broadcom_init (void ) {phy_register (&BCM5482S_driver);phy_register (&BCM5464S_driver);phy_register (&BCM5461S_driver); +phy_register (&BCM_CYGNUS_driver);return 0 ; }
Signature · 1 line
1.8.5
PATCH 1/2 net: phy: broadcom: Add BCM Cygnus PHY
Hello Steve,
Quoted 10 lines · Steve Rae
From: Jiandong Zheng <[email protected]>
Add Ethernet PHY for BCM Cygnus SoC
Signed-off-by Jiandong Zheng <[email protected]>Signed-off-by Steve Rae <[email protected]>---
drivers/net/phy/broadcom.c | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+)
This patch does not add the PHY in drivers/net/phy/Makefile. How does the object file ever get built?
Amicalement,
Signature · 1 line
Albert.
PATCH 1/2 net: phy: broadcom: Add BCM Cygnus PHY
Quoted 11 lines · Albert ARIBAUD
Hello Steve,
Quoted 8 lines · Steve Rae
From: Jiandong Zheng <[email protected]>
Add Ethernet PHY for BCM Cygnus SoC
Signed-off-by Jiandong Zheng <[email protected]>Signed-off-by Steve Rae <[email protected]>---
Quoted 5 lines
Quoted 2 lines
drivers/net/phy/broadcom.c | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+)This patch does not add the PHY in
drivers/net/phy/Makefile. How does the object file ever get built?
Scratch that, I misread this as an addition. Time for a coffee break.
Amicalement,
Signature · 1 line
Albert.
PATCH 1/2 net: phy: broadcom: Add BCM Cygnus PHY
In reply to Steve RaeHi Steve,
Quoted 6 lines · Steve Rae
From: Jiandong Zheng <[email protected]>
Add Ethernet PHY for BCM Cygnus SoC
Signed-off-by Jiandong Zheng <[email protected]>Signed-off-by Steve Rae <[email protected]>
PATCH 1/2 net: phy: broadcom: Add BCM Cygnus PHY
In reply to Steve RaeHi Steve,
Quoted 6 lines · Steve Rae
From: Jiandong Zheng <[email protected]>
Add Ethernet PHY for BCM Cygnus SoC
Signed-off-by Jiandong Zheng <[email protected]>Signed-off-by Steve Rae <[email protected]>
Applied to u-boot-net, thanks!
-Joe
PATCH 2/2 arm: bcmcygnus: Enable Ethernet support
In reply to Steve RaeFrom: Jiandong Zheng <[email protected]>
Enable BCM SF2 ethernet and PHY for BCM Cygnus SoC
---
arch/arm/include/asm/arch-bcmcygnus/configs.h | 11 +++++++++++ board/broadcom/bcm_ep/board.c | 11 +++++++++++ 2 files changed, 22 insertions(+)
arch/arm/include/asm/arch-bcmcygnus/configs.h +11 -0
@@ -22,4 +22,15 @@#define CONFIG_CONS_INDEX 3#define CONFIG_SYS_NS16550_COM3 0x18023000 +/* Ethernet */ +#define CONFIG_BCM_SF2_ETH +#define CONFIG_BCM_SF2_ETH_GMAC + +#define CONFIG_PHYLIB +#define CONFIG_PHY_BROADCOM +#define CONFIG_PHY_RESET_DELAY 10000/* PHY reset delay in us*/ + +#define CONFIG_CMD_PING +#define CONFIG_CMD_MII +#endif /* __ARCH_CONFIGS_H */
board/broadcom/bcm_ep/board.c +11 -0
@@ -7,6 +7,7 @@#include <common.h> #include <asm/io.h> #include <config.h> +#include <netdev.h> #include <asm/system.h> #include <asm/iproc-common/armpll.h>
@@ -67,3 +68,13 @@ void smp_waitloop(unsigned previous_address) { }#endif + +#ifdef CONFIG_BCM_SF2_ETH +int board_eth_init (bd_t *bis) +{ +int rc =-1 ; +printf ("Registering BCM sf2 eth\n" ); + rc =bcm_sf2_eth_register (bis,0 ); +return rc; +} +#endif
Signature · 1 line
1.8.5
PATCH 2/2 arm: bcmcygnus: Enable Ethernet support
Hi Steve,
Quoted 6 lines · Steve Rae
From: Jiandong Zheng <[email protected]>
Enable BCM SF2 ethernet and PHY for BCM Cygnus SoC
Signed-off-by Jiandong Zheng <[email protected]>Signed-off-by Steve Rae <[email protected]>
PATCH 2/2 arm: bcmcygnus: Enable Ethernet support
In reply to Steve RaeQuoted 7 lines · Steve Rae
From: Jiandong Zheng <[email protected]>
Enable BCM SF2 ethernet and PHY for BCM Cygnus SoC
Signed-off-by Jiandong Zheng <[email protected]>Signed-off-by Steve Rae <[email protected]>Acked-by Joe Hershberger <[email protected]>
Applied to u-boot/master, thanks!
Signature · 8 lines
Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 836 bytes Desc: Digital signature URL: <http://lists.denx.de/pipermail/u-boot/attachments/20150813/2cf9cbe5/attachment.sig>