Laurent Pinchart | 10cdfe9 | 2013-11-06 13:14:19 +0100 | [diff] [blame] | 1 | /* |
| 2 | * Copyright 2013 Ideas On Board SPRL |
Simon Horman | 7b42a99 | 2014-04-18 08:05:50 +0900 | [diff] [blame] | 3 | * Copyright 2013, 2014 Horms Solutions Ltd. |
Laurent Pinchart | 10cdfe9 | 2013-11-06 13:14:19 +0100 | [diff] [blame] | 4 | * |
| 5 | * Contact: Laurent Pinchart <laurent.pinchart@ideasonboard.com> |
Simon Horman | 7b42a99 | 2014-04-18 08:05:50 +0900 | [diff] [blame] | 6 | * Contact: Simon Horman <horms@verge.net.au> |
Laurent Pinchart | 10cdfe9 | 2013-11-06 13:14:19 +0100 | [diff] [blame] | 7 | * |
| 8 | * This program is free software; you can redistribute it and/or modify |
| 9 | * it under the terms of the GNU General Public License as published by |
| 10 | * the Free Software Foundation; either version 2 of the License, or |
| 11 | * (at your option) any later version. |
| 12 | */ |
| 13 | |
Simon Horman | 09c3242 | 2016-03-08 09:42:07 +0900 | [diff] [blame] | 14 | #ifndef __LINUX_CLK_RENESAS_H_ |
| 15 | #define __LINUX_CLK_RENESAS_H_ |
Laurent Pinchart | 10cdfe9 | 2013-11-06 13:14:19 +0100 | [diff] [blame] | 16 | |
| 17 | #include <linux/types.h> |
| 18 | |
Geert Uytterhoeven | 752b5ed | 2015-08-04 14:28:02 +0200 | [diff] [blame] | 19 | struct device; |
| 20 | struct device_node; |
| 21 | struct generic_pm_domain; |
| 22 | |
Ulrich Hecht | 6232c51 | 2015-02-26 17:42:07 +0100 | [diff] [blame] | 23 | void r8a7778_clocks_init(u32 mode); |
Simon Horman | 7b42a99 | 2014-04-18 08:05:50 +0900 | [diff] [blame] | 24 | void r8a7779_clocks_init(u32 mode); |
Laurent Pinchart | 10cdfe9 | 2013-11-06 13:14:19 +0100 | [diff] [blame] | 25 | void rcar_gen2_clocks_init(u32 mode); |
| 26 | |
Geert Uytterhoeven | 752b5ed | 2015-08-04 14:28:02 +0200 | [diff] [blame] | 27 | #ifdef CONFIG_PM_GENERIC_DOMAINS_OF |
| 28 | void cpg_mstp_add_clk_domain(struct device_node *np); |
| 29 | int cpg_mstp_attach_dev(struct generic_pm_domain *domain, struct device *dev); |
| 30 | void cpg_mstp_detach_dev(struct generic_pm_domain *domain, struct device *dev); |
| 31 | #else |
| 32 | static inline void cpg_mstp_add_clk_domain(struct device_node *np) {} |
| 33 | #endif |
| 34 | |
Laurent Pinchart | 10cdfe9 | 2013-11-06 13:14:19 +0100 | [diff] [blame] | 35 | #endif |