1/*
2 * MFD internals for Cirrus Logic Madera codecs
3 *
4 * Copyright 2015-2018 Cirrus Logic
5 *
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License version 2 as
8 * published by the Free Software Foundation.
9 */
10
11#ifndef MADERA_MFD_H
12#define MADERA_MFD_H
13
14#include <linux/of.h>
15#include <linux/pm.h>
16
17struct madera;
18
19extern const struct dev_pm_ops madera_pm_ops;
20extern const struct of_device_id madera_of_match[];
21
22int madera_dev_init(struct madera *madera);
23int madera_dev_exit(struct madera *madera);
24
25const char *madera_name_from_type(enum madera_type type);
26
27extern const struct regmap_config cs47l35_16bit_spi_regmap;
28extern const struct regmap_config cs47l35_32bit_spi_regmap;
29extern const struct regmap_config cs47l35_16bit_i2c_regmap;
30extern const struct regmap_config cs47l35_32bit_i2c_regmap;
31int cs47l35_patch(struct madera *madera);
32
33extern const struct regmap_config cs47l85_16bit_spi_regmap;
34extern const struct regmap_config cs47l85_32bit_spi_regmap;
35extern const struct regmap_config cs47l85_16bit_i2c_regmap;
36extern const struct regmap_config cs47l85_32bit_i2c_regmap;
37int cs47l85_patch(struct madera *madera);
38
39extern const struct regmap_config cs47l90_16bit_spi_regmap;
40extern const struct regmap_config cs47l90_32bit_spi_regmap;
41extern const struct regmap_config cs47l90_16bit_i2c_regmap;
42extern const struct regmap_config cs47l90_32bit_i2c_regmap;
43int cs47l90_patch(struct madera *madera);
44#endif
45