From a6557eb795edcf7832b5278a11842c4ca302f4af Mon Sep 17 00:00:00 2001 From: Magnus Damm Date: Wed, 15 Jan 2014 16:43:08 +0900 Subject: ARM: shmobile: Break out R-Car SYSC PM code Break out the R-Car SYSC power management code from the r8a7779 SoC code. With this new shared R-Car SYSC code base it is possible to hook in Generation 2 SoCs as well. Signed-off-by: Magnus Damm Signed-off-by: Simon Horman --- arch/arm/mach-shmobile/include/mach/pm-rcar.h | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 arch/arm/mach-shmobile/include/mach/pm-rcar.h (limited to 'arch/arm/mach-shmobile/include/mach/pm-rcar.h') diff --git a/arch/arm/mach-shmobile/include/mach/pm-rcar.h b/arch/arm/mach-shmobile/include/mach/pm-rcar.h new file mode 100644 index 000000000000..ef3a1ef628f1 --- /dev/null +++ b/arch/arm/mach-shmobile/include/mach/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 */ -- cgit v1.2.3