Blame view
drivers/mfd/arizona.h
1.6 KB
d2912cb15
|
1 |
/* SPDX-License-Identifier: GPL-2.0-only */ |
3cc729869
|
2 3 4 5 6 7 |
/* * wm5102.h -- WM5102 MFD internals * * Copyright 2012 Wolfson Microelectronics plc * * Author: Mark Brown <broonie@opensource.wolfsonmicro.com> |
3cc729869
|
8 9 10 11 |
*/ #ifndef _WM5102_H #define _WM5102_H |
d781009ca
|
12 |
#include <linux/of.h> |
3cc729869
|
13 14 |
#include <linux/regmap.h> #include <linux/pm.h> |
3cc729869
|
15 16 |
extern const struct regmap_config wm5102_i2c_regmap; extern const struct regmap_config wm5102_spi_regmap; |
e102befe7
|
17 18 19 |
extern const struct regmap_config wm5110_i2c_regmap; extern const struct regmap_config wm5110_spi_regmap; |
ea1f33399
|
20 |
extern const struct regmap_config cs47l24_spi_regmap; |
dc7d48635
|
21 |
extern const struct regmap_config wm8997_i2c_regmap; |
6887b042c
|
22 |
extern const struct regmap_config wm8998_i2c_regmap; |
3cc729869
|
23 |
extern const struct dev_pm_ops arizona_pm_ops; |
d781009ca
|
24 |
extern const struct of_device_id arizona_of_match[]; |
3cc729869
|
25 26 |
extern const struct regmap_irq_chip wm5102_aod; extern const struct regmap_irq_chip wm5102_irq; |
e102befe7
|
27 28 |
extern const struct regmap_irq_chip wm5110_aod; extern const struct regmap_irq_chip wm5110_irq; |
3215501fc
|
29 |
extern const struct regmap_irq_chip wm5110_revd_irq; |
e102befe7
|
30 |
|
ea1f33399
|
31 |
extern const struct regmap_irq_chip cs47l24_irq; |
dc7d48635
|
32 33 |
extern const struct regmap_irq_chip wm8997_aod; extern const struct regmap_irq_chip wm8997_irq; |
6887b042c
|
34 35 |
extern struct regmap_irq_chip wm8998_aod; extern struct regmap_irq_chip wm8998_irq; |
3cc729869
|
36 37 38 39 |
int arizona_dev_init(struct arizona *arizona); int arizona_dev_exit(struct arizona *arizona); int arizona_irq_init(struct arizona *arizona); int arizona_irq_exit(struct arizona *arizona); |
d781009ca
|
40 |
#ifdef CONFIG_OF |
942786e6e
|
41 |
unsigned long arizona_of_get_type(struct device *dev); |
d781009ca
|
42 |
#else |
942786e6e
|
43 |
static inline unsigned long arizona_of_get_type(struct device *dev) |
d781009ca
|
44 45 46 47 |
{ return 0; } #endif |
3cc729869
|
48 |
#endif |