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:
parent
fcd5eed4f0
commit
b3a6fcb3b7
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=243265
@ -1312,14 +1312,6 @@ int __cvmx_helper_board_interface_probe(int interface, int supported_ports)
|
|||||||
if (interface == 1)
|
if (interface == 1)
|
||||||
return 12;
|
return 12;
|
||||||
break;
|
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
|
#endif
|
||||||
}
|
}
|
||||||
#ifdef CVMX_BUILD_FOR_UBOOT
|
#ifdef CVMX_BUILD_FOR_UBOOT
|
||||||
|
@ -104,6 +104,16 @@ int __cvmx_helper_spi_enumerate(int interface)
|
|||||||
}
|
}
|
||||||
#endif
|
#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) &&
|
if ((cvmx_sysinfo_get()->board_type != CVMX_BOARD_TYPE_SIM) &&
|
||||||
cvmx_spi4000_is_present(interface))
|
cvmx_spi4000_is_present(interface))
|
||||||
return 10;
|
return 10;
|
||||||
|
Loading…
Reference in New Issue
Block a user