diff mbox series

MIPS: octeon: add explicit interface setup on E200

Message ID 20210225165258.43995-1-freifunk@adrianschmutzler.de (mailing list archive)
State New
Headers show
Series MIPS: octeon: add explicit interface setup on E200 | expand

Commit Message

Adrian Schmutzler Feb. 25, 2021, 4:52 p.m. UTC
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 <freifunk@adrianschmutzler.de>
---
 arch/mips/cavium-octeon/executive/cvmx-helper-board.c | 2 ++
 1 file changed, 2 insertions(+)

Comments

Thomas Bogendoerfer March 1, 2021, 2:48 p.m. UTC | #1
On Thu, Feb 25, 2021 at 05:52:58PM +0100, Adrian Schmutzler wrote:
> 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 <freifunk@adrianschmutzler.de>
> ---
>  arch/mips/cavium-octeon/executive/cvmx-helper-board.c | 2 ++
>  1 file changed, 2 insertions(+)
> 
> diff --git a/arch/mips/cavium-octeon/executive/cvmx-helper-board.c b/arch/mips/cavium-octeon/executive/cvmx-helper-board.c
> index abd11b7af22f..ce9d2553537e 100644
> --- a/arch/mips/cavium-octeon/executive/cvmx-helper-board.c
> +++ b/arch/mips/cavium-octeon/executive/cvmx-helper-board.c
> @@ -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.
diff mbox series

Patch

diff --git a/arch/mips/cavium-octeon/executive/cvmx-helper-board.c b/arch/mips/cavium-octeon/executive/cvmx-helper-board.c
index abd11b7af22f..ce9d2553537e 100644
--- a/arch/mips/cavium-octeon/executive/cvmx-helper-board.c
+++ b/arch/mips/cavium-octeon/executive/cvmx-helper-board.c
@@ -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;