diff options
Diffstat (limited to 'board/yorp')
-rw-r--r-- | board/yorp/board.c | 8 | ||||
-rw-r--r-- | board/yorp/board.h | 1 |
2 files changed, 7 insertions, 2 deletions
diff --git a/board/yorp/board.c b/board/yorp/board.c index 20859d25c1..5ae80986b4 100644 --- a/board/yorp/board.c +++ b/board/yorp/board.c @@ -134,7 +134,9 @@ const int usb_port_enable[USB_PORT_COUNT] = { static void chipset_pre_init(void) { /* Enable 5.0V and 3.3V rails, and wait for Power Good */ - gpio_set_level(GPIO_EN_PP5000, 1); +#ifdef HAS_TASK_CHIPSET + power_5v_enable(task_get_current(), 1); +#endif gpio_set_level(GPIO_EN_PP3300, 1); while (!gpio_get_level(GPIO_PP5000_PG) || !gpio_get_level(GPIO_PP3300_PG)) @@ -168,7 +170,9 @@ void chipset_do_shutdown(void) gpio_set_level(GPIO_PMIC_EN, 0); /* Disable 5.0V and 3.3V rails, and wait until they power down. */ - gpio_set_level(GPIO_EN_PP5000, 0); +#ifdef HAS_TASK_CHIPSET + power_5v_enable(task_get_current(), 0); +#endif gpio_set_level(GPIO_EN_PP3300, 0); while (gpio_get_level(GPIO_PP5000_PG) || gpio_get_level(GPIO_PP3300_PG)) diff --git a/board/yorp/board.h b/board/yorp/board.h index ba862b49e9..be23cb116e 100644 --- a/board/yorp/board.h +++ b/board/yorp/board.h @@ -146,6 +146,7 @@ #define CONFIG_POWER_TRACK_HOST_SLEEP_STATE #define CONFIG_POWER_BUTTON #define CONFIG_POWER_BUTTON_X86 +#define CONFIG_POWER_PP5000_CONTROL #define CONFIG_EXTPOWER_GPIO #undef CONFIG_EXTPOWER_DEBOUNCE_MS /* |