1 /* SPDX-License-Identifier: GPL-2.0 */ 1 /* SPDX-License-Identifier: GPL-2.0 */ 2 /* 2 /* 3 * Copyright 2022, The Chromium OS Authors. Al 3 * Copyright 2022, The Chromium OS Authors. All rights reserved. 4 */ 4 */ 5 5 6 #ifndef __SOC_ROCKCHIP_PM_DOMAINS_H__ 6 #ifndef __SOC_ROCKCHIP_PM_DOMAINS_H__ 7 #define __SOC_ROCKCHIP_PM_DOMAINS_H__ 7 #define __SOC_ROCKCHIP_PM_DOMAINS_H__ 8 8 9 #ifdef CONFIG_ROCKCHIP_PM_DOMAINS 9 #ifdef CONFIG_ROCKCHIP_PM_DOMAINS 10 10 11 int rockchip_pmu_block(void); 11 int rockchip_pmu_block(void); 12 void rockchip_pmu_unblock(void); 12 void rockchip_pmu_unblock(void); 13 13 14 #else /* CONFIG_ROCKCHIP_PM_DOMAINS */ 14 #else /* CONFIG_ROCKCHIP_PM_DOMAINS */ 15 15 16 static inline int rockchip_pmu_block(void) 16 static inline int rockchip_pmu_block(void) 17 { 17 { 18 return 0; 18 return 0; 19 } 19 } 20 20 21 static inline void rockchip_pmu_unblock(void) 21 static inline void rockchip_pmu_unblock(void) { } 22 22 23 #endif /* CONFIG_ROCKCHIP_PM_DOMAINS */ 23 #endif /* CONFIG_ROCKCHIP_PM_DOMAINS */ 24 24 25 #endif /* __SOC_ROCKCHIP_PM_DOMAINS_H__ */ 25 #endif /* __SOC_ROCKCHIP_PM_DOMAINS_H__ */ 26 26
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.