Linux 6.7-rc7
[linux-modified.git] / include / linux / mfd / rt5033.h
1 /* SPDX-License-Identifier: GPL-2.0-only */
2 /*
3  * MFD core driver for the RT5033
4  *
5  * Copyright (C) 2014 Samsung Electronics
6  * Author: Beomho Seo <beomho.seo@samsung.com>
7  */
8
9 #ifndef __RT5033_H__
10 #define __RT5033_H__
11
12 #include <linux/regulator/consumer.h>
13 #include <linux/i2c.h>
14 #include <linux/regmap.h>
15
16 /* RT5033 regulator IDs */
17 enum rt5033_regulators {
18         RT5033_BUCK = 0,
19         RT5033_LDO,
20         RT5033_SAFE_LDO,
21
22         RT5033_REGULATOR_NUM,
23 };
24
25 struct rt5033_dev {
26         struct device *dev;
27
28         struct regmap *regmap;
29         struct regmap_irq_chip_data *irq_data;
30         int irq;
31         bool wakeup;
32 };
33
34 #endif /* __RT5033_H__ */