summaryrefslogtreecommitdiff
path: root/chip/lm4/pwm_fan.c
diff options
context:
space:
mode:
Diffstat (limited to 'chip/lm4/pwm_fan.c')
-rw-r--r--chip/lm4/pwm_fan.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/chip/lm4/pwm_fan.c b/chip/lm4/pwm_fan.c
index 99644eddb3..6309867dae 100644
--- a/chip/lm4/pwm_fan.c
+++ b/chip/lm4/pwm_fan.c
@@ -274,8 +274,8 @@ static void pwm_fan_init(void)
int i;
/* Enable the fan module and delay a few clocks */
- clock_enable_peripheral(CGC_OFFSET_FAN, 0x1,
- CGC_MODE_RUN | CGC_MODE_SLEEP);
+ LM4_SYSTEM_RCGCFAN = 1;
+ clock_wait_cycles(3);
/* Configure GPIOs */
gpio_config_module(MODULE_PWM_FAN, 1);