Return port numbers for ATCA-7220 SPI interfaces in a different place for

consistency reasons, and to ensure that CRC addition is disabled on output.
With this, transmit seems to be working properly on the ATCA-7220.
This commit is contained in:
jmallett 2012-11-19 08:35:58 +00:00
parent c8afd72cc1
commit 6a42ee320e
2 changed files with 10 additions and 8 deletions

View File

@ -1312,14 +1312,6 @@ int __cvmx_helper_board_interface_probe(int interface, int supported_ports)
if (interface == 1)
return 12;
break;
#endif
#if defined(OCTEON_VENDOR_RADISYS)
case CVMX_BOARD_TYPE_CUST_RADISYS_RSYS4GBE:
if (interface == 0)
return 13;
if (interface == 1)
return 8;
return 0;
#endif
}
#ifdef CVMX_BUILD_FOR_UBOOT

View File

@ -104,6 +104,16 @@ int __cvmx_helper_spi_enumerate(int interface)
}
#endif
#if defined(OCTEON_VENDOR_RADISYS)
if (cvmx_sysinfo_get()->board_type == CVMX_BOARD_TYPE_CUST_RADISYS_RSYS4GBE) {
if (interface == 0)
return 13;
if (interface == 1)
return 8;
return 0;
}
#endif
if ((cvmx_sysinfo_get()->board_type != CVMX_BOARD_TYPE_SIM) &&
cvmx_spi4000_is_present(interface))
return 10;