Lines Matching refs:bgp
185 struct k3_j72xx_bandgap *bgp;
219 struct k3_j72xx_bandgap *bgp;
222 bgp = devdata->bgp;
232 s0 = readl(bgp->base + devdata->stat_offset) &
234 s1 = readl(bgp->base + devdata->stat_offset) &
236 s2 = readl(bgp->base + devdata->stat_offset) &
351 struct k3_j72xx_bandgap *bgp;
374 bgp = devm_kzalloc(&pdev->dev, sizeof(*bgp), GFP_KERNEL);
375 if (!bgp)
378 bgp->dev = dev;
380 bgp->base = devm_ioremap_resource(dev, res);
381 if (IS_ERR(bgp->base))
382 return PTR_ERR(bgp->base);
385 bgp->cfg2_base = devm_ioremap_resource(dev, res);
386 if (IS_ERR(bgp->cfg2_base))
387 return PTR_ERR(bgp->cfg2_base);
412 dev_dbg(bgp->dev, "Work around %sneeded\n",
424 val = readl(bgp->base + K3_VTM_DEVINFO_PWR0_OFFSET);
428 data = devm_kcalloc(bgp->dev, cnt, sizeof(*data), GFP_KERNEL);
440 derived_table = devm_kzalloc(bgp->dev, sizeof(*derived_table) * TABLE_SIZE,
454 data[id].bgp = bgp;
473 val = readl(data[id].bgp->cfg2_base + data[id].ctrl_offset);
477 writel(val, data[id].bgp->cfg2_base + data[id].ctrl_offset);
479 bgp->ts_data[id] = &data[id];
480 ti_thermal = devm_thermal_of_zone_register(bgp->dev, id, &data[id],
483 dev_err(bgp->dev, "thermal zone device is NULL\n");
499 writel((low_temp << 16) | high_max, data[0].bgp->cfg2_base +
502 writel(K3_VTM_ANYMAXT_OUTRG_ALERT_EN, data[0].bgp->cfg2_base +