1 /* SPDX-License-Identifier: GPL-2.0-only */
3 * Header for ZTE's Power Domain Driver support
5 * Copyright (C) 2017 ZTE Ltd.
7 * Author: Baoyou Xie <baoyou.xie@linaro.org>
10 #ifndef __ZTE_ZX2967_PM_DOMAIN_H
11 #define __ZTE_ZX2967_PM_DOMAIN_H
13 #include <linux/platform_device.h>
14 #include <linux/pm_domain.h>
24 /* The size of the array - must be last */
28 enum zx2967_power_polarity
{
33 struct zx2967_pm_domain
{
34 struct generic_pm_domain dm
;
36 const enum zx2967_power_polarity polarity
;
37 const u16
*reg_offset
;
40 int zx2967_pd_probe(struct platform_device
*pdev
,
41 struct generic_pm_domain
**zx_pm_domains
,
44 #endif /* __ZTE_ZX2967_PM_DOMAIN_H */