Orange Pi5 kernel

Deprecated Linux kernel 5.10.110 for OrangePi 5/5B/5+ boards

3 Commits   0 Branches   0 Tags
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  1) /* SPDX-License-Identifier: GPL-2.0-only */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  2) /*
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  3)  * MFD internals for Cirrus Logic Madera codecs
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  4)  *
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  5)  * Copyright 2015-2018 Cirrus Logic
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  6)  */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  7) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  8) #ifndef MADERA_MFD_H
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  9) #define MADERA_MFD_H
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 10) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 11) #include <linux/of.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 12) #include <linux/pm.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 13) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 14) struct madera;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 15) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 16) extern const struct dev_pm_ops madera_pm_ops;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 17) extern const struct of_device_id madera_of_match[];
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 18) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 19) int madera_dev_init(struct madera *madera);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 20) int madera_dev_exit(struct madera *madera);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 21) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 22) const char *madera_name_from_type(enum madera_type type);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 23) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 24) extern const struct regmap_config cs47l15_16bit_spi_regmap;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 25) extern const struct regmap_config cs47l15_32bit_spi_regmap;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 26) extern const struct regmap_config cs47l15_16bit_i2c_regmap;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 27) extern const struct regmap_config cs47l15_32bit_i2c_regmap;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 28) int cs47l15_patch(struct madera *madera);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 29) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 30) extern const struct regmap_config cs47l35_16bit_spi_regmap;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 31) extern const struct regmap_config cs47l35_32bit_spi_regmap;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 32) extern const struct regmap_config cs47l35_16bit_i2c_regmap;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 33) extern const struct regmap_config cs47l35_32bit_i2c_regmap;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 34) int cs47l35_patch(struct madera *madera);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 35) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 36) extern const struct regmap_config cs47l85_16bit_spi_regmap;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 37) extern const struct regmap_config cs47l85_32bit_spi_regmap;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 38) extern const struct regmap_config cs47l85_16bit_i2c_regmap;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 39) extern const struct regmap_config cs47l85_32bit_i2c_regmap;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 40) int cs47l85_patch(struct madera *madera);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 41) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 42) extern const struct regmap_config cs47l90_16bit_spi_regmap;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 43) extern const struct regmap_config cs47l90_32bit_spi_regmap;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 44) extern const struct regmap_config cs47l90_16bit_i2c_regmap;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 45) extern const struct regmap_config cs47l90_32bit_i2c_regmap;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 46) int cs47l90_patch(struct madera *madera);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 47) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 48) extern const struct regmap_config cs47l92_16bit_spi_regmap;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 49) extern const struct regmap_config cs47l92_32bit_spi_regmap;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 50) extern const struct regmap_config cs47l92_16bit_i2c_regmap;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 51) extern const struct regmap_config cs47l92_32bit_i2c_regmap;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 52) int cs47l92_patch(struct madera *madera);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 53) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 54) #endif