mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-28 11:18:45 +07:00
af873fcece
Based on 1 normalized pattern(s): license terms gnu general public license gpl version 2 extracted by the scancode license scanner the SPDX license identifier GPL-2.0-only has been chosen to replace the boilerplate/reference in 161 file(s). Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Reviewed-by: Allison Randal <allison@lohutok.net> Reviewed-by: Alexios Zavras <alexios.zavras@intel.com> Reviewed-by: Steve Winslow <swinslow@gmail.com> Reviewed-by: Richard Fontana <rfontana@redhat.com> Cc: linux-spdx@vger.kernel.org Link: https://lkml.kernel.org/r/20190528170027.447718015@linutronix.de Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
45 lines
816 B
C
45 lines
816 B
C
/* SPDX-License-Identifier: GPL-2.0-only */
|
|
/*
|
|
* Header for ZTE's Power Domain Driver support
|
|
*
|
|
* Copyright (C) 2017 ZTE Ltd.
|
|
*
|
|
* Author: Baoyou Xie <baoyou.xie@linaro.org>
|
|
*/
|
|
|
|
#ifndef __ZTE_ZX2967_PM_DOMAIN_H
|
|
#define __ZTE_ZX2967_PM_DOMAIN_H
|
|
|
|
#include <linux/platform_device.h>
|
|
#include <linux/pm_domain.h>
|
|
|
|
enum {
|
|
REG_CLKEN,
|
|
REG_ISOEN,
|
|
REG_RSTEN,
|
|
REG_PWREN,
|
|
REG_PWRDN,
|
|
REG_ACK_SYNC,
|
|
|
|
/* The size of the array - must be last */
|
|
REG_ARRAY_SIZE,
|
|
};
|
|
|
|
enum zx2967_power_polarity {
|
|
PWREN,
|
|
PWRDN,
|
|
};
|
|
|
|
struct zx2967_pm_domain {
|
|
struct generic_pm_domain dm;
|
|
const u16 bit;
|
|
const enum zx2967_power_polarity polarity;
|
|
const u16 *reg_offset;
|
|
};
|
|
|
|
int zx2967_pd_probe(struct platform_device *pdev,
|
|
struct generic_pm_domain **zx_pm_domains,
|
|
int domain_num);
|
|
|
|
#endif /* __ZTE_ZX2967_PM_DOMAIN_H */
|