Home
last modified time | relevance | path

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

/drivers/power/supply/
Drk817_charger.c50 struct rk808 *rk808; member
177 regmap_bulk_read(charger->rk808->regmap, RK817_GAS_GAUGE_VCALIB0_H, in rk817_bat_calib_vol()
181 regmap_bulk_read(charger->rk808->regmap, RK817_GAS_GAUGE_VCALIB1_H, in rk817_bat_calib_vol()
196 regmap_bulk_read(charger->rk808->regmap, RK817_GAS_GAUGE_IOFFSET_H, in rk817_bat_calib_cur()
198 regmap_bulk_write(charger->rk808->regmap, RK817_GAS_GAUGE_CAL_OFFSET_H, in rk817_bat_calib_cur()
216 ret = regmap_bulk_write(charger->rk808->regmap, RK817_GAS_GAUGE_BAT_R1, in rk817_record_battery_nvram_values()
226 ret = regmap_bulk_write(charger->rk808->regmap, RK817_GAS_GAUGE_DATA0, in rk817_record_battery_nvram_values()
232 ret = regmap_bulk_write(charger->rk808->regmap, RK817_GAS_GAUGE_DATA3, in rk817_record_battery_nvram_values()
242 struct rk808 *rk808 = charger->rk808; in rk817_bat_calib_cap() local
264 regmap_bulk_write(rk808->regmap, RK817_GAS_GAUGE_Q_INIT_H3, in rk817_bat_calib_cap()
[all …]
/drivers/clk/
Dclk-rk808.c18 struct rk808 *rk808; member
34 struct rk808 *rk808 = rk808_clkout->rk808; in rk808_clkout2_enable() local
36 return regmap_update_bits(rk808->regmap, RK808_CLK32OUT_REG, in rk808_clkout2_enable()
55 struct rk808 *rk808 = rk808_clkout->rk808; in rk808_clkout2_is_prepared() local
58 int ret = regmap_read(rk808->regmap, RK808_CLK32OUT_REG, &val); in rk808_clkout2_is_prepared()
96 struct rk808 *rk808 = rk808_clkout->rk808; in rk817_clkout2_enable() local
98 return regmap_update_bits(rk808->regmap, RK817_SYS_CFG(1), in rk817_clkout2_enable()
118 struct rk808 *rk808 = rk808_clkout->rk808; in rk817_clkout2_is_prepared() local
121 int ret = regmap_read(rk808->regmap, RK817_SYS_CFG(1), &val); in rk817_clkout2_is_prepared()
155 struct rk808 *rk808 = dev_get_drvdata(pdev->dev.parent); in rk808_clkout_probe() local
[all …]
DMakefile58 obj-$(CONFIG_COMMON_CLK_RK808) += clk-rk808.o
/drivers/rtc/
Drtc-rk808.c54 struct rk808 *rk808; member
100 struct rk808 *rk808 = rk808_rtc->rk808; in rk808_rtc_readtime() local
105 ret = regmap_update_bits(rk808->regmap, rk808_rtc->creg->ctrl_reg, in rk808_rtc_readtime()
119 ret = regmap_update_bits(rk808->regmap, rk808_rtc->creg->ctrl_reg, in rk808_rtc_readtime()
127 ret = regmap_bulk_read(rk808->regmap, rk808_rtc->creg->seconds_reg, in rk808_rtc_readtime()
151 struct rk808 *rk808 = rk808_rtc->rk808; in rk808_rtc_set_time() local
166 ret = regmap_update_bits(rk808->regmap, rk808_rtc->creg->ctrl_reg, in rk808_rtc_set_time()
174 ret = regmap_bulk_write(rk808->regmap, rk808_rtc->creg->seconds_reg, in rk808_rtc_set_time()
181 ret = regmap_update_bits(rk808->regmap, rk808_rtc->creg->ctrl_reg, in rk808_rtc_set_time()
194 struct rk808 *rk808 = rk808_rtc->rk808; in rk808_rtc_readalarm() local
[all …]
DMakefile141 obj-$(CONFIG_RTC_DRV_RK808) += rtc-rk808.o
DKconfig404 will be called rk808-rtc.
/drivers/mfd/
Drk808.c550 struct rk808 *rk808 = i2c_get_clientdata(rk808_i2c_client); in rk808_pm_power_off() local
552 switch (rk808->variant) { in rk808_pm_power_off()
573 ret = regmap_update_bits(rk808->regmap, reg, bit, bit); in rk808_pm_power_off()
580 struct rk808 *rk808 = i2c_get_clientdata(rk808_i2c_client); in rk808_restart_notify() local
584 switch (rk808->variant) { in rk808_restart_notify()
594 ret = regmap_update_bits(rk808->regmap, reg, bit, bit); in rk808_restart_notify()
608 struct rk808 *rk808 = i2c_get_clientdata(client); in rk8xx_shutdown() local
611 switch (rk808->variant) { in rk8xx_shutdown()
613 ret = regmap_update_bits(rk808->regmap, in rk8xx_shutdown()
620 ret = regmap_update_bits(rk808->regmap, in rk8xx_shutdown()
[all …]
DMakefile226 obj-$(CONFIG_MFD_RK808) += rk808.o
/drivers/pinctrl/
Dpinctrl-rk805.c65 struct rk808 *rk808; member
141 ret = regmap_read(pci->rk808->regmap, pci->pin_cfg[offset].reg, &val); in rk805_gpio_get()
157 ret = regmap_update_bits(pci->rk808->regmap, in rk805_gpio_set()
189 ret = regmap_read(pci->rk808->regmap, in rk805_gpio_get_direction()
293 ret = regmap_update_bits(pci->rk808->regmap, in _rk805_pinctrl_set_mux()
338 ret = regmap_update_bits(pci->rk808->regmap, in rk805_pmx_gpio_set_direction()
430 pci->rk808 = dev_get_drvdata(pdev->dev.parent); in rk805_pinctrl_probe()
438 switch (pci->rk808->variant) { in rk805_pinctrl_probe()
453 pci->rk808->variant); in rk805_pinctrl_probe()
/drivers/regulator/
Drk808-regulator.c1288 struct rk808 *rk808 = dev_get_drvdata(pdev->dev.parent); in rk808_regulator_probe() local
1289 struct i2c_client *client = rk808->i2c; in rk808_regulator_probe()
1301 rk808->regmap, pdata); in rk808_regulator_probe()
1307 switch (rk808->variant) { in rk808_regulator_probe()
1330 rk808->variant); in rk808_regulator_probe()
1336 config.regmap = rk808->regmap; in rk808_regulator_probe()
DMakefile127 obj-$(CONFIG_REGULATOR_RK808) += rk808-regulator.o