2019-06-04 10:11:33 +02:00
|
|
|
/* SPDX-License-Identifier: GPL-2.0-only */
|
2018-05-21 11:59:56 +02:00
|
|
|
/*
|
|
|
|
* MFD internals for Cirrus Logic Madera codecs
|
|
|
|
*
|
|
|
|
* Copyright 2015-2018 Cirrus Logic
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef MADERA_MFD_H
|
|
|
|
#define MADERA_MFD_H
|
|
|
|
|
|
|
|
#include <linux/of.h>
|
|
|
|
#include <linux/pm.h>
|
|
|
|
|
|
|
|
struct madera;
|
|
|
|
|
|
|
|
extern const struct dev_pm_ops madera_pm_ops;
|
|
|
|
extern const struct of_device_id madera_of_match[];
|
|
|
|
|
|
|
|
int madera_dev_init(struct madera *madera);
|
|
|
|
int madera_dev_exit(struct madera *madera);
|
|
|
|
|
|
|
|
const char *madera_name_from_type(enum madera_type type);
|
|
|
|
|
2019-05-30 16:39:52 +02:00
|
|
|
extern const struct regmap_config cs47l15_16bit_spi_regmap;
|
|
|
|
extern const struct regmap_config cs47l15_32bit_spi_regmap;
|
|
|
|
extern const struct regmap_config cs47l15_16bit_i2c_regmap;
|
|
|
|
extern const struct regmap_config cs47l15_32bit_i2c_regmap;
|
|
|
|
int cs47l15_patch(struct madera *madera);
|
|
|
|
|
2018-05-21 11:59:56 +02:00
|
|
|
extern const struct regmap_config cs47l35_16bit_spi_regmap;
|
|
|
|
extern const struct regmap_config cs47l35_32bit_spi_regmap;
|
|
|
|
extern const struct regmap_config cs47l35_16bit_i2c_regmap;
|
|
|
|
extern const struct regmap_config cs47l35_32bit_i2c_regmap;
|
|
|
|
int cs47l35_patch(struct madera *madera);
|
|
|
|
|
|
|
|
extern const struct regmap_config cs47l85_16bit_spi_regmap;
|
|
|
|
extern const struct regmap_config cs47l85_32bit_spi_regmap;
|
|
|
|
extern const struct regmap_config cs47l85_16bit_i2c_regmap;
|
|
|
|
extern const struct regmap_config cs47l85_32bit_i2c_regmap;
|
|
|
|
int cs47l85_patch(struct madera *madera);
|
|
|
|
|
|
|
|
extern const struct regmap_config cs47l90_16bit_spi_regmap;
|
|
|
|
extern const struct regmap_config cs47l90_32bit_spi_regmap;
|
|
|
|
extern const struct regmap_config cs47l90_16bit_i2c_regmap;
|
|
|
|
extern const struct regmap_config cs47l90_32bit_i2c_regmap;
|
|
|
|
int cs47l90_patch(struct madera *madera);
|
2019-05-30 16:39:53 +02:00
|
|
|
|
|
|
|
extern const struct regmap_config cs47l92_16bit_spi_regmap;
|
|
|
|
extern const struct regmap_config cs47l92_32bit_spi_regmap;
|
|
|
|
extern const struct regmap_config cs47l92_16bit_i2c_regmap;
|
|
|
|
extern const struct regmap_config cs47l92_32bit_i2c_regmap;
|
|
|
|
int cs47l92_patch(struct madera *madera);
|
|
|
|
|
2018-05-21 11:59:56 +02:00
|
|
|
#endif
|