Searched refs:sec_pmic (Results 1 – 3 of 3) sorted by relevance
/openbmc/linux/drivers/mfd/ |
H A D | sec-core.c | 214 static void sec_pmic_dump_rev(struct sec_pmic_dev *sec_pmic) in sec_pmic_dump_rev() argument 219 if (!regmap_read(sec_pmic->regmap_pmic, S2MPS11_REG_ID, &val)) in sec_pmic_dump_rev() 220 dev_dbg(sec_pmic->dev, "Revision: 0x%x\n", val); in sec_pmic_dump_rev() 223 static void sec_pmic_configure(struct sec_pmic_dev *sec_pmic) in sec_pmic_configure() argument 227 if (sec_pmic->device_type != S2MPS13X) in sec_pmic_configure() 230 if (sec_pmic->pdata->disable_wrstbi) { in sec_pmic_configure() 236 err = regmap_update_bits(sec_pmic->regmap_pmic, in sec_pmic_configure() 240 dev_warn(sec_pmic->dev, in sec_pmic_configure() 276 struct sec_pmic_dev *sec_pmic; in sec_pmic_probe() local 279 sec_pmic = devm_kzalloc(&i2c->dev, sizeof(struct sec_pmic_dev), in sec_pmic_probe() [all …]
|
H A D | sec-irq.c | 352 int sec_irq_init(struct sec_pmic_dev *sec_pmic) in sec_irq_init() argument 355 int type = sec_pmic->device_type; in sec_irq_init() 358 if (!sec_pmic->irq) { in sec_irq_init() 359 dev_warn(sec_pmic->dev, in sec_irq_init() 387 dev_err(sec_pmic->dev, "Unknown device type %lu\n", in sec_irq_init() 388 sec_pmic->device_type); in sec_irq_init() 392 ret = devm_regmap_add_irq_chip(sec_pmic->dev, sec_pmic->regmap_pmic, in sec_irq_init() 393 sec_pmic->irq, IRQF_ONESHOT, in sec_irq_init() 394 0, sec_irq_chip, &sec_pmic->irq_data); in sec_irq_init() 396 dev_err(sec_pmic->dev, "Failed to register IRQ chip: %d\n", ret); in sec_irq_init()
|
/openbmc/linux/include/linux/mfd/samsung/ |
H A D | core.h | 72 int sec_irq_init(struct sec_pmic_dev *sec_pmic); 73 void sec_irq_exit(struct sec_pmic_dev *sec_pmic); 74 int sec_irq_resume(struct sec_pmic_dev *sec_pmic);
|