summaryrefslogtreecommitdiffstats
path: root/include/pm_domain.h
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2023-08-03 12:49:42 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2023-11-03 08:32:17 +0100
commit39e229671089ecae746408e2f1fde1dcc01a9ed7 (patch)
treec7e4930e5d408ed2ea73748682100dfe9461c4e0 /include/pm_domain.h
parent8017e50c42d5afd658e064a0994ec7c7e9190271 (diff)
downloadbarebox-39e229671089ecae746408e2f1fde1dcc01a9ed7.tar.gz
barebox-39e229671089ecae746408e2f1fde1dcc01a9ed7.tar.xz
pm_domain: Add onecell support
So far we only have simple translation support. Add support for onecell translation taken straight from Linux. This is needed for upcoming TI K3 support. Link: https://lore.barebox.org/20230803105003.4088205-2-s.hauer@pengutronix.de Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'include/pm_domain.h')
-rw-r--r--include/pm_domain.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/include/pm_domain.h b/include/pm_domain.h
index d297053531..a7e46c86b9 100644
--- a/include/pm_domain.h
+++ b/include/pm_domain.h
@@ -56,6 +56,15 @@ int pm_genpd_init(struct generic_pm_domain *genpd, void *gov, bool is_off);
int of_genpd_add_provider_simple(struct device_node *np,
struct generic_pm_domain *genpd);
+struct genpd_onecell_data {
+ struct generic_pm_domain **domains;
+ unsigned int num_domains;
+ genpd_xlate_t xlate;
+};
+
+int of_genpd_add_provider_onecell(struct device_node *np,
+ struct genpd_onecell_data *data);
+
void pm_genpd_print(void);
#else