summaryrefslogtreecommitdiff
path: root/drivers/clk/ingenic/pm.h
diff options
context:
space:
mode:
authorPaul Cercueil <paul@crapouillou.net>2019-06-11 21:07:54 +0300
committerStephen Boyd <sboyd@kernel.org>2019-06-26 01:43:15 +0300
commit2ee93e3c953b7263c21ce61e7c42e33d0539bef9 (patch)
treec6dd6351f5350bb9724f2fcc6f13a1b0335b5d22 /drivers/clk/ingenic/pm.h
parentdbc38ad0e7390162c500210f96ebf1d6a8738899 (diff)
downloadlinux-2ee93e3c953b7263c21ce61e7c42e33d0539bef9.tar.xz
clk: ingenic: Handle setting the Low-Power Mode bit
The Low-Power Mode, when enabled, will make the "wait" MIPS instruction suspend the system. This is not really clock-related, but this bit happens to be in the register set of the CGU. Signed-off-by: Paul Cercueil <paul@crapouillou.net> Signed-off-by: Stephen Boyd <sboyd@kernel.org>
Diffstat (limited to 'drivers/clk/ingenic/pm.h')
-rw-r--r--drivers/clk/ingenic/pm.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/drivers/clk/ingenic/pm.h b/drivers/clk/ingenic/pm.h
new file mode 100644
index 000000000000..fa7540407b6b
--- /dev/null
+++ b/drivers/clk/ingenic/pm.h
@@ -0,0 +1,12 @@
+/* SPDX-License-Identifier: GPL-2.0 */
+/*
+ * Copyright (C) 2019 Paul Cercueil <paul@crapouillou.net>
+ */
+#ifndef DRIVERS_CLK_INGENIC_PM_H
+#define DRIVERS_CLK_INGENIC_PM_H
+
+struct ingenic_cgu;
+
+void ingenic_cgu_register_syscore_ops(struct ingenic_cgu *cgu);
+
+#endif /* DRIVERS_CLK_INGENIC_PM_H */