diff options
author | Tom Rini <trini@konsulko.com> | 2016-11-29 19:42:48 -0500 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2016-11-29 19:42:48 -0500 |
commit | 6b29a395b62965eef6b5065d3a526a8588a92038 (patch) | |
tree | d9404d155aa96dd58ff9d02cdb2a30e7136405da /drivers/net/fm/b4860.c | |
parent | dbd5df89d65172f94dec78af809f1e50dbd61fe6 (diff) | |
parent | e8a390f0189c5868f2fa305004821bcfcd71d32c (diff) | |
download | u-boot-imx-6b29a395b62965eef6b5065d3a526a8588a92038.zip u-boot-imx-6b29a395b62965eef6b5065d3a526a8588a92038.tar.gz u-boot-imx-6b29a395b62965eef6b5065d3a526a8588a92038.tar.bz2 |
Merge git://git.denx.de/u-boot-mpc85xx
Diffstat (limited to 'drivers/net/fm/b4860.c')
-rw-r--r-- | drivers/net/fm/b4860.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/drivers/net/fm/b4860.c b/drivers/net/fm/b4860.c index eb058c9..5aeeb87 100644 --- a/drivers/net/fm/b4860.c +++ b/drivers/net/fm/b4860.c @@ -47,7 +47,7 @@ void fman_enable_port(enum fm_port port) phy_interface_t fman_port_enet_if(enum fm_port port) { -#if defined(CONFIG_B4860QDS) +#if defined(CONFIG_TARGET_B4860QDS) || defined(CONFIG_TARGET_B4420QDS) u32 serdes2_prtcl; char buffer[HWCONFIG_BUFFER_SIZE]; char *buf = NULL; @@ -60,7 +60,8 @@ phy_interface_t fman_port_enet_if(enum fm_port port) /*B4860 has two 10Gig Mac*/ if ((port == FM1_10GEC1 || port == FM1_10GEC2) && ((is_serdes_configured(XAUI_FM1_MAC9)) || - #if !defined(CONFIG_B4860QDS) + #if (!defined(CONFIG_TARGET_B4860QDS) && \ + !defined(CONFIG_TARGET_B4R420QDS)) (is_serdes_configured(XFI_FM1_MAC9)) || (is_serdes_configured(XFI_FM1_MAC10)) || #endif @@ -68,7 +69,7 @@ phy_interface_t fman_port_enet_if(enum fm_port port) )) return PHY_INTERFACE_MODE_XGMII; -#if defined(CONFIG_B4860QDS) +#if defined(CONFIG_TARGET_B4860QDS) || defined(CONFIG_TARGET_B4420QDS) serdes2_prtcl = in_be32(&gur->rcwsr[4]) & FSL_CORENET2_RCWSR4_SRDS2_PRTCL; |