summaryrefslogtreecommitdiff
path: root/board/osiris/fans.c
diff options
context:
space:
mode:
Diffstat (limited to 'board/osiris/fans.c')
-rw-r--r--board/osiris/fans.c46
1 files changed, 4 insertions, 42 deletions
diff --git a/board/osiris/fans.c b/board/osiris/fans.c
index 27f5bca929..fa5a8dc09a 100644
--- a/board/osiris/fans.c
+++ b/board/osiris/fans.c
@@ -31,16 +31,16 @@ static const struct fan_conf fan_conf_0 = {
};
/*
- * TOOD(b/181271666): thermistor placement and calibration
+ * TODO(b/234545460): thermistor placement and calibration
*
* Prototype fan spins at about 4200 RPM at 100% PWM, this
* is specific to board ID 2 and might also apears in later
* boards as well.
*/
static const struct fan_rpm fan_rpm_0 = {
- .rpm_min = 2200,
- .rpm_start = 2200,
- .rpm_max = 4200,
+ .rpm_min = 3000,
+ .rpm_start = 3000,
+ .rpm_max = 6000,
};
const struct fan_t fans[FAN_CH_COUNT] = {
@@ -49,41 +49,3 @@ const struct fan_t fans[FAN_CH_COUNT] = {
.rpm = &fan_rpm_0,
},
};
-
-#ifndef CONFIG_FANS
-
-/*
- * TODO(b/181271666): use static fan speeds until fan and sensors are
- * tuned. for now, use:
- *
- * AP off: 33%
- * AP on: 100%
- */
-
-static void fan_slow(void)
-{
- const int duty_pct = 33;
-
- ccprints("%s: speed %d%%", __func__, duty_pct);
-
- pwm_enable(PWM_CH_FAN, 1);
- pwm_set_duty(PWM_CH_FAN, duty_pct);
-}
-
-static void fan_max(void)
-{
- const int duty_pct = 100;
-
- ccprints("%s: speed %d%%", __func__, duty_pct);
-
- pwm_enable(PWM_CH_FAN, 1);
- pwm_set_duty(PWM_CH_FAN, duty_pct);
-}
-
-DECLARE_HOOK(HOOK_INIT, fan_slow, HOOK_PRIO_DEFAULT);
-DECLARE_HOOK(HOOK_CHIPSET_SUSPEND, fan_slow, HOOK_PRIO_DEFAULT);
-DECLARE_HOOK(HOOK_CHIPSET_SHUTDOWN, fan_slow, HOOK_PRIO_DEFAULT);
-DECLARE_HOOK(HOOK_CHIPSET_RESET, fan_max, HOOK_PRIO_FIRST);
-DECLARE_HOOK(HOOK_CHIPSET_RESUME, fan_max, HOOK_PRIO_DEFAULT);
-
-#endif /* CONFIG_FANS */