Skip to content

Commit 154ca3f

Browse files
aakoskinpaulburton
authored andcommitted
MIPS: OCTEON: don't lie about interface type of CN3005 board
The fixed-link node in the DT should now take care of the link status, so this hack can be deleted. Signed-off-by: Aaro Koskinen <aaro.koskinen@iki.fi> Signed-off-by: Paul Burton <paul.burton@mips.com> Cc: linux-mips@vger.kernel.org
1 parent 2c0756d commit 154ca3f

File tree

1 file changed

+0
-16
lines changed

1 file changed

+0
-16
lines changed

arch/mips/cavium-octeon/executive/cvmx-helper.c

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -317,22 +317,6 @@ cvmx_helper_interface_mode_t cvmx_helper_interface_get_mode(int interface)
317317
return CVMX_HELPER_INTERFACE_MODE_DISABLED;
318318
}
319319

320-
if (interface == 0
321-
&& cvmx_sysinfo_get()->board_type == CVMX_BOARD_TYPE_CN3005_EVB_HS5
322-
&& cvmx_sysinfo_get()->board_rev_major == 1) {
323-
/*
324-
* Lie about interface type of CN3005 board. This
325-
* board has a switch on port 1 like the other
326-
* evaluation boards, but it is connected over RGMII
327-
* instead of GMII. Report GMII mode so that the
328-
* speed is forced to 1 Gbit full duplex. Other than
329-
* some initial configuration (which does not use the
330-
* output of this function) there is no difference in
331-
* setup between GMII and RGMII modes.
332-
*/
333-
return CVMX_HELPER_INTERFACE_MODE_GMII;
334-
}
335-
336320
/* Interface 1 is always disabled on CN31XX and CN30XX */
337321
if ((interface == 1)
338322
&& (OCTEON_IS_MODEL(OCTEON_CN31XX) || OCTEON_IS_MODEL(OCTEON_CN30XX)

0 commit comments

Comments
 (0)