accel/amdxdna: Return error when setting clock failed for npu1
[drm/drm-misc.git] / include / soc / rockchip / pm_domains.h
blob7dbd941fc937154d834b9c6f803320296743a390
1 /* SPDX-License-Identifier: GPL-2.0 */
2 /*
3 * Copyright 2022, The Chromium OS Authors. All rights reserved.
4 */
6 #ifndef __SOC_ROCKCHIP_PM_DOMAINS_H__
7 #define __SOC_ROCKCHIP_PM_DOMAINS_H__
9 #ifdef CONFIG_ROCKCHIP_PM_DOMAINS
11 int rockchip_pmu_block(void);
12 void rockchip_pmu_unblock(void);
14 #else /* CONFIG_ROCKCHIP_PM_DOMAINS */
16 static inline int rockchip_pmu_block(void)
18 return 0;
21 static inline void rockchip_pmu_unblock(void) { }
23 #endif /* CONFIG_ROCKCHIP_PM_DOMAINS */
25 #endif /* __SOC_ROCKCHIP_PM_DOMAINS_H__ */