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:
Juli Mallett 2012-11-19 08:35:58 +00:00
parent fcd5eed4f0
commit b3a6fcb3b7
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=243265
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;