From 050f4168083cdedbb0cdfee743e0ab300161a6d4 Mon Sep 17 00:00:00 2001 From: David Daney Date: Thu, 1 Apr 2010 18:17:55 -0700 Subject: [PATCH] --- yaml --- r: 190511 b: refs/heads/master c: 9dd147467790932e2f630b67eec925745463ee11 h: refs/heads/master i: 190509: f7fe18e4c4d331546c656847f0d965ae94c9f1c3 190507: cd36f4f587d09af51ae719e43c4cd17e79d0d5c6 190503: f1e52141595eadf131ff150d79b04896bb25e4b8 190495: 33b36c991096c1240f83c1399356fa99c862a398 v: v3 --- [refs] | 2 +- trunk/drivers/staging/octeon/cvmx-helper-board.c | 8 ++++++++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/[refs] b/[refs] index 56f2173296bc..fef871d13aaf 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 6c17812d622a74950e2cd65f368f0518491cca61 +refs/heads/master: 9dd147467790932e2f630b67eec925745463ee11 diff --git a/trunk/drivers/staging/octeon/cvmx-helper-board.c b/trunk/drivers/staging/octeon/cvmx-helper-board.c index 3085e38a6f99..00a555b83354 100644 --- a/trunk/drivers/staging/octeon/cvmx-helper-board.c +++ b/trunk/drivers/staging/octeon/cvmx-helper-board.c @@ -153,6 +153,14 @@ int cvmx_helper_board_get_mii_address(int ipd_port) * through switch. */ return -1; + + case CVMX_BOARD_TYPE_CUST_WSX16: + if (ipd_port >= 0 && ipd_port <= 3) + return ipd_port; + else if (ipd_port >= 16 && ipd_port <= 19) + return ipd_port - 16 + 4; + else + return -1; } /* Some unknown board. Somebody forgot to update this function... */