coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
variants.h File Reference
#include <soc/gpio.h>
#include <soc/meminit.h>
#include <stdint.h>
Include dependency graph for variants.h:

Go to the source code of this file.

Functions

const struct pad_configmainboard_early_bootblock_gpio_table (size_t *num)
 
const struct pad_configvariant_base_gpio_table (size_t *num)
 
const struct pad_configvariant_override_gpio_table (size_t *num)
 
const struct pad_configvariant_early_gpio_table (size_t *num)
 
const struct pad_configvariant_early_override_gpio_table (size_t *num)
 
const struct pad_configvariant_sleep_gpio_table (size_t *num, int slp_typ)
 
const struct lpddr4_cfgvariant_lpddr4_config (void)
 
size_t variant_memory_sku (void)
 
void variant_nhlt_init (struct nhlt *nhlt)
 
void variant_update_devtree (struct device *dev)
 
bool variant_ext_usb_status (unsigned int port_type, unsigned int port_id)
 variant_ext_usb_status() - Get status of externally visible USB ports @port_type: Type of USB port i.e. More...
 
bool no_touchscreen_sku (uint32_t sku_id)
 
void variant_smi_sleep (u8 slp_typ)
 
void power_off_lte_module (void)
 

Variables

const struct lpddr4_swizzle_cfg baseboard_lpddr4_swizzle
 

Function Documentation

◆ mainboard_early_bootblock_gpio_table()

const struct pad_config* mainboard_early_bootblock_gpio_table ( size_t num)

Definition at line 302 of file gpio.c.

Referenced by bootblock_mainboard_early_init().

Here is the caller graph for this function:

◆ no_touchscreen_sku()

bool no_touchscreen_sku ( uint32_t  sku_id)

Definition at line 46 of file gpio.c.

References sku_id().

Referenced by variant_override_gpio_table(), and variant_update_devtree().

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

◆ power_off_lte_module()

void power_off_lte_module ( void  )

Definition at line 64 of file smihandler.c.

References ARRAY_SIZE, gpio_with_delay::delay_msecs, GPIO_117, GPIO_161, GPIO_67, gpio_output(), and mdelay().

Here is the call graph for this function:

◆ variant_base_gpio_table()

const struct pad_config* variant_base_gpio_table ( size_t num)

Definition at line 444 of file gpio.c.

◆ variant_early_gpio_table()

const struct pad_config* variant_early_gpio_table ( size_t num)

Definition at line 204 of file gpio.c.

◆ variant_early_override_gpio_table()

const struct pad_config* variant_early_override_gpio_table ( size_t num)

Definition at line 317 of file gpio.c.

References ARRAY_SIZE, lte_early_override_table, NULL, and override_early_gpio_table.

Referenced by bootblock_mainboard_early_init(), bootblock_mainboard_init(), and verstage_mainboard_early_init().

Here is the caller graph for this function:

◆ variant_ext_usb_status()

bool variant_ext_usb_status ( unsigned int  port_type,
unsigned int  port_id 
)

variant_ext_usb_status() - Get status of externally visible USB ports @port_type: Type of USB port i.e.

USB2/USB3 @port_id: USB Port ID

This function is supplied by the mainboard/variant to SoC's XHCI driver to identify the status of externally visible USB ports.

Return: true if the port is present, false if the port is absent.

Definition at line 240 of file mainboard.c.

References google_chromeec_get_board_sku(), RIGHT_USB_C_PORT_ID, and sku_id().

Referenced by disable_unused_devices().

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

◆ variant_lpddr4_config()

const struct lpddr4_cfg* variant_lpddr4_config ( void  )

Definition at line 190 of file memory.c.

References board_id(), cbi_lp4cfg, CONFIG, and non_cbi_lp4cfg.

Referenced by mainboard_memory_init_params(), mainboard_save_dimm_info(), and save_dimm_info_by_sku_config().

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

◆ variant_memory_sku()

size_t variant_memory_sku ( void  )

Definition at line 74 of file memory.c.

◆ variant_nhlt_init()

void variant_nhlt_init ( struct nhlt nhlt)

Definition at line 7 of file nhlt.c.

◆ variant_override_gpio_table()

const struct pad_config* variant_override_gpio_table ( size_t num)

Definition at line 450 of file gpio.c.

◆ variant_sleep_gpio_table()

const struct pad_config* variant_sleep_gpio_table ( size_t num,
int  slp_typ 
)

Definition at line 369 of file gpio.c.

◆ variant_smi_sleep()

void variant_smi_sleep ( u8  slp_typ)

Definition at line 52 of file smihandler.c.

◆ variant_update_devtree()

Variable Documentation

◆ baseboard_lpddr4_swizzle

const struct lpddr4_swizzle_cfg baseboard_lpddr4_swizzle
extern

Definition at line 1 of file memory.c.