blob: fb70248338836efdcae8fa9c7cbea4bbece8df02 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
/* Copyright 2022 The ChromiumOS Authors
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#include "system.h"
#include <zephyr/drivers/gpio.h>
/* Geralt board specific hibernate implementation */
__override void board_hibernate_late(void)
{
gpio_pin_set_dt(GPIO_DT_FROM_NODELABEL(en_pp5000_z1_l), 1);
/* It takes around 30ms to release the PP5000 capacitance. */
udelay(30 * MSEC);
gpio_pin_set_dt(GPIO_DT_FROM_NODELABEL(en_ulp), 1);
}
|