From 24d055e3734afacefaa7dacc0a9491b9fafcb984 Mon Sep 17 00:00:00 2001 From: jmallett Date: Thu, 1 Nov 2012 03:45:33 +0000 Subject: 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. --- sys/contrib/octeon-sdk/cvmx-helper-board.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'sys/contrib') 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. */ -- cgit v1.1