diff options
author | Caveh Jalali <caveh@chromium.org> | 2022-05-18 18:47:24 -0700 |
---|---|---|
committer | Chromeos LUCI <chromeos-scoped@luci-project-accounts.iam.gserviceaccount.com> | 2022-05-19 16:23:29 +0000 |
commit | f4290a1853ecc769a15fbb21daa003d2ee02b42b (patch) | |
tree | e37ce828aadaace7df5964a560f5a953ac429a83 | |
parent | 5929cd5b07ea687ee804e2fc2ab8a6312fc083d1 (diff) | |
download | chrome-ec-f4290a1853ecc769a15fbb21daa003d2ee02b42b.tar.gz |
ghost: enable second fan
This controls the 2nd fan in sync with the 1st fan. There is no fancy
fan control logic yet, so we treat them the same.
BRANCH=none
BUG=b:230813416
TEST=make passes
Change-Id: I2a221d7725c9c3a4c38d50b8fcdaba1d2a9b5dae
Signed-off-by: Caveh Jalali <caveh@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3654947
Reviewed-by: Jack Rosenthal <jrosenth@chromium.org>
Commit-Queue: Jack Rosenthal <jrosenth@chromium.org>
-rw-r--r-- | board/ghost/fans.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/board/ghost/fans.c b/board/ghost/fans.c index 7ef46fa75b..375ea9a669 100644 --- a/board/ghost/fans.c +++ b/board/ghost/fans.c @@ -31,6 +31,8 @@ static void fan_slow(void) pwm_enable(PWM_CH_FAN1, 1); pwm_set_duty(PWM_CH_FAN1, duty_pct); + pwm_enable(PWM_CH_FAN2, 1); + pwm_set_duty(PWM_CH_FAN2, duty_pct); } static void fan_max(void) @@ -41,6 +43,8 @@ static void fan_max(void) pwm_enable(PWM_CH_FAN1, 1); pwm_set_duty(PWM_CH_FAN1, duty_pct); + pwm_enable(PWM_CH_FAN2, 1); + pwm_set_duty(PWM_CH_FAN2, duty_pct); } DECLARE_HOOK(HOOK_INIT, fan_slow, HOOK_PRIO_DEFAULT); |