50 #ifndef CVMX_HELPER_SPI_TIMEOUT
51 #define CVMX_HELPER_SPI_TIMEOUT 10
57 cvmx_spi4000_is_present(interface)) {
78 cvmx_spi4000_is_present(interface)) {
90 enable.
s.enable |= 0xffff << (
interface * 16);
115 for (ipd_port = interface * 16; ipd_port <
interface * 16 + num_ports;
119 port_config.
s.crc_en = 1;
126 if (cvmx_spi4000_is_present(interface))
127 cvmx_spi4000_initialize(interface);
148 int interface = cvmx_helper_get_interface_num(ipd_port);
154 result.
s.link_up = 1;
155 result.
s.full_duplex = 1;
156 result.
s.speed = 10000;
157 }
else if (cvmx_spi4000_is_present(
interface)) {
160 result.
s.link_up = inband.
s.status;
161 result.
s.full_duplex = inband.
s.duplex;
162 switch (inband.
s.speed) {
167 result.
s.speed = 100;
170 result.
s.speed = 1000;
174 result.
s.link_up = 0;
180 result.
s.link_up = 1;
181 result.
s.full_duplex = 1;
182 result.
s.speed = 10000;