blob: 8a6086d2e9c37585991ab2a9de249a5d71151ec9 [file] [log] [blame]
Greg Kroah-Hartmanb2441312017-11-01 15:07:57 +01001/* SPDX-License-Identifier: GPL-2.0 */
Geert Uytterhoevenbe32bcb2016-04-20 14:02:36 +02002#ifndef __LINUX_SOC_RENESAS_RCAR_SYSC_H__
3#define __LINUX_SOC_RENESAS_RCAR_SYSC_H__
4
5#include <linux/types.h>
Magnus Damma6557eb2014-01-15 16:43:08 +09006
7struct rcar_sysc_ch {
Geert Uytterhoeven6fd2242e2015-06-04 20:22:28 +02008 u16 chan_offs;
9 u8 chan_bit;
10 u8 isr_bit;
Magnus Damma6557eb2014-01-15 16:43:08 +090011};
12
Geert Uytterhoeven624deb32015-06-04 20:22:30 +020013int rcar_sysc_power_down(const struct rcar_sysc_ch *sysc_ch);
14int rcar_sysc_power_up(const struct rcar_sysc_ch *sysc_ch);
Geert Uytterhoeven05323992016-06-28 16:10:33 +020015void rcar_sysc_init(phys_addr_t base, u32 syscier);
Magnus Damma6557eb2014-01-15 16:43:08 +090016
Geert Uytterhoevenbe32bcb2016-04-20 14:02:36 +020017#endif /* __LINUX_SOC_RENESAS_RCAR_SYSC_H__ */