MIPS: octeon: add explicit interface setup on E200
PATCH 1/1 MIPS: octeon: add explicit interface setup on E200
Define the device explicitly instead of having it fall into the "unknown board" default.
The board is already present in cvmx-bootinfo.h.
Signed-off-by Adrian Schmutzler <[email protected]>
--- arch/mips/cavium-octeon/executive/cvmx-helper-board.c | 2 ++ 1 file changed, 2 insertions(+)
arch/mips/cavium-octeon/executive/cvmx-helper-board.c +2 -0
@@ -174,6 +174,8 @@ int cvmx_helper_board_get_mii_address(int ipd_port)return 7 - ipd_port; else return -1; +case CVMX_BOARD_TYPE_UBNT_E200 : +return -1 ;case CVMX_BOARD_TYPE_KONTRON_S1901 :if (ipd_port ==CVMX_HELPER_BOARD_MGMT_IPD_PORT )return 1 ;
Signature · 1 line
2.20.1
Thomas Bogendoerfer
maintainerQuoted 15 lines · Adrian Schmutzler
Define the device explicitly instead of having it fall into the "unknown board" default.
The board is already present in
cvmx-bootinfo.h.Signed-off-by Adrian Schmutzler <[email protected]>--- arch/mips/cavium-octeon/executive/cvmx-helper-board.c | 2 ++ 1 file changed, 2 insertions(+)arch/mips/cavium-octeon/executive/cvmx-helper-board.c +0
-0
arch/mips/cavium-octeon/executive/cvmx-helper-board.c int cvmx_helper_board_get_mii_address(int ipd_port) · line 181
Quoted 8 lines
arch/mips/cavium-octeon/executive/cvmx-helper-board.c +2
-0@@ -174,6 +174,8 @@ int cvmx_helper_board_get_mii_address(int ipd_port)return 7 - ipd_port; else return -1; +case CVMX_BOARD_TYPE_UBNT_E200 : +return -1 ;case CVMX_BOARD_TYPE_KONTRON_S1901 :if (ipd_port ==CVMX_HELPER_BOARD_MGMT_IPD_PORT )return 1 ;
why doesn't the device tree provide the phy address ?
Thomas.
Signature · 2 lines
Crap can work. Given enough thrust pigs will fly, but it's not necessarily a good idea. [ RFC1925, 2.3 ]