summaryrefslogtreecommitdiff
path: root/chip/lm4/fan.c
diff options
context:
space:
mode:
Diffstat (limited to 'chip/lm4/fan.c')
-rw-r--r--chip/lm4/fan.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/chip/lm4/fan.c b/chip/lm4/fan.c
index 955113ae57..8ec25bc1f8 100644
--- a/chip/lm4/fan.c
+++ b/chip/lm4/fan.c
@@ -165,10 +165,18 @@ void fan_channel_setup(int ch, unsigned int flags)
static void fan_init(void)
{
+
+#ifdef CONFIG_PWM_DSLEEP
+
+ /* Enable the fan module and delay a few clocks */
+ clock_enable_peripheral(CGC_OFFSET_FAN, 0x1, CGC_MODE_ALL);
+
+#else
+
/* Enable the fan module and delay a few clocks */
clock_enable_peripheral(CGC_OFFSET_FAN, 0x1,
CGC_MODE_RUN | CGC_MODE_SLEEP);
-
+#endif
/* Disable all fans */
LM4_FAN_FANCTL = 0;
}