Lines Matching full:pmic
3 * Device driver for Hi6421 PMIC
16 #include <linux/mfd/hi6421-pmic.h>
39 .compatible = "hisilicon,hi6421-pmic",
43 .compatible = "hisilicon,hi6421v530-pmic",
52 struct hi6421_pmic *pmic; in hi6421_pmic_probe() local
65 pmic = devm_kzalloc(&pdev->dev, sizeof(*pmic), GFP_KERNEL); in hi6421_pmic_probe()
66 if (!pmic) in hi6421_pmic_probe()
74 pmic->regmap = devm_regmap_init_mmio_clk(&pdev->dev, NULL, base, in hi6421_pmic_probe()
76 if (IS_ERR(pmic->regmap)) { in hi6421_pmic_probe()
78 PTR_ERR(pmic->regmap)); in hi6421_pmic_probe()
79 return PTR_ERR(pmic->regmap); in hi6421_pmic_probe()
82 platform_set_drvdata(pdev, pmic); in hi6421_pmic_probe()
87 regmap_update_bits(pmic->regmap, HI6421_OCP_DEB_CTRL_REG, in hi6421_pmic_probe()
127 MODULE_DESCRIPTION("Hi6421 PMIC driver");