diff options
-rw-r--r-- | baseboard/volteer/baseboard.c | 16 | ||||
-rw-r--r-- | board/volteer/gpio.inc | 2 |
2 files changed, 18 insertions, 0 deletions
diff --git a/baseboard/volteer/baseboard.c b/baseboard/volteer/baseboard.c index a5057c4396..4565822977 100644 --- a/baseboard/volteer/baseboard.c +++ b/baseboard/volteer/baseboard.c @@ -343,3 +343,19 @@ void board_overcurrent_event(int port, int is_overcurrented) /* TODO: b/140561826 - check correct operation for Volteer */ } +/* + * Enable fan for 100% speed when AP is powered on. + * TODO: b/ remove this once PWM control is working. + */ +static void board_chipset_startup(void) +{ + gpio_set_level_verbose(CC_SYSTEM, GPIO_EN_PP5000_FAN, 1); +} +DECLARE_HOOK(HOOK_CHIPSET_STARTUP, board_chipset_startup, HOOK_PRIO_DEFAULT); + +static void board_chipset_shutdown(void) +{ + gpio_set_level_verbose(CC_SYSTEM, GPIO_EN_PP5000_FAN, 0); +} +DECLARE_HOOK(HOOK_CHIPSET_SHUTDOWN, board_chipset_shutdown, HOOK_PRIO_DEFAULT); + diff --git a/board/volteer/gpio.inc b/board/volteer/gpio.inc index e8327b8e5e..3e6042b4b8 100644 --- a/board/volteer/gpio.inc +++ b/board/volteer/gpio.inc @@ -91,6 +91,8 @@ GPIO(EN_PP3300_AG, PIN(8, 5), GPIO_OUT_LOW) * default. */ GPIO(LED_SIDESEL_4_L, PIN(6, 0), GPIO_OUT_LOW) +GPIO(EN_PP5000_FAN, PIN(6, 1), GPIO_OUT_LOW) + /* * eDP backlight - both PCH and EC have enable pins that must be high * for the backlight to turn on. Default state is high, and can be turned |