• Home
  • Raw
  • Download

Lines Matching refs:pmu

367 	struct bcm590xx_reg *pmu;  in bcm590xx_probe()  local
378 pmu = devm_kzalloc(&pdev->dev, sizeof(*pmu), GFP_KERNEL); in bcm590xx_probe()
379 if (!pmu) in bcm590xx_probe()
382 pmu->mfd = bcm590xx; in bcm590xx_probe()
384 platform_set_drvdata(pdev, pmu); in bcm590xx_probe()
386 pmu->desc = devm_kzalloc(&pdev->dev, BCM590XX_NUM_REGS * in bcm590xx_probe()
388 if (!pmu->desc) in bcm590xx_probe()
400 pmu->desc[i].name = info->name; in bcm590xx_probe()
401 pmu->desc[i].supply_name = info->vin_name; in bcm590xx_probe()
402 pmu->desc[i].id = i; in bcm590xx_probe()
403 pmu->desc[i].volt_table = info->volt_table; in bcm590xx_probe()
404 pmu->desc[i].n_voltages = info->n_voltages; in bcm590xx_probe()
405 pmu->desc[i].linear_ranges = info->linear_ranges; in bcm590xx_probe()
406 pmu->desc[i].n_linear_ranges = info->n_linear_ranges; in bcm590xx_probe()
409 pmu->desc[i].ops = &bcm590xx_ops_ldo; in bcm590xx_probe()
410 pmu->desc[i].vsel_mask = BCM590XX_LDO_VSEL_MASK; in bcm590xx_probe()
412 pmu->desc[i].ops = &bcm590xx_ops_vbus; in bcm590xx_probe()
414 pmu->desc[i].ops = &bcm590xx_ops_dcdc; in bcm590xx_probe()
415 pmu->desc[i].vsel_mask = BCM590XX_SR_VSEL_MASK; in bcm590xx_probe()
419 pmu->desc[i].enable_mask = BCM590XX_VBUS_ENABLE; in bcm590xx_probe()
421 pmu->desc[i].vsel_reg = bcm590xx_get_vsel_register(i); in bcm590xx_probe()
422 pmu->desc[i].enable_is_inverted = true; in bcm590xx_probe()
423 pmu->desc[i].enable_mask = BCM590XX_REG_ENABLE; in bcm590xx_probe()
425 pmu->desc[i].enable_reg = bcm590xx_get_enable_register(i); in bcm590xx_probe()
426 pmu->desc[i].type = REGULATOR_VOLTAGE; in bcm590xx_probe()
427 pmu->desc[i].owner = THIS_MODULE; in bcm590xx_probe()
431 config.driver_data = pmu; in bcm590xx_probe()
440 rdev = devm_regulator_register(&pdev->dev, &pmu->desc[i], in bcm590xx_probe()