Searched refs:rc5t583 (Results 1 – 10 of 10) sorted by relevance
/drivers/mfd/ |
D | rc5t583-irq.c | 155 struct rc5t583 *rc5t583 = irq_data_get_irq_chip_data(irq_data); in rc5t583_irq_lock() local 156 mutex_lock(&rc5t583->irq_lock); in rc5t583_irq_lock() 161 struct rc5t583 *rc5t583 = irq_data_get_irq_chip_data(irq_data); in rc5t583_irq_unmask() local 162 unsigned int __irq = irq_data->irq - rc5t583->irq_base; in rc5t583_irq_unmask() 165 rc5t583->group_irq_en[data->grp_index] |= 1 << data->grp_index; in rc5t583_irq_unmask() 166 rc5t583->intc_inten_reg |= 1 << data->master_bit; in rc5t583_irq_unmask() 167 rc5t583->irq_en_reg[data->mask_reg_index] |= 1 << data->int_en_bit; in rc5t583_irq_unmask() 172 struct rc5t583 *rc5t583 = irq_data_get_irq_chip_data(irq_data); in rc5t583_irq_mask() local 173 unsigned int __irq = irq_data->irq - rc5t583->irq_base; in rc5t583_irq_mask() 176 rc5t583->group_irq_en[data->grp_index] &= ~(1 << data->grp_index); in rc5t583_irq_mask() [all …]
|
D | rc5t583.c | 165 static int rc5t583_clear_ext_power_req(struct rc5t583 *rc5t583, in rc5t583_clear_ext_power_req() argument 176 ret = rc5t583_write(rc5t583->dev, RICOH_ONOFFSEL_REG, on_off_val); in rc5t583_clear_ext_power_req() 178 dev_warn(rc5t583->dev, "Error in writing reg %d error: %d\n", in rc5t583_clear_ext_power_req() 181 ret = rc5t583_write(rc5t583->dev, RICOH_SWCTL_REG, 0x0); in rc5t583_clear_ext_power_req() 183 dev_warn(rc5t583->dev, "Error in writing reg %d error: %d\n", in rc5t583_clear_ext_power_req() 188 ret = rc5t583_write(rc5t583->dev, i, 0x0); in rc5t583_clear_ext_power_req() 190 dev_warn(rc5t583->dev, in rc5t583_clear_ext_power_req() 252 struct rc5t583 *rc5t583; in rc5t583_i2c_probe() local 262 rc5t583 = devm_kzalloc(&i2c->dev, sizeof(struct rc5t583), GFP_KERNEL); in rc5t583_i2c_probe() 263 if (!rc5t583) { in rc5t583_i2c_probe() [all …]
|
D | Makefile | 151 obj-$(CONFIG_MFD_RC5T583) += rc5t583.o rc5t583-irq.o
|
/drivers/rtc/ |
D | rtc-rc5t583.c | 50 struct rc5t583 *rc5t583 = dev_get_drvdata(dev->parent); in rc5t583_rtc_alarm_irq_enable() local 56 return regmap_update_bits(rc5t583->regmap, RC5T583_RTC_CTL1, SET_YAL, in rc5t583_rtc_alarm_irq_enable() 71 struct rc5t583 *rc5t583 = dev_get_drvdata(dev->parent); in rc5t583_rtc_read_time() local 75 ret = regmap_bulk_read(rc5t583->regmap, RC5T583_RTC_SEC, rtc_data, in rc5t583_rtc_read_time() 95 struct rc5t583 *rc5t583 = dev_get_drvdata(dev->parent); in rc5t583_rtc_set_time() local 107 ret = regmap_bulk_write(rc5t583->regmap, RC5T583_RTC_SEC, rtc_data, in rc5t583_rtc_set_time() 119 struct rc5t583 *rc5t583 = dev_get_drvdata(dev->parent); in rc5t583_rtc_read_alarm() local 124 ret = regmap_bulk_read(rc5t583->regmap, RC5T583_RTC_AY_MIN, alarm_data, in rc5t583_rtc_read_alarm() 137 ret = regmap_read(rc5t583->regmap, RC5T583_RTC_CTL1, &interrupt_enable); in rc5t583_rtc_read_alarm() 150 struct rc5t583 *rc5t583 = dev_get_drvdata(dev->parent); in rc5t583_rtc_set_alarm() local [all …]
|
D | Makefile | 99 obj-$(CONFIG_RTC_DRV_RC5T583) += rtc-rc5t583.o
|
D | Kconfig | 433 will be called rtc-rc5t583.
|
/drivers/gpio/ |
D | gpio-rc5t583.c | 34 struct rc5t583 *rc5t583; member 45 struct device *parent = rc5t583_gpio->rc5t583->dev; in rc5t583_gpio_get() 59 struct device *parent = rc5t583_gpio->rc5t583->dev; in rc5t583_gpio_set() 69 struct device *parent = rc5t583_gpio->rc5t583->dev; in rc5t583_gpio_dir_input() 84 struct device *parent = rc5t583_gpio->rc5t583->dev; in rc5t583_gpio_dir_output() 101 return rc5t583_gpio->rc5t583->irq_base + in rc5t583_gpio_to_irq() 109 struct device *parent = rc5t583_gpio->rc5t583->dev; in rc5t583_gpio_free() 116 struct rc5t583 *rc5t583 = dev_get_drvdata(pdev->dev.parent); in rc5t583_gpio_probe() local 117 struct rc5t583_platform_data *pdata = dev_get_platdata(rc5t583->dev); in rc5t583_gpio_probe() 139 rc5t583_gpio->rc5t583 = rc5t583; in rc5t583_gpio_probe()
|
D | Makefile | 59 obj-$(CONFIG_GPIO_RC5T583) += gpio-rc5t583.o
|
/drivers/regulator/ |
D | rc5t583-regulator.c | 120 struct rc5t583 *rc5t583 = dev_get_drvdata(pdev->dev.parent); in rc5t583_regulator_probe() local 121 struct rc5t583_platform_data *pdata = dev_get_platdata(rc5t583->dev); in rc5t583_regulator_probe() 158 ret = rc5t583_ext_power_req_config(rc5t583->dev, in rc5t583_regulator_probe() 174 config.regmap = rc5t583->regmap; in rc5t583_regulator_probe()
|
D | Makefile | 51 obj-$(CONFIG_REGULATOR_RC5T583) += rc5t583-regulator.o
|