summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Huang <David.Huang@quantatw.com>2015-06-23 12:13:29 +0800
committerChromeOS Commit Bot <chromeos-commit-bot@chromium.org>2015-06-23 23:21:03 +0000
commitccead4772abed491e1b54060b3ff1bac1ec48640 (patch)
tree27cba6bebb4bfc6d991be045b2941530ee4fbd19
parent282f4958d8cbf554470069559a8cd7bc85119c93 (diff)
downloadchrome-ec-ccead4772abed491e1b54060b3ff1bac1ec48640.tar.gz
Gandof: Update thermal table
Update Thermal table for Ganndof. on off RPM step0 0 step1 33 29 3800 step2 37 35 4500 step3 45 41 4900 step4 53 49 5400 step5 60 57 6000 step6 69 62 7100 ec warning point: 76 ec high point: 80 ec shutdown point: 100 BRANCH=gandof BUG=chrome-os-partner:41633 TEST=Use the hacked code to return the fake temperature, check all the steps with Gandof. The fan behavior works properly. Signed-off-by: David Huang <David.Huang@quantatw.com> Change-Id: Ica40b562456c1bfc84792459aaea578dcfe4ba32 Reviewed-on: https://chromium-review.googlesource.com/281122 Reviewed-by: Mohammed Habibulla <moch@chromium.org> Commit-Queue: David Wu <david_wu@quantatw.com> Tested-by: David Wu <david_wu@quantatw.com>
-rw-r--r--board/gandof/board.c17
1 files changed, 9 insertions, 8 deletions
diff --git a/board/gandof/board.c b/board/gandof/board.c
index 49d8cc187d..28dd10adaa 100644
--- a/board/gandof/board.c
+++ b/board/gandof/board.c
@@ -36,7 +36,7 @@
#include "gpio_list.h"
#ifdef CONFIG_FAN_RPM_CUSTOM
-#define NUM_FAN_LEVELS 6
+#define NUM_FAN_LEVELS 7
struct fan_step {
int on;
@@ -47,11 +47,12 @@ struct fan_step {
/* Do not make the fan on/off point equal to 0 or 100 */
const struct fan_step fan_table[NUM_FAN_LEVELS] = {
{.rpm = 0},
- {.on = 11, .off = 2, .rpm = 4200},
- {.on = 36, .off = 25, .rpm = 5000},
- {.on = 58, .off = 47, .rpm = 5700},
- {.on = 77, .off = 69, .rpm = 6400},
- {.on = 97, .off = 88, .rpm = 7100},
+ {.on = 11, .off = 2, .rpm = 3800},
+ {.on = 21, .off = 16, .rpm = 4500},
+ {.on = 40, .off = 30, .rpm = 4900},
+ {.on = 59, .off = 50, .rpm = 5400},
+ {.on = 76, .off = 69, .rpm = 6000},
+ {.on = 97, .off = 80, .rpm = 7100},
};
int fan_percent_to_rpm(int fan, int pct)
@@ -140,7 +141,7 @@ BUILD_ASSERT(ARRAY_SIZE(pwm_channels) == PWM_CH_COUNT);
/* Physical fans. These are logically separate from pwm_channels. */
const struct fan_t fans[] = {
{.flags = FAN_USE_RPM_MODE,
- .rpm_min = 4200,
+ .rpm_min = 3800,
.rpm_max = 7100,
.ch = 2,
.pgood_gpio = GPIO_PP5000_PGOOD,
@@ -172,7 +173,7 @@ BUILD_ASSERT(ARRAY_SIZE(temp_sensors) == TEMP_SENSOR_COUNT);
*/
struct ec_thermal_config thermal_params[] = {
/* Only the AP affects the thermal limits and fan speed. */
- {{C_TO_K(66), C_TO_K(80), C_TO_K(100)}, C_TO_K(26), C_TO_K(62)},
+ {{C_TO_K(76), C_TO_K(80), C_TO_K(100)}, C_TO_K(28), C_TO_K(70)},
{{0, 0, 0}, 0, 0},
{{0, 0, 0}, 0, 0},
{{0, 0, 0}, 0, 0},