coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
soc_util.c File Reference
#include <arch/cpu.h>
#include <console/console.h>
#include <FspGuids.h>
#include <fsp/util.h>
#include <misc_data.h>
#include <soc/cpu.h>
#include <soc/soc_util.h>
#include <types.h>
Include dependency graph for soc_util.c:

Go to the source code of this file.

Macros

#define SOCKET_TYPE_SHIFT   28
 
#define SOCKET_TYPE_MASK   (0xf << SOCKET_TYPE_SHIFT)
 
#define SILICON_IS_MYSTERY_MEAT   (1 << 31)
 
#define SILICON_IS_RV2   (1 << 30)
 

Functions

enum socket_type get_socket_type (void)
 
void print_socket_type (void)
 
static uint32_t get_internal_silicon_type (void)
 
static bool is_rv2_silicon (void)
 
static bool is_mystery_silicon (void)
 
static bool is_fam17_1x (void)
 
static bool is_fam17_11 (void)
 
static bool is_fam17_18 (void)
 
static bool is_fam17_2x (void)
 
static bool is_fam17_20 (void)
 
enum silicon_type get_silicon_type (void)
 
enum soc_type get_soc_type (void)
 
void print_silicon_type (void)
 
void print_soc_type (void)
 
bool soc_is_reduced_io_sku (void)
 
bool soc_is_raven2 (void)
 

Macro Definition Documentation

◆ SILICON_IS_MYSTERY_MEAT

#define SILICON_IS_MYSTERY_MEAT   (1 << 31)

Definition at line 81 of file soc_util.c.

◆ SILICON_IS_RV2

#define SILICON_IS_RV2   (1 << 30)

Definition at line 82 of file soc_util.c.

◆ SOCKET_TYPE_MASK

#define SOCKET_TYPE_MASK   (0xf << SOCKET_TYPE_SHIFT)

Definition at line 21 of file soc_util.c.

◆ SOCKET_TYPE_SHIFT

#define SOCKET_TYPE_SHIFT   28

Definition at line 20 of file soc_util.c.

Function Documentation

◆ get_internal_silicon_type()

static uint32_t get_internal_silicon_type ( void  )
static

Definition at line 53 of file soc_util.c.

References BIOS_DEBUG, BIOS_ERR, fsp_find_extension_hob_by_guid(), NULL, and printk.

Referenced by is_mystery_silicon(), and is_rv2_silicon().

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

◆ 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:

◆ is_fam17_11()

static bool is_fam17_11 ( void  )
static

Definition at line 100 of file soc_util.c.

References cpuid_eax(), and RAVEN1_B0_CPUID.

Here is the call graph for this function:

◆ is_fam17_18()

static bool is_fam17_18 ( void  )
static

Definition at line 106 of file soc_util.c.

References cpuid_eax(), and PICASSO_B1_CPUID.

Here is the call graph for this function:

◆ is_fam17_1x()

static bool is_fam17_1x ( void  )
static

Definition at line 94 of file soc_util.c.

References cpuid_eax(), and PICASSO_B1_CPUID.

Here is the call graph for this function:

◆ is_fam17_20()

static bool is_fam17_20 ( void  )
static

Definition at line 118 of file soc_util.c.

◆ is_fam17_2x()

static bool is_fam17_2x ( void  )
static

Definition at line 112 of file soc_util.c.

References cpuid_eax(), and RAVEN2_A1_CPUID.

Here is the call graph for this function:

◆ is_mystery_silicon()

static bool is_mystery_silicon ( void  )
static

Definition at line 89 of file soc_util.c.

References get_internal_silicon_type(), and SILICON_IS_MYSTERY_MEAT.

Here is the call graph for this function:

◆ is_rv2_silicon()

static bool is_rv2_silicon ( void  )
static

Definition at line 84 of file soc_util.c.

References get_internal_silicon_type(), and SILICON_IS_RV2.

Here is the call 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: