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)  * wm5102.h  --  WM5102 MFD internals
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  4)  *
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  5)  * Copyright 2012 Wolfson Microelectronics plc
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  6)  *
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  7)  * Author: Mark Brown <broonie@opensource.wolfsonmicro.com>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  8)  */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  9) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 10) #ifndef _WM5102_H
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 11) #define _WM5102_H
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 12) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 13) #include <linux/of.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 14) #include <linux/regmap.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 15) #include <linux/pm.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 16) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 17) extern const struct regmap_config wm5102_i2c_regmap;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 18) extern const struct regmap_config wm5102_spi_regmap;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 19) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 20) extern const struct regmap_config wm5110_i2c_regmap;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 21) extern const struct regmap_config wm5110_spi_regmap;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 22) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 23) extern const struct regmap_config cs47l24_spi_regmap;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 24) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 25) extern const struct regmap_config wm8997_i2c_regmap;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 26) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 27) extern const struct regmap_config wm8998_i2c_regmap;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 28) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 29) extern const struct dev_pm_ops arizona_pm_ops;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 30) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 31) extern const struct of_device_id arizona_of_match[];
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 32) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 33) extern const struct regmap_irq_chip wm5102_aod;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 34) extern const struct regmap_irq_chip wm5102_irq;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 35) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 36) extern const struct regmap_irq_chip wm5110_aod;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 37) extern const struct regmap_irq_chip wm5110_irq;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 38) extern const struct regmap_irq_chip wm5110_revd_irq;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 39) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 40) extern const struct regmap_irq_chip cs47l24_irq;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 41) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 42) extern const struct regmap_irq_chip wm8997_aod;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 43) extern const struct regmap_irq_chip wm8997_irq;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 44) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 45) extern struct regmap_irq_chip wm8998_aod;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 46) extern struct regmap_irq_chip wm8998_irq;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 47) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 48) int arizona_dev_init(struct arizona *arizona);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 49) int arizona_dev_exit(struct arizona *arizona);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 50) int arizona_irq_init(struct arizona *arizona);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 51) int arizona_irq_exit(struct arizona *arizona);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 52) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 53) #ifdef CONFIG_OF
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 54) unsigned long arizona_of_get_type(struct device *dev);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 55) #else
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 56) static inline unsigned long arizona_of_get_type(struct device *dev)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 57) {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 58) 	return 0;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 59) }
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 60) #endif
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 61) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 62) #endif