Home
last modified time | relevance | path

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

/drivers/mfd/
Dpalmas.c324 int palmas_ext_control_req_config(struct palmas *palmas, in palmas_ext_control_req_config() argument
327 struct palmas_pmic_driver_data *pmic_ddata = palmas->pmic_ddata; in palmas_ext_control_req_config()
352 ret = palmas_update_bits(palmas, PALMAS_RESOURCE_BASE, in palmas_ext_control_req_config()
355 ret = palmas_update_bits(palmas, PALMAS_RESOURCE_BASE, in palmas_ext_control_req_config()
358 dev_err(palmas->dev, "Resource reg 0x%02x update failed %d\n", in palmas_ext_control_req_config()
364 ret = palmas_update_bits(palmas, PALMAS_PMU_CONTROL_BASE, in palmas_ext_control_req_config()
367 dev_err(palmas->dev, "POWER_CTRL register update failed %d\n", in palmas_ext_control_req_config()
423 static struct palmas *palmas_dev;
508 struct palmas *palmas; in palmas_i2c_probe() local
531 palmas = devm_kzalloc(&i2c->dev, sizeof(struct palmas), GFP_KERNEL); in palmas_i2c_probe()
[all …]
DMakefile216 obj-$(CONFIG_MFD_PALMAS) += palmas.o
/drivers/gpio/
Dgpio-palmas.c20 struct palmas *palmas; member
30 struct palmas *palmas = pg->palmas; in palmas_gpio_get() local
39 ret = palmas_read(palmas, PALMAS_GPIO_BASE, reg, &val); in palmas_gpio_get()
50 ret = palmas_read(palmas, PALMAS_GPIO_BASE, reg, &val); in palmas_gpio_get()
62 struct palmas *palmas = pg->palmas; in palmas_gpio_set() local
75 ret = palmas_write(palmas, PALMAS_GPIO_BASE, reg, BIT(offset)); in palmas_gpio_set()
84 struct palmas *palmas = pg->palmas; in palmas_gpio_output() local
95 ret = palmas_update_bits(palmas, PALMAS_GPIO_BASE, reg, in palmas_gpio_output()
106 struct palmas *palmas = pg->palmas; in palmas_gpio_input() local
114 ret = palmas_update_bits(palmas, PALMAS_GPIO_BASE, reg, BIT(offset), 0); in palmas_gpio_input()
[all …]
DMakefile112 obj-$(CONFIG_GPIO_PALMAS) += gpio-palmas.o
/drivers/rtc/
Drtc-palmas.c38 struct palmas *palmas = dev_get_drvdata(dev->parent); in palmas_rtc_read_time() local
42 ret = palmas_update_bits(palmas, PALMAS_RTC_BASE, PALMAS_RTC_CTRL_REG, in palmas_rtc_read_time()
49 ret = palmas_bulk_read(palmas, PALMAS_RTC_BASE, PALMAS_SECONDS_REG, in palmas_rtc_read_time()
69 struct palmas *palmas = dev_get_drvdata(dev->parent); in palmas_rtc_set_time() local
80 ret = palmas_update_bits(palmas, PALMAS_RTC_BASE, PALMAS_RTC_CTRL_REG, in palmas_rtc_set_time()
87 ret = palmas_bulk_write(palmas, PALMAS_RTC_BASE, PALMAS_SECONDS_REG, in palmas_rtc_set_time()
95 ret = palmas_update_bits(palmas, PALMAS_RTC_BASE, PALMAS_RTC_CTRL_REG, in palmas_rtc_set_time()
104 struct palmas *palmas = dev_get_drvdata(dev->parent); in palmas_rtc_alarm_irq_enable() local
108 return palmas_write(palmas, PALMAS_RTC_BASE, in palmas_rtc_alarm_irq_enable()
116 struct palmas *palmas = dev_get_drvdata(dev->parent); in palmas_rtc_read_alarm() local
[all …]
DMakefile116 obj-$(CONFIG_RTC_DRV_PALMAS) += rtc-palmas.o
/drivers/regulator/
Dpalmas-regulator.c398 static int palmas_smps_read(struct palmas *palmas, unsigned int reg, in palmas_smps_read() argument
405 return regmap_read(palmas->regmap[REGULATOR_SLAVE], addr, dest); in palmas_smps_read()
408 static int palmas_smps_write(struct palmas *palmas, unsigned int reg, in palmas_smps_write() argument
415 return regmap_write(palmas->regmap[REGULATOR_SLAVE], addr, value); in palmas_smps_write()
418 static int palmas_ldo_read(struct palmas *palmas, unsigned int reg, in palmas_ldo_read() argument
425 return regmap_read(palmas->regmap[REGULATOR_SLAVE], addr, dest); in palmas_ldo_read()
428 static int palmas_ldo_write(struct palmas *palmas, unsigned int reg, in palmas_ldo_write() argument
435 return regmap_write(palmas->regmap[REGULATOR_SLAVE], addr, value); in palmas_ldo_write()
443 struct palmas_pmic_driver_data *ddata = pmic->palmas->pmic_ddata; in palmas_set_mode_smps()
448 ret = palmas_smps_read(pmic->palmas, rinfo->ctrl_addr, &reg); in palmas_set_mode_smps()
[all …]
DMakefile108 obj-$(CONFIG_REGULATOR_PALMAS) += palmas-regulator.o
/drivers/extcon/
Dextcon-palmas.c33 static void palmas_usb_wakeup(struct palmas *palmas, int enable) in palmas_usb_wakeup() argument
36 palmas_write(palmas, PALMAS_USB_OTG_BASE, PALMAS_USB_WAKEUP, in palmas_usb_wakeup()
39 palmas_write(palmas, PALMAS_USB_OTG_BASE, PALMAS_USB_WAKEUP, 0); in palmas_usb_wakeup()
48 palmas_read(palmas_usb->palmas, PALMAS_INTERRUPT_BASE, in palmas_vbus_irq_handler()
80 palmas_read(palmas_usb->palmas, PALMAS_USB_OTG_BASE, in palmas_id_irq_handler()
82 palmas_read(palmas_usb->palmas, PALMAS_USB_OTG_BASE, in palmas_id_irq_handler()
87 palmas_write(palmas_usb->palmas, PALMAS_USB_OTG_BASE, in palmas_id_irq_handler()
95 palmas_write(palmas_usb->palmas, PALMAS_USB_OTG_BASE, in palmas_id_irq_handler()
150 palmas_write(palmas_usb->palmas, PALMAS_USB_OTG_BASE, in palmas_enable_irq()
155 palmas_write(palmas_usb->palmas, PALMAS_USB_OTG_BASE, in palmas_enable_irq()
[all …]
DMakefile20 obj-$(CONFIG_EXTCON_PALMAS) += extcon-palmas.o
DKconfig127 detection by palmas usb.
/drivers/clk/
Dclk-palmas.c37 struct palmas *palmas; member
58 ret = palmas_update_bits(cinfo->palmas, PALMAS_RESOURCE_BASE, in palmas_clks_prepare()
83 ret = palmas_update_bits(cinfo->palmas, PALMAS_RESOURCE_BASE, in palmas_clks_unprepare()
100 ret = palmas_read(cinfo->palmas, PALMAS_RESOURCE_BASE, in palmas_clks_is_prepared()
202 ret = palmas_update_bits(cinfo->palmas, PALMAS_RESOURCE_BASE, in palmas_clks_init_configure()
218 ret = palmas_ext_control_req_config(cinfo->palmas, in palmas_clks_init_configure()
233 struct palmas *palmas = dev_get_drvdata(pdev->dev.parent); in palmas_clks_probe() local
251 cinfo->palmas = palmas; in palmas_clks_probe()
DMakefile49 obj-$(CONFIG_COMMON_CLK_PALMAS) += clk-palmas.o
/drivers/iio/adc/
Dpalmas_gpadc.c105 struct palmas *palmas; member
150 ret = palmas_update_bits(adc->palmas, PALMAS_GPADC_BASE, in palmas_disable_auto_conversion()
159 ret = palmas_update_bits(adc->palmas, PALMAS_GPADC_BASE, in palmas_disable_auto_conversion()
171 ret = palmas_update_bits(adc->palmas, PALMAS_GPADC_BASE, in palmas_disable_auto_conversion()
205 ret = palmas_update_bits(adc->palmas, PALMAS_INTERRUPT_BASE, in palmas_gpadc_start_mask_interrupt()
209 ret = palmas_update_bits(adc->palmas, PALMAS_INTERRUPT_BASE, in palmas_gpadc_start_mask_interrupt()
228 ret = palmas_update_bits(adc->palmas, PALMAS_GPADC_BASE, in palmas_gpadc_enable()
244 ret = palmas_update_bits(adc->palmas, PALMAS_GPADC_BASE, in palmas_gpadc_enable()
255 ret = palmas_update_bits(adc->palmas, PALMAS_GPADC_BASE, in palmas_gpadc_enable()
262 ret = palmas_write(adc->palmas, PALMAS_GPADC_BASE, in palmas_gpadc_enable()
[all …]
/drivers/input/misc/
Dpalmas-pwrbutton.c40 struct palmas *palmas; member
69 error = palmas_read(pwron->palmas, PALMAS_INTERRUPT_BASE, in palmas_power_button_work()
164 struct palmas *palmas = dev_get_drvdata(pdev->dev.parent); in palmas_pwron_probe() local
197 error = palmas_update_bits(palmas, PALMAS_PMU_CONTROL_BASE, in palmas_pwron_probe()
207 pwron->palmas = palmas; in palmas_pwron_probe()
DMakefile56 obj-$(CONFIG_INPUT_PALMAS_PWRBUTTON) += palmas-pwrbutton.o
/drivers/pinctrl/
Dpinctrl-palmas.c78 struct palmas *palmas; member
586 ret = palmas_read(pci->palmas, g->mux_reg_base, in palmas_pinctrl_get_pin_mux()
606 ret = palmas_update_bits(pci->palmas, PALMAS_PU_PD_OD_BASE, in palmas_pinctrl_set_dvfs1()
621 ret = palmas_update_bits(pci->palmas, PALMAS_PU_PD_OD_BASE, in palmas_pinctrl_set_dvfs2()
731 ret = palmas_update_bits(pci->palmas, g->mux_reg_base, g->mux_reg_add, in palmas_pinctrl_set_mux()
794 ret = palmas_read(pci->palmas, base, add, &val); in palmas_pinconf_get()
826 ret = palmas_read(pci->palmas, base, add, &val); in palmas_pinconf_get()
952 ret = palmas_update_bits(pci->palmas, base, add, mask, rval); in palmas_pinconf_set()
1019 pci->palmas = dev_get_drvdata(pdev->dev.parent); in palmas_pinctrl_probe()
DMakefile29 obj-$(CONFIG_PINCTRL_PALMAS) += pinctrl-palmas.o