diff options
Diffstat (limited to 'board/banshee/sensors.c')
-rw-r--r-- | board/banshee/sensors.c | 29 |
1 files changed, 14 insertions, 15 deletions
diff --git a/board/banshee/sensors.c b/board/banshee/sensors.c index b4b6360984..57b81b2af8 100644 --- a/board/banshee/sensors.c +++ b/board/banshee/sensors.c @@ -1,4 +1,4 @@ -/* Copyright 2022 The Chromium OS Authors. All rights reserved. +/* Copyright 2022 The ChromiumOS Authors * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ @@ -40,15 +40,14 @@ struct adc_t adc_channels[] = { }; BUILD_ASSERT(ARRAY_SIZE(adc_channels) == ADC_CH_COUNT); - /* CM32183 private data */ static struct als_drv_data_t g_cm32183_data = { /** * adjusted_value = raw_value * scale + raw_value * uscale / 10000 - * the coeficient we need is 3.8 + * the coeficient we need is 3.2 */ .als_cal.scale = 3, - .als_cal.uscale = 8000, + .als_cal.uscale = 2000, .als_cal.offset = 0, .als_cal.channel_scale = { /* TODO(b/219424210): Calibrate ALS CM32183A3OP */ @@ -120,8 +119,8 @@ BUILD_ASSERT(ARRAY_SIZE(temp_sensors) == TEMP_SENSOR_COUNT); /* * TODO(b/202062363): Remove when clang is fixed. */ -#define THERMAL_CPU \ - { \ +#define THERMAL_CPU \ + { \ .temp_host = { \ [EC_TEMP_THRESH_WARN] = C_TO_K(80), \ [EC_TEMP_THRESH_HIGH] = C_TO_K(90), \ @@ -131,7 +130,7 @@ BUILD_ASSERT(ARRAY_SIZE(temp_sensors) == TEMP_SENSOR_COUNT); [EC_TEMP_THRESH_WARN] = C_TO_K(75), \ [EC_TEMP_THRESH_HIGH] = C_TO_K(81), \ }, \ - .temp_fan_off = C_TO_K(40), \ + .temp_fan_off = C_TO_K(50), \ .temp_fan_max = C_TO_K(58), \ } __maybe_unused static const struct ec_thermal_config thermal_cpu = THERMAL_CPU; @@ -152,8 +151,8 @@ __maybe_unused static const struct ec_thermal_config thermal_cpu = THERMAL_CPU; /* * TODO(b/202062363): Remove when clang is fixed. */ -#define THERMAL_AMBIENT \ - { \ +#define THERMAL_AMBIENT \ + { \ .temp_host = { \ [EC_TEMP_THRESH_WARN] = C_TO_K(85), \ [EC_TEMP_THRESH_HIGH] = C_TO_K(95), \ @@ -163,7 +162,7 @@ __maybe_unused static const struct ec_thermal_config thermal_cpu = THERMAL_CPU; [EC_TEMP_THRESH_WARN] = C_TO_K(70), \ [EC_TEMP_THRESH_HIGH] = C_TO_K(86), \ }, \ - .temp_fan_off = C_TO_K(40), \ + .temp_fan_off = C_TO_K(50), \ .temp_fan_max = C_TO_K(58), \ } __maybe_unused static const struct ec_thermal_config thermal_ambient = @@ -183,8 +182,8 @@ __maybe_unused static const struct ec_thermal_config thermal_ambient = /* * TODO(b/202062363): Remove when clang is fixed. */ -#define THERMAL_CHARGER \ - { \ +#define THERMAL_CHARGER \ + { \ .temp_host = { \ [EC_TEMP_THRESH_WARN] = C_TO_K(90), \ [EC_TEMP_THRESH_HIGH] = C_TO_K(100), \ @@ -194,7 +193,7 @@ __maybe_unused static const struct ec_thermal_config thermal_ambient = [EC_TEMP_THRESH_WARN] = C_TO_K(85), \ [EC_TEMP_THRESH_HIGH] = C_TO_K(91), \ }, \ - .temp_fan_off = C_TO_K(40), \ + .temp_fan_off = C_TO_K(50), \ .temp_fan_max = C_TO_K(58), \ } __maybe_unused static const struct ec_thermal_config thermal_charger = @@ -206,8 +205,8 @@ __maybe_unused static const struct ec_thermal_config thermal_charger = /* * TODO(b/202062363): Remove when clang is fixed. */ -#define THERMAL_WWAN \ - { \ +#define THERMAL_WWAN \ + { \ .temp_host = { \ [EC_TEMP_THRESH_HIGH] = C_TO_K(130), \ [EC_TEMP_THRESH_HALT] = C_TO_K(130), \ |