Lines Matching refs:pmu
35 static struct regmap *pmu;
43 ret = regmap_read(pmu, PMU_PWRDN_ST, &val);
85 ret = regmap_update_bits(pmu, PMU_PWRDN_CON, BIT(pd), val);
120 if (!sram_base_addr || (has_pmu && !pmu)) {
121 pr_err("%s: sram or pmu missing for cpu boot\n", __func__);
202 .name = "rockchip-pmu",
221 pmu = syscon_regmap_lookup_by_phandle(node, "rockchip,pmu");
223 if (!IS_ERR(pmu))
226 pmu = syscon_regmap_lookup_by_compatible("rockchip,rk3066-pmu");
227 if (!IS_ERR(pmu))
230 /* fallback, create our own regmap for the pmu area */
231 pmu = NULL;
232 node = of_find_compatible_node(NULL, NULL, "rockchip,rk3066-pmu");
234 pr_err("%s: could not find pmu dt node\n", __func__);
241 pr_err("%s: could not map pmu registers\n", __func__);
245 pmu = regmap_init_mmio(NULL, pmu_base, &rockchip_pmu_regmap_config);
246 if (IS_ERR(pmu)) {
247 int ret = PTR_ERR(pmu);
250 pmu = NULL;