![]() |
coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
|
#include <cbfs.h>
#include <cf9_reset.h>
#include <option.h>
#include <cpu/x86/msr.h>
#include <console/console.h>
#include <cpu/intel/model_206ax/model_206ax.h>
#include <southbridge/intel/common/gpio.h>
#include <superio/smsc/sch5545/sch5545.h>
#include <superio/smsc/sch5545/sch5545_emi.h>
#include <baseboard/sch5545_ec.h>
#include <variant/sch5545_ec_tables.h>
Go to the source code of this file.
Macros | |
#define | GPIO_CHASSIS_ID0 1 |
#define | GPIO_CHASSIS_ID1 17 |
#define | GPIO_CHASSIS_ID2 37 |
#define | GPIO_FRONT_PANEL_CHASSIS_DET_L 70 |
Functions | |
static uint8_t | send_mbox_msg_with_int (uint8_t mbox_message) |
static uint8_t | send_mbox_msg_simple (uint8_t mbox_message) |
static void | ec_check_mbox_and_int_status (uint8_t int_src, uint8_t mbox_msg) |
static uint8_t | ec_read_write_reg (uint8_t ldn, uint16_t reg, uint8_t *value, uint8_t rw_bit) |
uint16_t | sch5545_get_ec_fw_version (void) |
void | sch5545_update_ec_firmware (uint16_t ec_version) |
void | sch5545_ec_hwm_early_init (void) |
static uint8_t | get_sku_tdp_config (void) |
static uint8_t | get_chassis_type (void) |
static void | ec_hwm_init_late (const ec_chassis_tdp_t *ec_hwm_sequence, size_t size) |
static void | prepare_for_hwm_ec_sequence (uint8_t write_only, uint8_t *value) |
void | sch5545_ec_hwm_init (void *unused) |
Variables | |
static const struct ec_val_reg | ec_hwm_init_seq [] |
#define GPIO_CHASSIS_ID0 1 |
Definition at line 16 of file sch5545_ec.c.
#define GPIO_CHASSIS_ID1 17 |
Definition at line 17 of file sch5545_ec.c.
#define GPIO_CHASSIS_ID2 37 |
Definition at line 18 of file sch5545_ec.c.
#define GPIO_FRONT_PANEL_CHASSIS_DET_L 70 |
Definition at line 19 of file sch5545_ec.c.
Definition at line 138 of file sch5545_ec.c.
References BIOS_SPEW, printk, sch5545_emi_ec2h_mbox_read(), sch5545_emi_get_int_src_low(), sch5545_emi_set_int_src_low(), and val.
Referenced by sch5545_ec_hwm_early_init(), and sch5545_ec_hwm_init().
|
static |
Definition at line 331 of file sch5545_ec.c.
References EC_HWM_LDN, ec_read_write_reg(), get_sku_tdp_config(), ec_val_reg::reg, TDP_COMMON, val, ec_val_reg_tdp::val, and WRITE_OP.
Referenced by sch5545_ec_hwm_init().
|
static |
Definition at line 153 of file sch5545_ec.c.
References BIOS_WARNING, printk, ec_val_reg::reg, sch5545_emi_ec_read8(), sch5545_emi_ec_write16(), sch5545_emi_ec_write32(), sch5545_emi_get_int_mask_low(), sch5545_emi_set_int_mask_low(), send_mbox_msg_with_int(), and value.
Referenced by ec_hwm_init_late(), prepare_for_hwm_ec_sequence(), sch5545_ec_hwm_early_init(), sch5545_ec_hwm_init(), and sch5545_get_ec_fw_version().
Definition at line 299 of file sch5545_ec.c.
References BIOS_DEBUG, get_gpio(), GPIO_CHASSIS_ID0, GPIO_CHASSIS_ID1, GPIO_CHASSIS_ID2, GPIO_FRONT_PANEL_CHASSIS_DET_L, and printk.
Referenced by sch5545_ec_hwm_init().
Definition at line 280 of file sch5545_ec.c.
References msr_struct::lo, MSR_PKG_POWER_SKU, MSR_PKG_POWER_SKU_UNIT, and rdmsr().
Referenced by ec_hwm_init_late().
Definition at line 346 of file sch5545_ec.c.
References EC_HWM_LDN, ec_read_write_reg(), NULL, READ_OP, ec_val_reg::reg, val, value, and WRITE_OP.
Referenced by sch5545_ec_hwm_init().
Definition at line 259 of file sch5545_ec.c.
References ARRAY_SIZE, BIOS_DEBUG, ec_check_mbox_and_int_status(), ec_hwm_init_seq, EC_HWM_LDN, ec_read_write_reg(), printk, READ_OP, ec_val_reg::reg, val, ec_val_reg::val, and WRITE_OP.
Referenced by mainboard_early_init().
Definition at line 366 of file sch5545_ec.c.
References ARRAY_SIZE, BIOS_DEBUG, BIOS_INFO, ec_check_mbox_and_int_status(), ec_hwm_chassis3, ec_hwm_chassis4, ec_hwm_chassis5, ec_hwm_chassis6, ec_hwm_init_late(), EC_HWM_LDN, ec_read_write_reg(), get_chassis_type(), get_uint_option(), prepare_for_hwm_ec_sequence(), printk, READ_OP, sch5545_emi_init(), val, and WRITE_OP.
Definition at line 182 of file sch5545_ec.c.
References EC_HWM_LDN, ec_read_write_reg(), READ_OP, and val.
Referenced by mainboard_early_init(), and sch5545_update_ec_firmware().
Definition at line 199 of file sch5545_ec.c.
References BIOS_ERR, BIOS_INFO, BIOS_WARNING, cbfs_map(), full_reset(), printk, sch5545_emi_ec_write32_bulk(), sch5545_get_ec_fw_version(), and send_mbox_msg_simple().
Referenced by mainboard_early_init().
Definition at line 120 of file sch5545_ec.c.
References sch5545_emi_ec2h_mbox_read(), sch5545_emi_get_int_src_low(), and sch5545_emi_h2ec_mbox_write().
Referenced by sch5545_update_ec_firmware().
Definition at line 98 of file sch5545_ec.c.
References sch5545_emi_ec2h_mbox_read(), sch5545_emi_get_int_src_low(), sch5545_emi_h2ec_mbox_write(), and sch5545_emi_set_int_src_low().
Referenced by ec_read_write_reg().
|
static |
Definition at line 1 of file sch5545_ec.c.
Referenced by sch5545_ec_hwm_early_init().