Home
last modified time | relevance | path

Searched refs:as3722 (Results 1 – 11 of 11) sorted by relevance

/drivers/mfd/
Das3722.c221 static int as3722_check_device_id(struct as3722 *as3722) in as3722_check_device_id() argument
227 ret = as3722_read(as3722, AS3722_ASIC_ID1_REG, &val); in as3722_check_device_id()
229 dev_err(as3722->dev, "ASIC_ID1 read failed: %d\n", ret); in as3722_check_device_id()
234 dev_err(as3722->dev, "Device is not AS3722, ID is 0x%x\n", val); in as3722_check_device_id()
238 ret = as3722_read(as3722, AS3722_ASIC_ID2_REG, &val); in as3722_check_device_id()
240 dev_err(as3722->dev, "ASIC_ID2 read failed: %d\n", ret); in as3722_check_device_id()
244 dev_info(as3722->dev, "AS3722 with revision 0x%x found\n", val); in as3722_check_device_id()
248 static int as3722_configure_pullups(struct as3722 *as3722) in as3722_configure_pullups() argument
253 if (as3722->en_intern_int_pullup) in as3722_configure_pullups()
255 if (as3722->en_intern_i2c_pullup) in as3722_configure_pullups()
[all …]
DMakefile184 obj-$(CONFIG_MFD_AS3722) += as3722.o
/drivers/rtc/
Drtc-as3722.c37 struct as3722 *as3722; member
66 struct as3722 *as3722 = as3722_rtc->as3722; in as3722_rtc_read_time() local
70 ret = as3722_block_read(as3722, AS3722_RTC_SECOND_REG, in as3722_rtc_read_time()
83 struct as3722 *as3722 = as3722_rtc->as3722; in as3722_rtc_set_time() local
91 ret = as3722_block_write(as3722, AS3722_RTC_SECOND_REG, 6, in as3722_rtc_set_time()
116 struct as3722 *as3722 = as3722_rtc->as3722; in as3722_rtc_read_alarm() local
120 ret = as3722_block_read(as3722, AS3722_RTC_ALARM_SECOND_REG, 6, in as3722_rtc_read_alarm()
134 struct as3722 *as3722 = as3722_rtc->as3722; in as3722_rtc_set_alarm() local
148 ret = as3722_block_write(as3722, AS3722_RTC_ALARM_SECOND_REG, 6, in as3722_rtc_set_alarm()
178 struct as3722 *as3722 = dev_get_drvdata(pdev->dev.parent); in as3722_rtc_probe() local
[all …]
DMakefile30 obj-$(CONFIG_RTC_DRV_AS3722) += rtc-as3722.o
DKconfig195 will be called rtc-as3722.
/drivers/regulator/
Das3722-regulator.c83 struct as3722 *as3722; member
336 struct as3722 *as3722 = as3722_regs->as3722; in as3722_ldo_get_current_limit() local
341 ret = as3722_read(as3722, as3722_reg_lookup[id].vsel_reg, &val); in as3722_ldo_get_current_limit()
356 struct as3722 *as3722 = as3722_regs->as3722; in as3722_ldo_set_current_limit() local
371 return as3722_update_bits(as3722, as3722_reg_lookup[id].vsel_reg, in as3722_ldo_set_current_limit()
397 struct as3722 *as3722 = as3722_reg->as3722; in as3722_ldo3_set_tracking_mode() local
404 return as3722_update_bits(as3722, in as3722_ldo3_set_tracking_mode()
465 struct as3722 *as3722 = as3722_regs->as3722; in as3722_sd_get_mode() local
473 ret = as3722_read(as3722, as3722_reg_lookup[id].control_reg, &val); in as3722_sd_get_mode()
490 struct as3722 *as3722 = as3722_regs->as3722; in as3722_sd_set_mode() local
[all …]
DMakefile22 obj-$(CONFIG_REGULATOR_AS3722) += as3722-regulator.o
/drivers/pinctrl/
Dpinctrl-as3722.c80 struct as3722 *as3722; member
244 ret = as3722_update_bits(as_pci->as3722, gpio_cntr_reg, in as3722_pinctrl_set()
259 ret = as3722_update_bits(as_pci->as3722, gpio_cntr_reg, in as3722_pinctrl_set()
311 struct as3722 *as3722 = as_pci->as3722; in as3722_pinctrl_gpio_set_direction() local
322 return as3722_update_bits(as3722, AS3722_GPIOn_CONTROL_REG(offset), in as3722_pinctrl_gpio_set_direction()
447 struct as3722 *as3722 = as_pci->as3722; in as3722_gpio_get() local
455 ret = as3722_read(as3722, AS3722_GPIOn_CONTROL_REG(offset), &control); in as3722_gpio_get()
480 ret = as3722_read(as3722, reg, &val); in as3722_gpio_get()
495 struct as3722 *as3722 = as_pci->as3722; in as3722_gpio_set() local
500 ret = as3722_read(as3722, AS3722_GPIOn_CONTROL_REG(offset), &val); in as3722_gpio_set()
[all …]
DMakefile11 obj-$(CONFIG_PINCTRL_AS3722) += pinctrl-as3722.o
/drivers/power/reset/
Das3722-poweroff.c27 struct as3722 *as3722; member
41 ret = as3722_update_bits(as3722_pm_poweroff->as3722, in as3722_pm_power_off()
64 as3722_poweroff->as3722 = dev_get_drvdata(pdev->dev.parent); in as3722_poweroff_probe()
DMakefile1 obj-$(CONFIG_POWER_RESET_AS3722) += as3722-poweroff.o