2018-09-25 15:34:05 +08:00
|
|
|
/* SPDX-License-Identifier: GPL-2.0+
|
|
|
|
*
|
2013-11-06 20:14:19 +08:00
|
|
|
* Copyright 2013 Ideas On Board SPRL
|
2014-04-18 07:05:50 +08:00
|
|
|
* Copyright 2013, 2014 Horms Solutions Ltd.
|
2013-11-06 20:14:19 +08:00
|
|
|
*
|
|
|
|
* Contact: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
|
2014-04-18 07:05:50 +08:00
|
|
|
* Contact: Simon Horman <horms@verge.net.au>
|
2013-11-06 20:14:19 +08:00
|
|
|
*/
|
|
|
|
|
2016-03-08 08:42:07 +08:00
|
|
|
#ifndef __LINUX_CLK_RENESAS_H_
|
|
|
|
#define __LINUX_CLK_RENESAS_H_
|
2013-11-06 20:14:19 +08:00
|
|
|
|
|
|
|
#include <linux/types.h>
|
|
|
|
|
2015-08-04 20:28:02 +08:00
|
|
|
struct device;
|
|
|
|
struct device_node;
|
|
|
|
struct generic_pm_domain;
|
|
|
|
|
|
|
|
void cpg_mstp_add_clk_domain(struct device_node *np);
|
2016-04-13 17:18:06 +08:00
|
|
|
#ifdef CONFIG_CLK_RENESAS_CPG_MSTP
|
2016-03-04 23:59:26 +08:00
|
|
|
int cpg_mstp_attach_dev(struct generic_pm_domain *unused, struct device *dev);
|
|
|
|
void cpg_mstp_detach_dev(struct generic_pm_domain *unused, struct device *dev);
|
2016-04-13 17:18:06 +08:00
|
|
|
#else
|
|
|
|
#define cpg_mstp_attach_dev NULL
|
|
|
|
#define cpg_mstp_detach_dev NULL
|
|
|
|
#endif
|
2015-08-04 20:28:02 +08:00
|
|
|
|
2016-03-05 00:03:46 +08:00
|
|
|
#ifdef CONFIG_CLK_RENESAS_CPG_MSSR
|
|
|
|
int cpg_mssr_attach_dev(struct generic_pm_domain *unused, struct device *dev);
|
|
|
|
void cpg_mssr_detach_dev(struct generic_pm_domain *unused, struct device *dev);
|
|
|
|
#else
|
|
|
|
#define cpg_mssr_attach_dev NULL
|
|
|
|
#define cpg_mssr_detach_dev NULL
|
|
|
|
#endif
|
2013-11-06 20:14:19 +08:00
|
|
|
#endif
|