2020-08-17 15:10:33 +08:00
|
|
|
/* SPDX-License-Identifier: GPL-2.0 */
|
2020-08-17 15:10:30 +08:00
|
|
|
/*
|
|
|
|
* Header file for device driver Hi6421 PMIC
|
|
|
|
*
|
|
|
|
* Copyright (c) 2013 Linaro Ltd.
|
|
|
|
* Copyright (C) 2011 Hisilicon.
|
2021-01-30 03:51:55 +08:00
|
|
|
* Copyright (c) 2020-2021 Huawei Technologies Co., Ltd
|
2020-08-17 15:10:30 +08:00
|
|
|
*
|
|
|
|
* Guodong Xu <guodong.xu@linaro.org>
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef __HISI_PMIC_H
|
|
|
|
#define __HISI_PMIC_H
|
|
|
|
|
|
|
|
#include <linux/irqdomain.h>
|
2021-01-30 03:51:47 +08:00
|
|
|
#include <linux/regmap.h>
|
2020-08-17 15:10:30 +08:00
|
|
|
|
2020-08-17 15:10:38 +08:00
|
|
|
struct hi6421_spmi_pmic {
|
|
|
|
struct resource *res;
|
|
|
|
struct device *dev;
|
|
|
|
void __iomem *regs;
|
|
|
|
spinlock_t lock;
|
|
|
|
struct irq_domain *domain;
|
|
|
|
int irq;
|
|
|
|
int gpio;
|
|
|
|
unsigned int *irqs;
|
2021-01-30 03:51:49 +08:00
|
|
|
struct regmap *regmap;
|
2020-08-17 15:10:30 +08:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif /* __HISI_PMIC_H */
|