74 if (
CONFIG(SUPERIO_ITE_ENV_CTRL_EXT_ANY_TMPIN)) {
76 if (
CONFIG(SUPERIO_ITE_IT8721F) && tmpin == 2) {
78 "PECI to TMPIN2 not supported on IT8721F\n");
83 "PECI specified for multiple TMPIN\n");
87 }
else if (tmpin == 3) {
146 if (
CONFIG(SUPERIO_ITE_ENV_CTRL_8BIT_PWM))
161 if (
CONFIG(SUPERIO_ITE_ENV_CTRL_7BIT_SLOPE_REG)) {
162 pwm_auto = conf->
slope & 0x7f;
196 (
CONFIG(SUPERIO_ITE_ENV_CTRL_NO_ONOFF) &&
201 if (
CONFIG(SUPERIO_ITE_ENV_CTRL_PWM_FREQ2) && fan == 2) {
225 if (
CONFIG(SUPERIO_ITE_ENV_CTRL_5FANS) && fan > 3) {
240 if (!
CONFIG(SUPERIO_ITE_ENV_CTRL_NO_ONOFF)) {
#define printk(level,...)
void mdelay(unsigned int msecs)
static void fan_smartconfig(const u16 base, const u8 fan, const enum ite_ec_fan_mode mode, const struct ite_ec_fan_smartconfig *const conf)
static void extemp_force_idle_status(const u16 base)
static void enable_fan(const u16 base, const u8 fan, const struct ite_ec_fan_config *const conf)
static void enable_peci(const u16 base)
static void enable_tmpin(const u16 base, const u8 tmpin, const struct ite_ec_thermal_config *const conf)
static void enable_beeps(const u16 base, const struct ite_ec_config *const conf)
void ite_ec_init(const u16 base, const struct ite_ec_config *const conf)
#define ITE_EC_FAN_CTL_PWM_MODE_AUTOMATIC
#define ITE_EC_FAN_CTL_MODE
#define ITE_EC_BEEP_ENABLE
#define ITE_EC_FAN_CTL_POLARITY_HIGH
#define PECI_GETTEMP_READ_LENGTH
#define ITE_EC_FAN_MAIN_CTL
#define ITE_EC_EXTEMP_CTRL_AUTO_4HZ
#define ITE_EC_EXTEMP_READ_LENGTH
#define ITE_EC_BEEP_ON_VIN_LIMIT
#define ITE_EC_FAN_CTL_PWM_AUTO(x)
#define ITE_EC_BEEP_FREQ_DIV_OF_TMPIN
#define ITE_EC_ADC_TEMP_EXTRA_TMPIN3_EXT
#define ITE_EC_TEMP_ADJUST_WRITE_ENABLE
#define ITE_EC_FAN_SEC_CTL
#define ITE_EC_FAN_CTL_PWM_START_RPM(p)
#define ITE_EC_EXTEMP_STATUS_HOST_BUSY
#define ITE_EC_INTERFACE_SPEED_TOLERANCE
#define ITE_EC_BEEP_ON_TMP_LIMIT
#define ITE_EC_FAN_CTL_DELTA_TEMP(x)
#define ITE_EC_BEEP_ON_FAN_LIMIT
#define ITE_EC_FAN_CTL_ON(x)
#define ITE_EC_FAN_CTL_PWM_DUTY(p)
#define ITE_EC_FAN_PWM_DEFAULT_CLOCK
#define ITE_EC_EXTEMP_COMMAND
#define ITE_EC_INTERFACE_SMB_ENABLE
#define PECI_GETTEMP_WRITE_LENGTH
#define ITE_EC_FAN_TAC_COUNTER_ENABLE
#define ITE_EC_ADC_TEMP_DIODE_MODE(x)
#define ITE_EC_BEEP_FREQ_DIV_OF_FAN
#define ITE_EC_ADC_TEMP_EXT_REPORTS_TO(x)
#define ITE_EC_FAN_CTL_TEMP_LIMIT_START(x)
#define ITE_EC_BEEP_FREQ_DIV_OF_VIN
#define ITE_EC_ADC_TEMP_RESISTOR_MODE(x)
#define PECI_GETTEMP_COMMAND
#define ITE_EC_FAN_PWM_CLOCK_MASK
#define ITE_EC_ADC_VOLTAGE_CHANNEL_ENABLE
#define ITE_EC_FAN_CTL_DELTA_TEMP_INTRVL(c)
#define ITE_EC_FAN_SEC_CTL_TAC_EN(x)
#define ITE_EC_FAN_CTL_TEMPIN(x)
#define ITE_EC_CONFIGURATION
#define ITE_EC_FAN_MAIN_CTL_SMART(x)
#define ITE_EC_LOW_TEMP_LIMIT(x)
#define ITE_EC_FAN_PWM_CLSD_LOOP
#define ITE_EC_EXTEMP_ADDRESS
#define ITE_EC_FAN_CTL_PWM_SLOPE_LOWER(s)
#define ITE_EC_BEEP_TONE_DIVISOR(x)
#define PECI_CLIENT_ADDRESS
static const u8 ITE_EC_TEMP_ADJUST[]
#define ITE_EC_FAN_CTL_PWM_SLOPE_BIT6(s)
#define ITE_EC_FAN_CTL_PWM_MODE_SOFTWARE
#define ITE_EC_INTERFACE_SELECT
#define ITE_EC_INTERFACE_CLOCK_24MHZ
#define ITE_EC_FAN_MAIN_CTL_TAC_EN(x)
#define ITE_EC_FAN_CTL_PWM_START_DUTY(p)
#define ITE_EC_ADC_TEMP_CHANNEL_ENABLE
#define ITE_EC_HIGH_TEMP_LIMIT(x)
#define ITE_EC_FAN_CTL_AUTO_SMOOTHING_EN
#define ITE_EC_FAN_TAC_16BIT_ENABLE(x)
#define ITE_EC_FAN_CTL_PWM_START(x)
#define ITE_EC_EXTEMP_WRITE_LENGTH
#define ITE_EC_FAN_CTL_PWM_CONTROL(x)
#define ITE_EC_EXTEMP_CTRL_AUTO_START
#define ITE_EC_INTERFACE_SEL_PECI
#define ITE_EC_CONFIGURATION_START
#define ITE_EC_FAN_CTL_TEMP_LIMIT_FULL(x)
#define ITE_EC_ADC_TEMP_EXT_REPORTS_TO_MASK
#define ITE_EC_FAN_CTL_TEMP_LIMIT_OFF(x)
#define ITE_EC_ADC_TEMP_EXTRA_CHANNEL_ENABLE
#define ITE_EC_BEEP_FREQ_DIVISOR(x)
#define ITE_EC_EXTEMP_CONTROL
#define ITE_EC_EXTEMP_STATUS
#define ITE_EC_FAN_CTL_FULL_AT_THRML_LMT(x)
static u8 pnp_read_hwm5_index(u16 base, u8 reg)
static void pnp_write_hwm5_index(u16 base, u8 reg, u8 value)
#define BIOS_WARNING
BIOS_WARNING - Bad configuration.
struct ite_ec_thermal_config tmpin[ITE_EC_TMPIN_CNT]
enum ite_ec_voltage_pin vin_mask
struct ite_ec_fan_config fan[ITE_EC_FAN_CNT]
struct ite_ec_fan_smartconfig smart
enum ite_ec_fan_mode mode
enum ite_ec_thermal_mode mode