hc
2024-02-19 1c055e55a242a33e574e48be530e06770a210dcd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
/* SPDX-License-Identifier: (GPL-2.0+ OR MIT) */
/*
 * Copyright (c) 2023 Rockchip Electronics Co., Ltd.
 */
 
#ifndef __ROCKCHIP_PM_CONFIG_H
#define __ROCKCHIP_PM_CONFIG_H
 
struct rk_sleep_config {
   u32 mode_config;
   u32 wakeup_config;
   u32 sleep_debug_en;
   u32 pwm_regulator_config;
   u32 *power_ctrl_config;
   u32 power_ctrl_config_cnt;
   u32 *sleep_io_config;
   u32 sleep_io_config_cnt;
   u32 apios_suspend;
   u32 io_ret_config;
   u32 sleep_pin_config[2];
};
 
#if IS_REACHABLE(CONFIG_ROCKCHIP_SUSPEND_MODE)
const struct rk_sleep_config *rockchip_get_cur_sleep_config(void);
#else
static inline const struct rk_sleep_config *rockchip_get_cur_sleep_config(void)
{
   return NULL;
}
#endif
 
#endif /* __ROCKCHIP_PM_CONFIG_H */