Lines Matching +full:palmas +full:- +full:gpadc
1 /* SPDX-License-Identifier: GPL-2.0-or-later */
3 * TI Palmas
5 * Copyright 2011-2013 Texas Instruments Inc.
18 #include <linux/extcon-provider.h>
29 #define TPS65917_RESERVED -1
36 * Palmas PMIC feature types
38 * PALMAS_PMIC_FEATURE_SMPS10_BOOST - used when the PMIC provides SMPS10_BOOST
41 * PALMAS_PMIC_HAS(b, f) - macro to check if a bandgap device is capable of a
42 * specific feature (above) or not. Return non-zero, if yes.
46 ((b)->features & PALMAS_PMIC_FEATURE_ ## f)
61 struct palmas { struct
81 struct palmas_gpadc *gpadc; member
271 * Palmas device resources can be controlled externally for
416 #define PALMAS_DATASHEET_NAME(_name) "palmas-gpadc-chan-"#_name
468 /* Define the palmas IRQ numbers */
510 /* Palmas GPADC Channels */
531 /* Palmas GPADC Channel0 Current Source */
539 /* Palmas GPADC Channel3 Current Source */
548 struct palmas *palmas; member
563 struct palmas *palmas; member
568 struct palmas *palmas; member
646 #define PALMAS_BASE_TO_SLAVE(x) ((x >> 8) - 1)
649 /* Base addresses of IP blocks in Palmas */
2870 /* Registers for function GPADC */
3018 /* Registers for function GPADC */
3036 /* TPS659038 regen2_ctrl offset iss different from palmas */
3751 static inline int palmas_read(struct palmas *palmas, unsigned int base, in palmas_read() argument
3757 return regmap_read(palmas->regmap[slave_id], addr, val); in palmas_read()
3760 static inline int palmas_write(struct palmas *palmas, unsigned int base, in palmas_write() argument
3766 return regmap_write(palmas->regmap[slave_id], addr, value); in palmas_write()
3769 static inline int palmas_bulk_write(struct palmas *palmas, unsigned int base, in palmas_bulk_write() argument
3775 return regmap_bulk_write(palmas->regmap[slave_id], addr, in palmas_bulk_write()
3779 static inline int palmas_bulk_read(struct palmas *palmas, unsigned int base, in palmas_bulk_read() argument
3785 return regmap_bulk_read(palmas->regmap[slave_id], addr, in palmas_bulk_read()
3789 static inline int palmas_update_bits(struct palmas *palmas, unsigned int base, in palmas_update_bits() argument
3795 return regmap_update_bits(palmas->regmap[slave_id], addr, mask, val); in palmas_update_bits()
3798 static inline int palmas_irq_get_virq(struct palmas *palmas, int irq) in palmas_irq_get_virq() argument
3800 return regmap_irq_get_virq(palmas->irq_data, irq); in palmas_irq_get_virq()
3804 int palmas_ext_control_req_config(struct palmas *palmas,