mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2025-01-01 10:45:49 +00:00
297939901f
This patch adds all the core support and defines for the Cirrus Logic CS42L92, CS47L92 and CS47L93 smart audio CODECs. Registers or fields are named MADERA_* if it is part of the common hardware platform and does not conflict with any other Madera codecs. It is named CS47L15_* if it is unique to CS47L15 and conflicts with definitions on other codecs. Signed-off-by: Stuart Henderson <stuarth@opensource.cirrus.com> Signed-off-by: Richard Fitzgerald <rf@opensource.cirrus.com> Signed-off-by: Charles Keepax <ckeepax@opensource.cirrus.com> Signed-off-by: Lee Jones <lee.jones@linaro.org>
58 lines
2.0 KiB
C
58 lines
2.0 KiB
C
/*
|
|
* MFD internals for Cirrus Logic Madera codecs
|
|
*
|
|
* Copyright 2015-2018 Cirrus Logic
|
|
*
|
|
* This program is free software; you can redistribute it and/or modify
|
|
* it under the terms of the GNU General Public License version 2 as
|
|
* published by the Free Software Foundation.
|
|
*/
|
|
|
|
#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);
|
|
|
|
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);
|
|
|
|
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);
|
|
|
|
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);
|
|
|
|
#endif
|