• Home
  • Raw
  • Download

Lines Matching full:pmic

3  * MFD core driver for Intel Cherrytrail Whiskey Cove PMIC
7 * Based on various non upstream patches to support the CHT Whiskey Cove PMIC:
21 /* PMIC device registers */
29 /* Whiskey Cove PMIC share same ACPI ID between different platforms */
140 struct intel_soc_pmic *pmic; in cht_wc_probe() local
147 dev_err(dev, "Failed to get PMIC hardware revision\n"); in cht_wc_probe()
151 dev_err(dev, "Invalid PMIC hardware revision: %llu\n", hrv); in cht_wc_probe()
159 pmic = devm_kzalloc(dev, sizeof(*pmic), GFP_KERNEL); in cht_wc_probe()
160 if (!pmic) in cht_wc_probe()
163 pmic->irq = client->irq; in cht_wc_probe()
164 pmic->dev = dev; in cht_wc_probe()
165 i2c_set_clientdata(client, pmic); in cht_wc_probe()
167 pmic->regmap = devm_regmap_init(dev, NULL, client, &cht_wc_regmap_cfg); in cht_wc_probe()
168 if (IS_ERR(pmic->regmap)) in cht_wc_probe()
169 return PTR_ERR(pmic->regmap); in cht_wc_probe()
171 ret = devm_regmap_add_irq_chip(dev, pmic->regmap, pmic->irq, in cht_wc_probe()
174 &pmic->irq_chip_data); in cht_wc_probe()
180 regmap_irq_get_domain(pmic->irq_chip_data)); in cht_wc_probe()
185 struct intel_soc_pmic *pmic = i2c_get_clientdata(client); in cht_wc_shutdown() local
187 disable_irq(pmic->irq); in cht_wc_shutdown()
192 struct intel_soc_pmic *pmic = dev_get_drvdata(dev); in cht_wc_suspend() local
194 disable_irq(pmic->irq); in cht_wc_suspend()
201 struct intel_soc_pmic *pmic = dev_get_drvdata(dev); in cht_wc_resume() local
203 enable_irq(pmic->irq); in cht_wc_resume()
220 .name = "CHT Whiskey Cove PMIC",