projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6c17812
)
STAGING: octeon-ethernet: Use proper phy addresses for Movidis hardware.
author
David Daney
<
[email protected]
>
Fri, 2 Apr 2010 01:17:55 +0000
(18:17 -0700)
committer
Ralf Baechle
<
[email protected]
>
Fri, 30 Apr 2010 19:52:53 +0000
(20:52 +0100)
Signed-off-by: David Daney <
[email protected]
>
To:
[email protected]
To:
[email protected]
To:
[email protected]
Patchwork: http://patchwork.linux-mips.org/patch/1091/
Acked-by: David S. Miller <
[email protected]
>
Acked-by: Greg Kroah-Hartman <
[email protected]
>
Signed-off-by: Ralf Baechle <
[email protected]
>
drivers/staging/octeon/cvmx-helper-board.c
patch
|
blob
|
history
diff --git
a/drivers/staging/octeon/cvmx-helper-board.c
b/drivers/staging/octeon/cvmx-helper-board.c
index 3085e38a6f9904c974e0814b6bbeb268808dbbd2..00a555b83354e773f4f366368b6a82e4c6d6f866 100644
(file)
--- 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... */