Home
last modified time | relevance | path

Searched refs:palmas (Results 1 – 14 of 14) sorted by relevance

/linux-4.19.296/drivers/gpio/
Dgpio-palmas.c31 struct palmas *palmas; member
41 struct palmas *palmas = pg->palmas; in palmas_gpio_get() local
50 ret = palmas_read(palmas, PALMAS_GPIO_BASE, reg, &val); in palmas_gpio_get()
61 ret = palmas_read(palmas, PALMAS_GPIO_BASE, reg, &val); in palmas_gpio_get()
73 struct palmas *palmas = pg->palmas; in palmas_gpio_set() local
86 ret = palmas_write(palmas, PALMAS_GPIO_BASE, reg, BIT(offset)); in palmas_gpio_set()
95 struct palmas *palmas = pg->palmas; in palmas_gpio_output() local
106 ret = palmas_update_bits(palmas, PALMAS_GPIO_BASE, reg, in palmas_gpio_output()
117 struct palmas *palmas = pg->palmas; in palmas_gpio_input() local
125 ret = palmas_update_bits(palmas, PALMAS_GPIO_BASE, reg, BIT(offset), 0); in palmas_gpio_input()
[all …]
DMakefile127 obj-$(CONFIG_GPIO_PALMAS) += gpio-palmas.o
/linux-4.19.296/drivers/rtc/
Drtc-palmas.c51 struct palmas *palmas = dev_get_drvdata(dev->parent); in palmas_rtc_read_time() local
55 ret = palmas_update_bits(palmas, PALMAS_RTC_BASE, PALMAS_RTC_CTRL_REG, in palmas_rtc_read_time()
62 ret = palmas_bulk_read(palmas, PALMAS_RTC_BASE, PALMAS_SECONDS_REG, in palmas_rtc_read_time()
82 struct palmas *palmas = dev_get_drvdata(dev->parent); in palmas_rtc_set_time() local
93 ret = palmas_update_bits(palmas, PALMAS_RTC_BASE, PALMAS_RTC_CTRL_REG, in palmas_rtc_set_time()
100 ret = palmas_bulk_write(palmas, PALMAS_RTC_BASE, PALMAS_SECONDS_REG, in palmas_rtc_set_time()
108 ret = palmas_update_bits(palmas, PALMAS_RTC_BASE, PALMAS_RTC_CTRL_REG, in palmas_rtc_set_time()
117 struct palmas *palmas = dev_get_drvdata(dev->parent); in palmas_rtc_alarm_irq_enable() local
121 return palmas_write(palmas, PALMAS_RTC_BASE, in palmas_rtc_alarm_irq_enable()
129 struct palmas *palmas = dev_get_drvdata(dev->parent); in palmas_rtc_read_alarm() local
[all …]
DMakefile113 obj-$(CONFIG_RTC_DRV_PALMAS) += rtc-palmas.o
/linux-4.19.296/drivers/regulator/
Dpalmas-regulator.c403 static int palmas_smps_read(struct palmas *palmas, unsigned int reg, in palmas_smps_read() argument
410 return regmap_read(palmas->regmap[REGULATOR_SLAVE], addr, dest); in palmas_smps_read()
413 static int palmas_smps_write(struct palmas *palmas, unsigned int reg, in palmas_smps_write() argument
420 return regmap_write(palmas->regmap[REGULATOR_SLAVE], addr, value); in palmas_smps_write()
423 static int palmas_ldo_read(struct palmas *palmas, unsigned int reg, in palmas_ldo_read() argument
430 return regmap_read(palmas->regmap[REGULATOR_SLAVE], addr, dest); in palmas_ldo_read()
433 static int palmas_ldo_write(struct palmas *palmas, unsigned int reg, in palmas_ldo_write() argument
440 return regmap_write(palmas->regmap[REGULATOR_SLAVE], addr, value); in palmas_ldo_write()
448 struct palmas_pmic_driver_data *ddata = pmic->palmas->pmic_ddata; in palmas_set_mode_smps()
453 ret = palmas_smps_read(pmic->palmas, rinfo->ctrl_addr, &reg); in palmas_set_mode_smps()
[all …]
DMakefile84 obj-$(CONFIG_REGULATOR_PALMAS) += palmas-regulator.o
/linux-4.19.296/drivers/extcon/
Dextcon-palmas.c43 static void palmas_usb_wakeup(struct palmas *palmas, int enable) in palmas_usb_wakeup() argument
46 palmas_write(palmas, PALMAS_USB_OTG_BASE, PALMAS_USB_WAKEUP, in palmas_usb_wakeup()
49 palmas_write(palmas, PALMAS_USB_OTG_BASE, PALMAS_USB_WAKEUP, 0); in palmas_usb_wakeup()
58 palmas_read(palmas_usb->palmas, PALMAS_INTERRUPT_BASE, in palmas_vbus_irq_handler()
90 palmas_read(palmas_usb->palmas, PALMAS_USB_OTG_BASE, in palmas_id_irq_handler()
92 palmas_read(palmas_usb->palmas, PALMAS_USB_OTG_BASE, in palmas_id_irq_handler()
97 palmas_write(palmas_usb->palmas, PALMAS_USB_OTG_BASE, in palmas_id_irq_handler()
105 palmas_write(palmas_usb->palmas, PALMAS_USB_OTG_BASE, in palmas_id_irq_handler()
160 palmas_write(palmas_usb->palmas, PALMAS_USB_OTG_BASE, in palmas_enable_irq()
165 palmas_write(palmas_usb->palmas, PALMAS_USB_OTG_BASE, in palmas_enable_irq()
[all …]
DMakefile19 obj-$(CONFIG_EXTCON_PALMAS) += extcon-palmas.o
DKconfig115 detection by palmas usb.
/linux-4.19.296/drivers/clk/
Dclk-palmas.c45 struct palmas *palmas; member
66 ret = palmas_update_bits(cinfo->palmas, PALMAS_RESOURCE_BASE, in palmas_clks_prepare()
91 ret = palmas_update_bits(cinfo->palmas, PALMAS_RESOURCE_BASE, in palmas_clks_unprepare()
108 ret = palmas_read(cinfo->palmas, PALMAS_RESOURCE_BASE, in palmas_clks_is_prepared()
210 ret = palmas_update_bits(cinfo->palmas, PALMAS_RESOURCE_BASE, in palmas_clks_init_configure()
226 ret = palmas_ext_control_req_config(cinfo->palmas, in palmas_clks_init_configure()
241 struct palmas *palmas = dev_get_drvdata(pdev->dev.parent); in palmas_clks_probe() local
259 cinfo->palmas = palmas; in palmas_clks_probe()
DMakefile40 obj-$(CONFIG_COMMON_CLK_PALMAS) += clk-palmas.o
/linux-4.19.296/drivers/iio/adc/
Dpalmas_gpadc.c103 struct palmas *palmas; member
147 ret = palmas_update_bits(adc->palmas, PALMAS_GPADC_BASE, in palmas_disable_auto_conversion()
156 ret = palmas_update_bits(adc->palmas, PALMAS_GPADC_BASE, in palmas_disable_auto_conversion()
168 ret = palmas_update_bits(adc->palmas, PALMAS_GPADC_BASE, in palmas_disable_auto_conversion()
202 ret = palmas_update_bits(adc->palmas, PALMAS_INTERRUPT_BASE, in palmas_gpadc_start_mask_interrupt()
206 ret = palmas_update_bits(adc->palmas, PALMAS_INTERRUPT_BASE, in palmas_gpadc_start_mask_interrupt()
225 ret = palmas_update_bits(adc->palmas, PALMAS_GPADC_BASE, in palmas_gpadc_enable()
241 ret = palmas_update_bits(adc->palmas, PALMAS_GPADC_BASE, in palmas_gpadc_enable()
252 ret = palmas_update_bits(adc->palmas, PALMAS_GPADC_BASE, in palmas_gpadc_enable()
259 ret = palmas_write(adc->palmas, PALMAS_GPADC_BASE, in palmas_gpadc_enable()
[all …]
/linux-4.19.296/include/linux/mfd/
Dpalmas.h66 struct palmas { struct
553 struct palmas *palmas; member
569 struct palmas *palmas; member
574 struct palmas *palmas; member
3757 static inline int palmas_read(struct palmas *palmas, unsigned int base, in palmas_read() argument
3763 return regmap_read(palmas->regmap[slave_id], addr, val); in palmas_read()
3766 static inline int palmas_write(struct palmas *palmas, unsigned int base, in palmas_write() argument
3772 return regmap_write(palmas->regmap[slave_id], addr, value); in palmas_write()
3775 static inline int palmas_bulk_write(struct palmas *palmas, unsigned int base, in palmas_bulk_write() argument
3781 return regmap_bulk_write(palmas->regmap[slave_id], addr, in palmas_bulk_write()
[all …]
/linux-4.19.296/
DMAINTAINERS10638 F: drivers/mfd/palmas.c
10646 F: drivers/regulator/palmas-regulator*.c