From 41aa5ec2d672f84c9e1651654ecd289c9d2b24b2 Mon Sep 17 00:00:00 2001 From: Vagiz Trakhanov Date: Mon, 23 Oct 2017 13:17:44 +0000 Subject: superio/ite/common: Add options to enable beeps Add device tree options to enable beeps when exceeding temperature, voltage, and fan limits. As of this commit, setting voltage and fan limits is not implemented. Change-Id: I57ce622ee4498b75f00e678c2e6d72e499925bce Signed-off-by: Vagiz Trakhanov Reviewed-on: https://review.coreboot.org/22141 Tested-by: build bot (Jenkins) Reviewed-by: Patrick Georgi --- src/superio/ite/common/env_ctrl.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/superio/ite/common/env_ctrl.h') diff --git a/src/superio/ite/common/env_ctrl.h b/src/superio/ite/common/env_ctrl.h index 8ce682e4d0..020f383be7 100644 --- a/src/superio/ite/common/env_ctrl.h +++ b/src/superio/ite/common/env_ctrl.h @@ -114,8 +114,10 @@ static const u8 ITE_EC_TEMP_ADJUST[] = { 0x56, 0x57, 0x59 }; #define ITE_EC_BEEP_ON_VIN_LIMIT (1 << 1) #define ITE_EC_BEEP_ON_FAN_LIMIT (1 << 0) #define ITE_EC_BEEP_FREQ_DIV_OF_FAN 0x5D -#define ITE_EC_BEEP_FREQ_DIV_OF_VOLT 0x5E -#define ITE_EC_BEEP_FREQ_DIV_OF_TEMP 0x5F +#define ITE_EC_BEEP_FREQ_DIV_OF_VIN 0x5E +#define ITE_EC_BEEP_FREQ_DIV_OF_TMPIN 0x5F +#define ITE_EC_BEEP_TONE_DIVISOR(x) (((x) & 0x0f) << 4) +#define ITE_EC_BEEP_FREQ_DIVISOR(x) (((x) & 0x0f) << 0) #define ITE_EC_FAN_CTL_TEMP_LIMIT_OFF(x) (0x60 + ((x)-1) * 8) #define ITE_EC_FAN_CTL_TEMP_LIMIT_START(x) (0x61 + ((x)-1) * 8) -- cgit v1.2.3