Home
last modified time | relevance | path

Searched refs:sec_pmic (Results 1 – 3 of 3) sorted by relevance

/Linux-v5.4/drivers/mfd/
Dsec-core.c252 static void sec_pmic_dump_rev(struct sec_pmic_dev *sec_pmic) in sec_pmic_dump_rev() argument
257 if (!regmap_read(sec_pmic->regmap_pmic, S2MPS11_REG_ID, &val)) in sec_pmic_dump_rev()
258 dev_dbg(sec_pmic->dev, "Revision: 0x%x\n", val); in sec_pmic_dump_rev()
261 static void sec_pmic_configure(struct sec_pmic_dev *sec_pmic) in sec_pmic_configure() argument
265 if (sec_pmic->device_type != S2MPS13X) in sec_pmic_configure()
268 if (sec_pmic->pdata->disable_wrstbi) { in sec_pmic_configure()
274 err = regmap_update_bits(sec_pmic->regmap_pmic, in sec_pmic_configure()
278 dev_warn(sec_pmic->dev, in sec_pmic_configure()
343 struct sec_pmic_dev *sec_pmic; in sec_pmic_probe() local
347 sec_pmic = devm_kzalloc(&i2c->dev, sizeof(struct sec_pmic_dev), in sec_pmic_probe()
[all …]
Dsec-irq.c438 int sec_irq_init(struct sec_pmic_dev *sec_pmic) in sec_irq_init() argument
441 int type = sec_pmic->device_type; in sec_irq_init()
444 if (!sec_pmic->irq) { in sec_irq_init()
445 dev_warn(sec_pmic->dev, in sec_irq_init()
447 sec_pmic->irq_base = 0; in sec_irq_init()
477 dev_err(sec_pmic->dev, "Unknown device type %lu\n", in sec_irq_init()
478 sec_pmic->device_type); in sec_irq_init()
482 ret = devm_regmap_add_irq_chip(sec_pmic->dev, sec_pmic->regmap_pmic, in sec_irq_init()
483 sec_pmic->irq, in sec_irq_init()
485 sec_pmic->irq_base, sec_irq_chip, in sec_irq_init()
[all …]
/Linux-v5.4/include/linux/mfd/samsung/
Dcore.h77 int sec_irq_init(struct sec_pmic_dev *sec_pmic);
78 void sec_irq_exit(struct sec_pmic_dev *sec_pmic);
79 int sec_irq_resume(struct sec_pmic_dev *sec_pmic);