blob: 66d6092d085154d45851f33eecc2a3677492f463 [file] [log] [blame]
Thomas Gleixnerd2912cb2019-06-04 10:11:33 +02001/* SPDX-License-Identifier: GPL-2.0-only */
Mark Brown3cc72982012-06-19 16:31:53 +01002/*
3 * wm5102.h -- WM5102 MFD internals
4 *
5 * Copyright 2012 Wolfson Microelectronics plc
6 *
7 * Author: Mark Brown <broonie@opensource.wolfsonmicro.com>
Mark Brown3cc72982012-06-19 16:31:53 +01008 */
9
10#ifndef _WM5102_H
11#define _WM5102_H
12
Mark Brownd7810092013-03-25 00:11:27 +000013#include <linux/of.h>
Mark Brown3cc72982012-06-19 16:31:53 +010014#include <linux/regmap.h>
15#include <linux/pm.h>
16
Mark Brown3cc72982012-06-19 16:31:53 +010017extern const struct regmap_config wm5102_i2c_regmap;
18extern const struct regmap_config wm5102_spi_regmap;
Mark Browne102bef2012-07-10 12:37:58 +010019
20extern const struct regmap_config wm5110_i2c_regmap;
21extern const struct regmap_config wm5110_spi_regmap;
22
Richard Fitzgeraldea1f3332015-11-03 15:08:32 +000023extern const struct regmap_config cs47l24_spi_regmap;
24
Charles Keepaxdc7d4862013-06-13 09:43:29 +010025extern const struct regmap_config wm8997_i2c_regmap;
26
Richard Fitzgerald6887b042015-07-03 16:16:35 +010027extern const struct regmap_config wm8998_i2c_regmap;
28
Mark Brown3cc72982012-06-19 16:31:53 +010029extern const struct dev_pm_ops arizona_pm_ops;
30
31extern const struct regmap_irq_chip wm5102_aod;
32extern const struct regmap_irq_chip wm5102_irq;
33
Mark Browne102bef2012-07-10 12:37:58 +010034extern const struct regmap_irq_chip wm5110_aod;
35extern const struct regmap_irq_chip wm5110_irq;
Charles Keepax32155012014-07-15 11:21:48 +010036extern const struct regmap_irq_chip wm5110_revd_irq;
Mark Browne102bef2012-07-10 12:37:58 +010037
Richard Fitzgeraldea1f3332015-11-03 15:08:32 +000038extern const struct regmap_irq_chip cs47l24_irq;
39
Charles Keepaxdc7d4862013-06-13 09:43:29 +010040extern const struct regmap_irq_chip wm8997_aod;
41extern const struct regmap_irq_chip wm8997_irq;
42
Richard Fitzgerald6887b042015-07-03 16:16:35 +010043extern struct regmap_irq_chip wm8998_aod;
44extern struct regmap_irq_chip wm8998_irq;
45
Mark Brown3cc72982012-06-19 16:31:53 +010046int arizona_dev_init(struct arizona *arizona);
47int arizona_dev_exit(struct arizona *arizona);
48int arizona_irq_init(struct arizona *arizona);
49int arizona_irq_exit(struct arizona *arizona);
50
Mark Brown3cc72982012-06-19 16:31:53 +010051#endif