diff options
author | Sue Chen <sue.chen@quanta.corp-partner.google.com> | 2020-11-10 09:18:11 +0800 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2020-11-16 23:44:26 +0000 |
commit | 394ce88d0d22400fc6eda0b8c7865053cf734a7e (patch) | |
tree | 4403efa7786e8d38239a9955a4836f4ab10fc610 /board/ezkinil/board.c | |
parent | fb11cd57e3a49d164264f72790d51f4e9b4a8993 (diff) | |
download | chrome-ec-394ce88d0d22400fc6eda0b8c7865053cf734a7e.tar.gz |
Ezkinil: Update thermal table and fan table
Control the fan speed by the temperature read by TEMP_SENSOR_SOC.
thermal_soc: fan_off = 32C, fan_on = 75C
fan_rpm: min = 3200, start = 3200, max = 6000
fan_table:
on off rpm
0 1(32C) 0
9(36C) 1(32C) 3200
21(41C) 16(35C) 3500
28(44C) 29(39C) 3900
37(48C) 42(43C) 4200
47(52C) 55(47C) 4600
56(56C) 68(51C) 5100
72(63C) 84(58C) 5500
BUG=b:153937447
BRANCH=zork
TEST=none
Signed-off-by: Sue Chen <sue.chen@quanta.corp-partner.google.com>
Change-Id: I97195bb027d292b0240bdcc140393f87399e7a55
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2528729
Reviewed-by: Edward Hill <ecgh@chromium.org>
Commit-Queue: Edward Hill <ecgh@chromium.org>
Diffstat (limited to 'board/ezkinil/board.c')
-rw-r--r-- | board/ezkinil/board.c | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/board/ezkinil/board.c b/board/ezkinil/board.c index 17134dd522..7b478ae385 100644 --- a/board/ezkinil/board.c +++ b/board/ezkinil/board.c @@ -508,8 +508,8 @@ const struct fan_conf fan_conf_0 = { .enable_gpio = -1, }; const struct fan_rpm fan_rpm_0 = { - .rpm_min = 2800, - .rpm_start = 2800, + .rpm_min = 3200, + .rpm_start = 3200, .rpm_max = 6000, }; const struct fan_t fans[] = { @@ -611,8 +611,8 @@ const static struct ec_thermal_config thermal_soc = { .temp_host_release = { [EC_TEMP_THRESH_HIGH] = C_TO_K(65), }, - .temp_fan_off = 0, - .temp_fan_max = 0, + .temp_fan_off = C_TO_K(32), + .temp_fan_max = C_TO_K(75), }; const static struct ec_thermal_config thermal_cpu = { @@ -623,8 +623,8 @@ const static struct ec_thermal_config thermal_cpu = { .temp_host_release = { [EC_TEMP_THRESH_HIGH] = C_TO_K(80), }, - .temp_fan_off = C_TO_K(37), - .temp_fan_max = C_TO_K(90), + .temp_fan_off = 0, + .temp_fan_max = 0, }; struct ec_thermal_config thermal_params[TEMP_SENSOR_COUNT]; @@ -637,14 +637,14 @@ struct fan_step { /* Note: Do not make the fan on/off point equal to 0 or 100 */ static const struct fan_step fan_table0[] = { - {.on = 0, .off = 2, .rpm = 0}, - {.on = 15, .off = 2, .rpm = 2800}, - {.on = 23, .off = 13, .rpm = 3200}, - {.on = 30, .off = 21, .rpm = 3400}, - {.on = 38, .off = 28, .rpm = 3700}, - {.on = 45, .off = 36, .rpm = 4200}, - {.on = 55, .off = 43, .rpm = 4500}, - {.on = 66, .off = 53, .rpm = 5300}, + {.on = 0, .off = 1, .rpm = 0}, + {.on = 9, .off = 1, .rpm = 3200}, + {.on = 21, .off = 7, .rpm = 3500}, + {.on = 28, .off = 16, .rpm = 3900}, + {.on = 37, .off = 26, .rpm = 4200}, + {.on = 47, .off = 35, .rpm = 4600}, + {.on = 56, .off = 44, .rpm = 5100}, + {.on = 72, .off = 60, .rpm = 5500}, }; /* All fan tables must have the same number of levels */ #define NUM_FAN_LEVELS ARRAY_SIZE(fan_table0) |