summaryrefslogtreecommitdiff
path: root/include/linux/platform_data/ti-prm.h
diff options
context:
space:
mode:
authorTero Kristo <t-kristo@ti.com>2019-10-09 08:55:38 -0700
committerSantosh Shilimkar <santosh.shilimkar@oracle.com>2019-10-09 08:55:38 -0700
commitd30cd83f68535ca21412b1abe8684438690c1c2b (patch)
treeb24fe54d582a70d7ecbe40124ee34ebc111dab67 /include/linux/platform_data/ti-prm.h
parentc5117a78dd88e5b673897baec0a6eed9ee599e02 (diff)
soc: ti: omap-prm: add support for denying idle for reset clockdomain
TI SoCs hardware reset signals require the parent clockdomain to be in force wakeup mode while de-asserting the reset, otherwise it may never complete. To support this, add pdata hooks to control the clockdomain directly. Signed-off-by: Tero Kristo <t-kristo@ti.com> Reviewed-by: Tony Lindgren <tony@atomide.com> Signed-off-by: Santosh Shilimkar <santosh.shilimkar@oracle.com>
Diffstat (limited to 'include/linux/platform_data/ti-prm.h')
-rw-r--r--include/linux/platform_data/ti-prm.h21
1 files changed, 21 insertions, 0 deletions
diff --git a/include/linux/platform_data/ti-prm.h b/include/linux/platform_data/ti-prm.h
new file mode 100644
index 000000000000..28154c3226c2
--- /dev/null
+++ b/include/linux/platform_data/ti-prm.h
@@ -0,0 +1,21 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
+/*
+ * TI PRM (Power & Reset Manager) platform data
+ *
+ * Copyright (C) 2019 Texas Instruments, Inc.
+ *
+ * Tero Kristo <t-kristo@ti.com>
+ */
+
+#ifndef _LINUX_PLATFORM_DATA_TI_PRM_H
+#define _LINUX_PLATFORM_DATA_TI_PRM_H
+
+struct clockdomain;
+
+struct ti_prm_platform_data {
+ void (*clkdm_deny_idle)(struct clockdomain *clkdm);
+ void (*clkdm_allow_idle)(struct clockdomain *clkdm);
+ struct clockdomain * (*clkdm_lookup)(const char *name);
+};
+
+#endif /* _LINUX_PLATFORM_DATA_TI_PRM_H */