Searched refs:as3722 (Results 1 – 11 of 11) sorted by relevance
/drivers/mfd/ |
D | as3722.c | 198 static int as3722_check_device_id(struct as3722 *as3722) in as3722_check_device_id() argument 204 ret = as3722_read(as3722, AS3722_ASIC_ID1_REG, &val); in as3722_check_device_id() 206 dev_err(as3722->dev, "ASIC_ID1 read failed: %d\n", ret); in as3722_check_device_id() 211 dev_err(as3722->dev, "Device is not AS3722, ID is 0x%x\n", val); in as3722_check_device_id() 215 ret = as3722_read(as3722, AS3722_ASIC_ID2_REG, &val); in as3722_check_device_id() 217 dev_err(as3722->dev, "ASIC_ID2 read failed: %d\n", ret); in as3722_check_device_id() 221 dev_info(as3722->dev, "AS3722 with revision 0x%x found\n", val); in as3722_check_device_id() 225 static int as3722_configure_pullups(struct as3722 *as3722) in as3722_configure_pullups() argument 230 if (as3722->en_intern_int_pullup) in as3722_configure_pullups() 232 if (as3722->en_intern_i2c_pullup) in as3722_configure_pullups() [all …]
|
D | Makefile | 228 obj-$(CONFIG_MFD_AS3722) += as3722.o
|
/drivers/rtc/ |
D | rtc-as3722.c | 28 struct as3722 *as3722; member 57 struct as3722 *as3722 = as3722_rtc->as3722; in as3722_rtc_read_time() local 61 ret = as3722_block_read(as3722, AS3722_RTC_SECOND_REG, in as3722_rtc_read_time() 74 struct as3722 *as3722 = as3722_rtc->as3722; in as3722_rtc_set_time() local 82 ret = as3722_block_write(as3722, AS3722_RTC_SECOND_REG, 6, in as3722_rtc_set_time() 107 struct as3722 *as3722 = as3722_rtc->as3722; in as3722_rtc_read_alarm() local 111 ret = as3722_block_read(as3722, AS3722_RTC_ALARM_SECOND_REG, 6, in as3722_rtc_read_alarm() 125 struct as3722 *as3722 = as3722_rtc->as3722; in as3722_rtc_set_alarm() local 139 ret = as3722_block_write(as3722, AS3722_RTC_ALARM_SECOND_REG, 6, in as3722_rtc_set_alarm() 169 struct as3722 *as3722 = dev_get_drvdata(pdev->dev.parent); in as3722_rtc_probe() local [all …]
|
D | Makefile | 30 obj-$(CONFIG_RTC_DRV_AS3722) += rtc-as3722.o
|
D | Kconfig | 245 will be called rtc-as3722.
|
/drivers/pinctrl/ |
D | pinctrl-as3722.c | 80 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() 442 struct as3722 *as3722 = as_pci->as3722; in as3722_gpio_get() local 450 ret = as3722_read(as3722, AS3722_GPIOn_CONTROL_REG(offset), &control); in as3722_gpio_get() 475 ret = as3722_read(as3722, reg, &val); in as3722_gpio_get() 490 struct as3722 *as3722 = as_pci->as3722; in as3722_gpio_set() local 495 ret = as3722_read(as3722, AS3722_GPIOn_CONTROL_REG(offset), &val); in as3722_gpio_set() [all …]
|
D | Makefile | 12 obj-$(CONFIG_PINCTRL_AS3722) += pinctrl-as3722.o
|
/drivers/regulator/ |
D | as3722-regulator.c | 69 struct as3722 *as3722; member 329 struct as3722 *as3722 = as3722_reg->as3722; in as3722_ldo3_set_tracking_mode() local 336 return as3722_update_bits(as3722, in as3722_ldo3_set_tracking_mode() 422 struct as3722 *as3722 = as3722_regs->as3722; in as3722_sd_get_mode() local 430 ret = as3722_read(as3722, as3722_reg_lookup[id].control_reg, &val); in as3722_sd_get_mode() 447 struct as3722 *as3722 = as3722_regs->as3722; in as3722_sd_set_mode() local 465 ret = as3722_update_bits(as3722, as3722_reg_lookup[id].control_reg, in as3722_sd_set_mode() 480 err = as3722_read(as3722_regs->as3722, AS3722_FUSE7_REG, &val); in as3722_sd0_is_low_voltage() 555 ret = as3722_update_bits(as3722_regs->as3722, in as3722_extreg_init() 637 struct as3722 *as3722 = dev_get_drvdata(pdev->dev.parent); in as3722_regulator_probe() local [all …]
|
D | Makefile | 28 obj-$(CONFIG_REGULATOR_AS3722) += as3722-regulator.o
|
/drivers/power/reset/ |
D | as3722-poweroff.c | 19 struct as3722 *as3722; member 33 ret = as3722_update_bits(as3722_pm_poweroff->as3722, in as3722_pm_power_off() 56 as3722_poweroff->as3722 = dev_get_drvdata(pdev->dev.parent); in as3722_poweroff_probe()
|
D | Makefile | 2 obj-$(CONFIG_POWER_RESET_AS3722) += as3722-poweroff.o
|