summaryrefslogtreecommitdiffstats
path: root/sys/contrib/octeon-sdk
diff options
context:
space:
mode:
authorjmallett <jmallett@FreeBSD.org>2010-10-02 05:43:17 +0000
committerjmallett <jmallett@FreeBSD.org>2010-10-02 05:43:17 +0000
commit2d1121be27a4b3fe694bb1cf62160fafb9e683c9 (patch)
tree2e0df653002461518257760cd66dd02dd27795a7 /sys/contrib/octeon-sdk
parent2eba3705784cad55cc9ac0322e5d6d1c83bb1e48 (diff)
downloadFreeBSD-src-2d1121be27a4b3fe694bb1cf62160fafb9e683c9.zip
FreeBSD-src-2d1121be27a4b3fe694bb1cf62160fafb9e683c9.tar.gz
o) Allow devices to override the MDIO read and write functions presented to
the miibus attached to octe interfaces. o) Add an SMI/MDIO interface to the MV88E61XX and use it for the switch PHY on the Lanner MR-320. An actual driver for the switch PHY will come later. Note that for now it intercepts and fakes MII_BMSR reads to prevent the miibus from talking to anything but the switch itself.
Diffstat (limited to 'sys/contrib/octeon-sdk')
-rw-r--r--sys/contrib/octeon-sdk/cvmx-helper-board.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/contrib/octeon-sdk/cvmx-helper-board.c b/sys/contrib/octeon-sdk/cvmx-helper-board.c
index 5bf2990..cca2b22 100644
--- a/sys/contrib/octeon-sdk/cvmx-helper-board.c
+++ b/sys/contrib/octeon-sdk/cvmx-helper-board.c
@@ -181,10 +181,11 @@ int cvmx_helper_board_get_mii_address(int ipd_port)
/* Private vendor-defined boards. */
#if defined(OCTEON_VENDOR_LANNER)
case CVMX_BOARD_TYPE_CUST_LANNER_MR320:
+ /* Port 0 is a Marvell 88E6161 switch, ports 1 and 2 are Marvell
+ 88E1111 interfaces. */
switch (ipd_port) {
case 0:
- /* XXX Switch PHY? */
- return -1;
+ return 16;
case 1:
return 1;
case 2:
OpenPOWER on IntegriCloud