coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
soc_util.h File Reference
#include <types.h>
Include dependency graph for soc_util.h:

Go to the source code of this file.

Enumerations

enum  socket_type { SOCKET_FP5 = 0 , SOCKET_AM4 = 2 , SOCKET_FT5 = 3 }
 
enum  silicon_type { SILICON_RV1 , SILICON_PCO , SILICON_RV2 , SILICON_UNKNOWN }
 
enum  soc_type { SOC_PICASSO , SOC_DALI , SOC_POLLOCK , SOC_UNKNOWN }
 

Functions

enum socket_type get_socket_type (void)
 
enum silicon_type get_silicon_type (void)
 
enum soc_type get_soc_type (void)
 
void print_socket_type (void)
 
void print_silicon_type (void)
 
void print_soc_type (void)
 
bool soc_is_reduced_io_sku (void)
 
bool soc_is_raven2 (void)
 

Enumeration Type Documentation

◆ silicon_type

Enumerator
SILICON_RV1 
SILICON_PCO 
SILICON_RV2 
SILICON_UNKNOWN 

Definition at line 14 of file soc_util.h.

◆ soc_type

enum soc_type
Enumerator
SOC_PICASSO 
SOC_DALI 
SOC_POLLOCK 
SOC_UNKNOWN 

Definition at line 21 of file soc_util.h.

◆ socket_type

Enumerator
SOCKET_FP5 
SOCKET_AM4 
SOCKET_FT5 

Definition at line 8 of file soc_util.h.

Function Documentation

◆ get_silicon_type()

enum silicon_type get_silicon_type ( void  )

Definition at line 118 of file soc_util.c.

References cpuid_eax(), and RAVEN2_A1_CPUID.

Referenced by fsp_usb_oem_customization(), print_silicon_type(), soc_is_raven2(), and soc_is_reduced_io_sku().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ get_soc_type()

enum soc_type get_soc_type ( void  )

Definition at line 118 of file soc_util.c.

Referenced by print_soc_type(), and soc_is_reduced_io_sku().

Here is the caller graph for this function:

◆ get_socket_type()

enum socket_type get_socket_type ( void  )

Definition at line 1 of file soc_util.c.

Referenced by print_socket_type().

Here is the caller graph for this function:

◆ print_silicon_type()

void print_silicon_type ( void  )

Definition at line 168 of file soc_util.c.

References BIOS_INFO, get_silicon_type(), printk, SILICON_PCO, SILICON_RV1, and SILICON_RV2.

Here is the call graph for this function:

◆ print_soc_type()

void print_soc_type ( void  )

Definition at line 189 of file soc_util.c.

References BIOS_INFO, get_soc_type(), printk, SOC_DALI, SOC_PICASSO, and SOC_POLLOCK.

Here is the call graph for this function:

◆ print_socket_type()

void print_socket_type ( void  )

Definition at line 31 of file soc_util.c.

References BIOS_INFO, get_socket_type(), printk, SOCKET_AM4, SOCKET_FP5, and SOCKET_FT5.

Here is the call graph for this function:

◆ soc_is_raven2()

bool soc_is_raven2 ( void  )

Definition at line 215 of file soc_util.c.

References get_silicon_type(), and SILICON_RV2.

Referenced by map_oprom_vendev_rev().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ soc_is_reduced_io_sku()

bool soc_is_reduced_io_sku ( void  )

Definition at line 210 of file soc_util.c.

References get_silicon_type(), get_soc_type(), SILICON_RV2, and SOC_DALI.

Referenced by baseboard_get_ddi_descriptors(), baseboard_get_dxio_descriptors(), configure_xhci_sci(), and mainboard_get_dxio_ddi_descriptors().

Here is the call graph for this function:
Here is the caller graph for this function: