Lines Matching full:rk808

14 #include <linux/mfd/rk808.h>
60 { .name = "rk808-clkout", },
61 { .name = "rk808-regulator", },
64 .name = "rk808-rtc",
76 { .name = "rk808-regulator", },
85 { .name = "rk808-clkout", },
86 { .name = "rk808-regulator", },
88 .name = "rk808-rtc",
96 { .name = "rk808-clkout", },
97 { .name = "rk808-regulator", },
104 .name = "rk808-rtc",
111 { .name = "rk808-clkout", },
112 { .name = "rk808-regulator", },
119 .name = "rk808-rtc",
132 { .name = "rk808-clkout", },
133 { .name = "rk808-regulator", },
135 .name = "rk808-rtc",
558 .name = "rk808",
607 struct rk808 *rk808 = data->cb_data; in rk808_power_off() local
611 switch (rk808->variant) { in rk808_power_off()
637 ret = regmap_update_bits(rk808->regmap, reg, bit, bit); in rk808_power_off()
639 dev_err(rk808->dev, "Failed to shutdown device!\n"); in rk808_power_off()
646 struct rk808 *rk808 = data->cb_data; in rk808_restart() local
650 switch (rk808->variant) { in rk808_restart()
660 ret = regmap_update_bits(rk808->regmap, reg, bit, bit); in rk808_restart()
662 dev_err(rk808->dev, "Failed to restart device!\n"); in rk808_restart()
669 struct rk808 *rk808 = dev_get_drvdata(dev); in rk8xx_shutdown() local
672 switch (rk808->variant) { in rk8xx_shutdown()
674 ret = regmap_update_bits(rk808->regmap, in rk8xx_shutdown()
681 ret = regmap_update_bits(rk808->regmap, in rk8xx_shutdown()
697 struct rk808 *rk808; in rk8xx_probe() local
706 rk808 = devm_kzalloc(dev, sizeof(*rk808), GFP_KERNEL); in rk8xx_probe()
707 if (!rk808) in rk8xx_probe()
709 rk808->dev = dev; in rk8xx_probe()
710 rk808->variant = variant; in rk8xx_probe()
711 rk808->regmap = regmap; in rk8xx_probe()
712 dev_set_drvdata(dev, rk808); in rk8xx_probe()
714 switch (rk808->variant) { in rk8xx_probe()
716 rk808->regmap_irq_chip = &rk805_irq_chip; in rk8xx_probe()
723 rk808->regmap_irq_chip = &rk806_irq_chip; in rk8xx_probe()
731 rk808->regmap_irq_chip = &rk808_irq_chip; in rk8xx_probe()
738 rk808->regmap_irq_chip = &rk816_irq_chip; in rk8xx_probe()
745 rk808->regmap_irq_chip = &rk818_irq_chip; in rk8xx_probe()
753 rk808->regmap_irq_chip = &rk817_irq_chip; in rk8xx_probe()
760 dev_err(dev, "Unsupported RK8XX ID %lu\n", rk808->variant); in rk8xx_probe()
767 ret = devm_regmap_add_irq_chip(dev, rk808->regmap, irq, in rk8xx_probe()
769 rk808->regmap_irq_chip, &rk808->irq_data); in rk8xx_probe()
774 ret = regmap_update_bits(rk808->regmap, in rk8xx_probe()
784 regmap_irq_get_domain(rk808->irq_data)); in rk8xx_probe()
792 &rk808_power_off, rk808); in rk8xx_probe()
797 switch (rk808->variant) { in rk8xx_probe()
802 &rk808_restart, rk808); in rk8xx_probe()
818 struct rk808 *rk808 = dev_get_drvdata(dev); in rk8xx_suspend() local
821 switch (rk808->variant) { in rk8xx_suspend()
823 ret = regmap_update_bits(rk808->regmap, in rk8xx_suspend()
830 ret = regmap_update_bits(rk808->regmap, in rk8xx_suspend()
845 struct rk808 *rk808 = dev_get_drvdata(dev); in rk8xx_resume() local
848 switch (rk808->variant) { in rk8xx_resume()
851 ret = regmap_update_bits(rk808->regmap, in rk8xx_resume()