diff options
author | jmallett <jmallett@FreeBSD.org> | 2012-11-01 03:45:33 +0000 |
---|---|---|
committer | jmallett <jmallett@FreeBSD.org> | 2012-11-01 03:45:33 +0000 |
commit | 24d055e3734afacefaa7dacc0a9491b9fafcb984 (patch) | |
tree | 19477380aea0dedb2b9ae5dfbb90a878bc517075 /sys/contrib | |
parent | 61059593f6e868232cd29036765f4a9609c237c4 (diff) | |
download | FreeBSD-src-24d055e3734afacefaa7dacc0a9491b9fafcb984.zip FreeBSD-src-24d055e3734afacefaa7dacc0a9491b9fafcb984.tar.gz |
Handle the management port on the EBT5600 and disable loopback. The XAUI
port connected to the Broadcom switch does not seem operable, but it's unclear
if that's simply due to a lack of configuration information for the switch.
The switch does not seem to present any identifying information via MDIO,
and is a BCM56512.
Diffstat (limited to 'sys/contrib')
-rw-r--r-- | sys/contrib/octeon-sdk/cvmx-helper-board.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/sys/contrib/octeon-sdk/cvmx-helper-board.c b/sys/contrib/octeon-sdk/cvmx-helper-board.c index a8cac96..2582dae 100644 --- a/sys/contrib/octeon-sdk/cvmx-helper-board.c +++ b/sys/contrib/octeon-sdk/cvmx-helper-board.c @@ -451,6 +451,12 @@ int cvmx_helper_board_get_mii_address(int ipd_port) return ipd_port+1; else return -1; + case CVMX_BOARD_TYPE_EBT5600: + /* Board has 1 management port */ + if (ipd_port == CVMX_HELPER_BOARD_MGMT_IPD_PORT) + return 0; + /* Board has 1 XAUI port connected to a switch. */ + return -1; case CVMX_BOARD_TYPE_EBB5600: { static unsigned char qlm_switch_addr = 0; @@ -990,6 +996,7 @@ cvmx_helper_link_info_t __cvmx_helper_board_link_get(int ipd_port) } /* Fall through to the generic code below */ break; + case CVMX_BOARD_TYPE_EBT5600: case CVMX_BOARD_TYPE_EBH5600: case CVMX_BOARD_TYPE_EBH5601: case CVMX_BOARD_TYPE_EBH5610: @@ -1289,6 +1296,11 @@ int __cvmx_helper_board_interface_probe(int interface, int supported_ports) return 0; #endif break; + case CVMX_BOARD_TYPE_EBT5600: + /* Disable loopback. */ + if (interface == 3) + return 0; + break; case CVMX_BOARD_TYPE_EBT5810: return 1; /* Two ports on each SPI: 1 hooked to MAC, 1 loopback ** Loopback disabled by default. */ |