Greg Kroah-Hartman | b244131 | 2017-11-01 15:07:57 +0100 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0 */ |
Geert Uytterhoeven | be32bcb | 2016-04-20 14:02:36 +0200 | [diff] [blame] | 2 | #ifndef __LINUX_SOC_RENESAS_RCAR_SYSC_H__ |
| 3 | #define __LINUX_SOC_RENESAS_RCAR_SYSC_H__ |
| 4 | |
| 5 | #include <linux/types.h> |
Magnus Damm | a6557eb | 2014-01-15 16:43:08 +0900 | [diff] [blame] | 6 | |
| 7 | struct rcar_sysc_ch { |
Geert Uytterhoeven | 6fd2242e | 2015-06-04 20:22:28 +0200 | [diff] [blame] | 8 | u16 chan_offs; |
| 9 | u8 chan_bit; |
| 10 | u8 isr_bit; |
Magnus Damm | a6557eb | 2014-01-15 16:43:08 +0900 | [diff] [blame] | 11 | }; |
| 12 | |
Geert Uytterhoeven | 624deb3 | 2015-06-04 20:22:30 +0200 | [diff] [blame] | 13 | int rcar_sysc_power_down(const struct rcar_sysc_ch *sysc_ch); |
| 14 | int rcar_sysc_power_up(const struct rcar_sysc_ch *sysc_ch); |
Geert Uytterhoeven | 0532399 | 2016-06-28 16:10:33 +0200 | [diff] [blame] | 15 | void rcar_sysc_init(phys_addr_t base, u32 syscier); |
Magnus Damm | a6557eb | 2014-01-15 16:43:08 +0900 | [diff] [blame] | 16 | |
Geert Uytterhoeven | be32bcb | 2016-04-20 14:02:36 +0200 | [diff] [blame] | 17 | #endif /* __LINUX_SOC_RENESAS_RCAR_SYSC_H__ */ |