| To: | ralf@linux-mips.org, linux-mips@linux-mips.org, netdev@vger.kernel.org, gregkh@suse.de |
|---|---|
| Subject: | [PATCH 2/2] staging: octeon-ethernet: Use proper phy addresses for Movidis hardware. |
| From: | David Daney <ddaney@caviumnetworks.com> |
| Date: | Thu, 1 Apr 2010 18:17:55 -0700 |
| Cc: | davem@davemloft.net, David Daney <ddaney@caviumnetworks.com> |
| In-reply-to: | <1270171075-12741-1-git-send-email-ddaney@caviumnetworks.com> |
| Original-recipient: | rfc822;linux-mips@linux-mips.org |
| References: | <1270171075-12741-1-git-send-email-ddaney@caviumnetworks.com> |
| Sender: | linux-mips-bounce@linux-mips.org |
Signed-off-by: David Daney <ddaney@caviumnetworks.com>
---
drivers/staging/octeon/cvmx-helper-board.c | 8 ++++++++
1 files changed, 8 insertions(+), 0 deletions(-)
diff --git a/drivers/staging/octeon/cvmx-helper-board.c
b/drivers/staging/octeon/cvmx-helper-board.c
index 3085e38..00a555b 100644
--- a/drivers/staging/octeon/cvmx-helper-board.c
+++ b/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... */
--
1.6.6.1
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | [PATCH 1/2] netdev: phy/mdio-octeon: Enable the hardware before using it., David Daney |
|---|---|
| Next by Date: | [PATCH 0/2] Fix ethernet driver for Octeon based Movidis hardware, David Daney |
| Previous by Thread: | [PATCH 1/2] netdev: phy/mdio-octeon: Enable the hardware before using it., David Daney |
| Next by Thread: | Re: [PATCH 0/2] Fix ethernet driver for Octeon based Movidis hardware, David Miller |
| Indexes: | [Date] [Thread] [Top] [All Lists] |