summaryrefslogtreecommitdiff
path: root/arch/arm/mach-shmobile/pm-rcar.h
diff options
context:
space:
mode:
authorMagnus Damm <damm+renesas@opensource.se>2014-06-17 07:47:53 (GMT)
committerSimon Horman <horms+renesas@verge.net.au>2014-06-17 08:09:40 (GMT)
commit585c09df3738d4f72cee36eb0b975351fd9a339a (patch)
tree450567076efe30cfebb8d014f96c26a5314bb44e /arch/arm/mach-shmobile/pm-rcar.h
parent6b8b0cb477b3e77721982effae3415f3c5f58fee (diff)
downloadlinux-585c09df3738d4f72cee36eb0b975351fd9a339a.tar.xz
ARM: shmobile: Move pm-rcar.h, cleanup r8a7779 case
Change location of pm-rcar.h so it can be used as #include "pm-rcar.h" instead of the old style #include <mach/pm-rcar.h>. Also clean up the r8a7779 case to move some unused header file cruft into a C file. Signed-off-by: Magnus Damm <damm+renesas@opensource.se> Acked-by: Geert Uytterhoeven <geert@linux-m68k.org> Acked-by: Arnd Bergmann <arnd@arndb.de> Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
Diffstat (limited to 'arch/arm/mach-shmobile/pm-rcar.h')
-rw-r--r--arch/arm/mach-shmobile/pm-rcar.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/arch/arm/mach-shmobile/pm-rcar.h b/arch/arm/mach-shmobile/pm-rcar.h
new file mode 100644
index 0000000..ef3a1ef
--- /dev/null
+++ b/arch/arm/mach-shmobile/pm-rcar.h
@@ -0,0 +1,15 @@
+#ifndef PM_RCAR_H
+#define PM_RCAR_H
+
+struct rcar_sysc_ch {
+ unsigned long chan_offs;
+ unsigned int chan_bit;
+ unsigned int isr_bit;
+};
+
+int rcar_sysc_power_down(struct rcar_sysc_ch *sysc_ch);
+int rcar_sysc_power_up(struct rcar_sysc_ch *sysc_ch);
+bool rcar_sysc_power_is_off(struct rcar_sysc_ch *sysc_ch);
+void __iomem *rcar_sysc_init(phys_addr_t base);
+
+#endif /* PM_RCAR_H */