Skip to content
Snippets Groups Projects
Commit 39d0ce06 authored by Jiandong Zheng's avatar Jiandong Zheng Committed by Tom Rini
Browse files

arm: bcmcygnus: Enable Ethernet support


Enable BCM SF2 ethernet and PHY for BCM Cygnus SoC

Signed-off-by: default avatarJiandong Zheng <jdzheng@broadcom.com>
Signed-off-by: default avatarSteve Rae <srae@broadcom.com>
Acked-by: default avatarJoe Hershberger <joe.hershberger@ni.com>
parent 3b5df50e
No related branches found
No related tags found
No related merge requests found
......@@ -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 */
......@@ -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
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment