1 /* SPDX-License-Identifier: GPL-2.0 */
2 /*
3  * Copyright 2022, The Chromium OS Authors. All rights reserved.
4  */
5 
6 #ifndef __SOC_ROCKCHIP_PM_DOMAINS_H__
7 #define __SOC_ROCKCHIP_PM_DOMAINS_H__
8 
9 #ifdef CONFIG_ROCKCHIP_PM_DOMAINS
10 
11 int rockchip_pmu_block(void);
12 void rockchip_pmu_unblock(void);
13 
14 #else /* CONFIG_ROCKCHIP_PM_DOMAINS */
15 
rockchip_pmu_block(void)16 static inline int rockchip_pmu_block(void)
17 {
18 	return 0;
19 }
20 
rockchip_pmu_unblock(void)21 static inline void rockchip_pmu_unblock(void) { }
22 
23 #endif /* CONFIG_ROCKCHIP_PM_DOMAINS */
24 
25 #endif /* __SOC_ROCKCHIP_PM_DOMAINS_H__ */
26