}
/*
- * Apparently, these SoCs are not able to wake-up from suspend using
- * the PMU. Too bad. Should they suddenly become capable of such a
- * feat, the matches below should be moved to suspend.c.
+ * Map PMU registers for smp code
*/
static const struct of_device_id exynos_dt_pmu_match[] = {
- { .compatible = "samsung,exynos5260-pmu" },
+ { .compatible = "samsung,exynos3250-pmu" },
+ { .compatible = "samsung,exynos4210-pmu" },
+ { .compatible = "samsung,exynos4412-pmu" },
{ .compatible = "samsung,exynos5410-pmu" },
+ { .compatible = "samsung,exynos5250-pmu" },
+ { .compatible = "samsung,exynos5260-pmu" },
+ { .compatible = "samsung,exynos5420-pmu" },
{ /*sentinel*/ },
};
return -ENXIO;
}
- pmu_base_addr = of_iomap(node, 0);
-
- if (!pmu_base_addr) {
- pr_err("%pOF: failed to find exynos pmu register\n", node);
- return -ENOMEM;
- }
-
domain = irq_domain_add_hierarchy(parent_domain, 0, 0,
node, &exynos_pmu_domain_ops,
NULL);
- if (!domain) {
- iounmap(pmu_base_addr);
- pmu_base_addr = NULL;
+ if (!domain)
return -ENOMEM;
- }
/*
* Clear the OF_POPULATED flag set in of_irq_init so that