Add support for Radisys as a vendor of Octeon hardware. Add some preliminary

support for what their boot loader refers to as the "RSYS4GBE", of which there
are two instances ("Data Processing Blocks") on the Radisys ATCA-7220.
This commit is contained in:
Juli Mallett 2012-10-26 00:08:50 +00:00
parent 452f8dcf7b
commit 320a9376e9
5 changed files with 20 additions and 0 deletions

View File

@ -72,6 +72,7 @@ MAXMEM opt_global.h
# Options that control the Cavium Simple Executive.
#
OCTEON_VENDOR_LANNER opt_cvmx.h
OCTEON_VENDOR_RADISYS opt_cvmx.h
OCTEON_BOARD_CAPK_0100ND opt_cvmx.h
#

View File

@ -298,6 +298,9 @@ enum cvmx_board_types_enum {
#if defined(OCTEON_VENDOR_LANNER)
CVMX_BOARD_TYPE_CUST_LANNER_MR320= 20002,
CVMX_BOARD_TYPE_CUST_LANNER_MR321X=20007,
#endif
#if defined(OCTEON_VENDOR_RADISYS)
CVMX_BOARD_TYPE_CUST_RADISYS_RSYS4GBE=20002,
#endif
CVMX_BOARD_TYPE_CUST_PRIVATE_MAX = 30000,
@ -422,6 +425,9 @@ static inline const char *cvmx_board_type_to_string(enum cvmx_board_types_enum t
#if defined(OCTEON_VENDOR_LANNER)
ENUM_BRD_TYPE_CASE(CVMX_BOARD_TYPE_CUST_LANNER_MR320)
ENUM_BRD_TYPE_CASE(CVMX_BOARD_TYPE_CUST_LANNER_MR321X)
#endif
#if defined(OCTEON_VENDOR_RADISYS)
ENUM_BRD_TYPE_CASE(CVMX_BOARD_TYPE_CUST_RADISYS_RSYS4GBE)
#endif
ENUM_BRD_TYPE_CASE(CVMX_BOARD_TYPE_CUST_PRIVATE_MAX)

View File

@ -1295,6 +1295,14 @@ 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

@ -145,6 +145,10 @@ int cvmx_helper_get_number_of_interfaces(void)
return 2;
case CVMX_BOARD_TYPE_CUST_LANNER_MR730:
return 1;
#endif
#if defined(OCTEON_VENDOR_RADISYS)
case CVMX_BOARD_TYPE_CUST_RADISYS_RSYS4GBE:
return 2;
#endif
default:
break;

View File

@ -38,6 +38,7 @@ makeoptions DEBUG=-g #Build kernel with gdb(1) debug symbols
# Board-specific support that cannot be auto-detected at runtime.
#options OCTEON_VENDOR_LANNER # Support for Lanner boards.
#options OCTEON_VENDOR_RADISYS # Support for Radisys boards.
#options OCTEON_BOARD_CAPK_0100ND # Support for CAPK-0100nd.
options SCHED_ULE # ULE scheduler