coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
ramstage_common.c File Reference
#include <acpi/acpi_device.h>
#include <baseboard/variants.h>
#include <console/console.h>
#include <device/device.h>
#include <drivers/amd/i2s_machine_dev/chip.h>
#include <drivers/i2c/generic/chip.h>
#include <drivers/i2c/hid/chip.h>
#include <drivers/usb/acpi/chip.h>
#include <ec/google/chromeec/ec.h>
#include <soc/gpio.h>
#include <soc/iomap.h>
#include <soc/pci_devs.h>
Include dependency graph for ramstage_common.c:

Go to the source code of this file.

Functions

 WEAK_DEV_PTR (xhci1_bt)
 
static void update_hp_int_odl (void)
 
static void update_dmic_gpio (void)
 
void variant_audio_update (void)
 
static void remove_usb_device_reset_gpio (const struct device *usb_dev)
 
static void baseboard_trembyle_remove_bluetooth_reset_gpio (void)
 
void variant_bluetooth_update (void)
 
void variant_touchscreen_update (void)
 

Variables

struct chip_operations drivers_i2c_generic_ops
 
struct chip_operations drivers_i2c_hid_ops
 

Function Documentation

◆ baseboard_trembyle_remove_bluetooth_reset_gpio()

static void baseboard_trembyle_remove_bluetooth_reset_gpio ( void  )
static

Definition at line 87 of file ramstage_common.c.

References DEV_PTR, and remove_usb_device_reset_gpio().

Referenced by variant_bluetooth_update().

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

◆ remove_usb_device_reset_gpio()

static void remove_usb_device_reset_gpio ( const struct device usb_dev)
static

Definition at line 74 of file ramstage_common.c.

References config_of(), acpi_gpio::pin_count, and drivers_usb_acpi_config::reset_gpio.

Referenced by baseboard_trembyle_remove_bluetooth_reset_gpio().

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

◆ update_dmic_gpio()

static void update_dmic_gpio ( void  )
static

Definition at line 44 of file ramstage_common.c.

References CONFIG, config_of(), DEV_PTR, drivers_amd_i2s_machine_dev_config::dmic_select_gpio, GPIO_13, GPIO_6, and variant_uses_v3_schematics().

Referenced by variant_audio_update().

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

◆ update_hp_int_odl()

static void update_hp_int_odl ( void  )
static

◆ variant_audio_update()

void variant_audio_update ( void  )

Definition at line 63 of file ramstage_common.c.

References update_dmic_gpio(), and update_hp_int_odl().

Referenced by mainboard_devtree_update().

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

◆ variant_bluetooth_update()

void variant_bluetooth_update ( void  )

Definition at line 93 of file ramstage_common.c.

References baseboard_trembyle_remove_bluetooth_reset_gpio(), CONFIG, and variant_uses_v3_schematics().

Referenced by mainboard_devtree_update().

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

◆ variant_touchscreen_update()

◆ WEAK_DEV_PTR()

WEAK_DEV_PTR ( xhci1_bt  )

Variable Documentation

◆ drivers_i2c_generic_ops

struct chip_operations drivers_i2c_generic_ops
extern

Definition at line 189 of file generic.c.

Referenced by variant_touchscreen_update().

◆ drivers_i2c_hid_ops

struct chip_operations drivers_i2c_hid_ops
extern

Definition at line 52 of file hid.c.

Referenced by variant_touchscreen_update().