Lines Matching refs:interface
128 sprintf(name_buffer, "interface@%d", interface_num);
130 snprintf(name_buffer, sizeof(name_buffer), "interface@%d", interface_num);
147 cvmx_dprintf("ERROR : pip interface@%d ethernet@%d not found in device "
238 cvmx_dprintf("ERROR : cannot find interface for ipd_port=%d\n", ipd_port);
394 /* Interface 0 is SPI4, interface 1 is RGMII */
524 int interface = cvmx_helper_get_interface_num(ipd_port);
525 int mode = cvmx_helper_interface_get_mode(interface);
541 /* Board has 4 SGMII ports. connected QLM3(interface 1) */
760 int interface = cvmx_helper_get_interface_num(ipd_port);
764 inband_status.u64 = cvmx_read_csr(CVMX_GMXX_RXX_RX_INBND(index, interface));
1149 int interface = cvmx_helper_get_interface_num(ipd_port);
1156 anxx_adv.u64 = cvmx_read_csr(CVMX_PCSX_ANX_ADV_REG(index, interface));
1157 mrx_status.u64 = cvmx_read_csr(CVMX_PCSX_MRX_STATUS_REG(index, interface));
1159 mode_type.u64 = cvmx_read_csr(CVMX_PCSX_MISCX_CTL_REG(index, interface));
1162 sgmii_inband_status.u64 = cvmx_read_csr(CVMX_PCSX_SGMX_LP_ADV_REG(index, interface));
1334 * interface. This function is the per board location to override
1345 * @param interface Interface to probe
1352 int __cvmx_helper_board_interface_probe(int interface, int supported_ports)
1360 if (interface == 0)
1364 if (interface == 0)
1368 if (interface == 0)
1371 /* The 2nd interface on the EBH5600 is connected to the Marvel switch,
1374 if (interface == 1)
1379 if (cvmx_helper_interface_get_mode(interface) == CVMX_HELPER_INTERFACE_MODE_PICMG)
1385 if (interface == 3)
1392 if (interface == 0)
1396 if (interface == 1)
1402 if (interface < 2) /* interface can be EITHER 0 or 1 */
1406 if ((interface == 0) &&
1407 (cvmx_helper_interface_get_mode(interface) == CVMX_HELPER_INTERFACE_MODE_SGMII))
1413 cvmx_read_csr(CVMX_PCSX_MISCX_CTL_REG(0, interface));
1415 cvmx_write_csr(CVMX_PCSX_MISCX_CTL_REG(0, interface),
1418 cvmx_read_csr(CVMX_PCSX_MISCX_CTL_REG(1, interface));
1420 cvmx_write_csr(CVMX_PCSX_MISCX_CTL_REG(1, interface),
1429 if (CVMX_HELPER_INTERFACE_MODE_SPI == cvmx_helper_interface_get_mode(interface) && getenv("disable_spi"))
1443 * @param interface Interface to enable
1447 int __cvmx_helper_board_hardware_enable(int interface)
1451 if (interface == 0)
1454 cvmx_write_csr(CVMX_ASXX_TX_CLK_SETX(1, interface), 0);
1455 cvmx_write_csr(CVMX_ASXX_RX_CLK_SETX(1, interface), 0);
1458 cvmx_write_csr(CVMX_ASXX_TX_CLK_SETX(0, interface), 0xc);
1459 cvmx_write_csr(CVMX_ASXX_RX_CLK_SETX(0, interface), 0xc);
1464 if (interface == 0)
1466 cvmx_write_csr(CVMX_ASXX_TX_CLK_SETX(0, interface), 16);
1467 cvmx_write_csr(CVMX_ASXX_RX_CLK_SETX(0, interface), 16);
1475 if (interface == 0)
1496 cvmx_write_csr(CVMX_ASXX_RX_CLK_SETX(0, interface), 5);
1497 cvmx_write_csr(CVMX_ASXX_TX_CLK_SETX(0, interface), 5);
1506 /* Configure ASX cloks for all ports on interface 0. */
1507 if (interface == 0)
1512 cvmx_write_csr(CVMX_ASXX_TX_CLK_SETX(port, interface), 16);
1513 cvmx_write_csr(CVMX_ASXX_RX_CLK_SETX(port, interface), 0);