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

/linux-4.1.27/drivers/mfd/
H A Dsec-core.c311 struct sec_pmic_dev *sec_pmic; sec_pmic_probe() local
315 sec_pmic = devm_kzalloc(&i2c->dev, sizeof(struct sec_pmic_dev), sec_pmic_probe()
317 if (sec_pmic == NULL) sec_pmic_probe()
320 i2c_set_clientdata(i2c, sec_pmic); sec_pmic_probe()
321 sec_pmic->dev = &i2c->dev; sec_pmic_probe()
322 sec_pmic->i2c = i2c; sec_pmic_probe()
323 sec_pmic->irq = i2c->irq; sec_pmic_probe()
326 if (sec_pmic->dev->of_node) { sec_pmic_probe()
327 pdata = sec_pmic_i2c_parse_dt_pdata(sec_pmic->dev); sec_pmic_probe()
335 sec_pmic->device_type = pdata->device_type; sec_pmic_probe()
336 sec_pmic->irq_base = pdata->irq_base; sec_pmic_probe()
337 sec_pmic->wakeup = pdata->wakeup; sec_pmic_probe()
338 sec_pmic->pdata = pdata; sec_pmic_probe()
341 switch (sec_pmic->device_type) { sec_pmic_probe()
368 sec_pmic->regmap_pmic = devm_regmap_init_i2c(i2c, regmap); sec_pmic_probe()
369 if (IS_ERR(sec_pmic->regmap_pmic)) { sec_pmic_probe()
370 ret = PTR_ERR(sec_pmic->regmap_pmic); sec_pmic_probe()
379 sec_irq_init(sec_pmic); sec_pmic_probe()
381 pm_runtime_set_active(sec_pmic->dev); sec_pmic_probe()
383 switch (sec_pmic->device_type) { sec_pmic_probe()
420 ret = mfd_add_devices(sec_pmic->dev, -1, sec_devs, num_sec_devs, NULL, sec_pmic_probe()
425 device_init_wakeup(sec_pmic->dev, sec_pmic->wakeup); sec_pmic_probe()
430 sec_irq_exit(sec_pmic); sec_pmic_probe()
436 struct sec_pmic_dev *sec_pmic = i2c_get_clientdata(i2c); sec_pmic_remove() local
438 mfd_remove_devices(sec_pmic->dev); sec_pmic_remove()
439 sec_irq_exit(sec_pmic); sec_pmic_remove()
447 struct sec_pmic_dev *sec_pmic = i2c_get_clientdata(i2c); sec_pmic_suspend() local
450 enable_irq_wake(sec_pmic->irq); sec_pmic_suspend()
460 disable_irq(sec_pmic->irq); sec_pmic_suspend()
468 struct sec_pmic_dev *sec_pmic = i2c_get_clientdata(i2c); sec_pmic_resume() local
471 disable_irq_wake(sec_pmic->irq); sec_pmic_resume()
472 enable_irq(sec_pmic->irq); sec_pmic_resume()
481 { "sec_pmic", 0 },
488 .name = "sec_pmic",
H A Dsec-irq.c440 int sec_irq_init(struct sec_pmic_dev *sec_pmic) sec_irq_init() argument
443 int type = sec_pmic->device_type; sec_irq_init()
446 if (!sec_pmic->irq) { sec_irq_init()
447 dev_warn(sec_pmic->dev, sec_irq_init()
449 sec_pmic->irq_base = 0; sec_irq_init()
473 dev_err(sec_pmic->dev, "Unknown device type %lu\n", sec_irq_init()
474 sec_pmic->device_type); sec_irq_init()
478 ret = regmap_add_irq_chip(sec_pmic->regmap_pmic, sec_pmic->irq, sec_irq_init()
480 sec_pmic->irq_base, sec_irq_chip, sec_irq_init()
481 &sec_pmic->irq_data); sec_irq_init()
483 dev_err(sec_pmic->dev, "Failed to register IRQ chip: %d\n", ret); sec_irq_init()
496 void sec_irq_exit(struct sec_pmic_dev *sec_pmic) sec_irq_exit() argument
498 regmap_del_irq_chip(sec_pmic->irq, sec_pmic->irq_data); sec_irq_exit()
/linux-4.1.27/include/linux/mfd/samsung/
H A 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);

Completed in 69 milliseconds