renesas.h (1001B)
1/* SPDX-License-Identifier: GPL-2.0+ 2 * 3 * Copyright 2013 Ideas On Board SPRL 4 * Copyright 2013, 2014 Horms Solutions Ltd. 5 * 6 * Contact: Laurent Pinchart <laurent.pinchart@ideasonboard.com> 7 * Contact: Simon Horman <horms@verge.net.au> 8 */ 9 10#ifndef __LINUX_CLK_RENESAS_H_ 11#define __LINUX_CLK_RENESAS_H_ 12 13#include <linux/types.h> 14 15struct device; 16struct device_node; 17struct generic_pm_domain; 18 19void cpg_mstp_add_clk_domain(struct device_node *np); 20#ifdef CONFIG_CLK_RENESAS_CPG_MSTP 21int cpg_mstp_attach_dev(struct generic_pm_domain *unused, struct device *dev); 22void cpg_mstp_detach_dev(struct generic_pm_domain *unused, struct device *dev); 23#else 24#define cpg_mstp_attach_dev NULL 25#define cpg_mstp_detach_dev NULL 26#endif 27 28#ifdef CONFIG_CLK_RENESAS_CPG_MSSR 29int cpg_mssr_attach_dev(struct generic_pm_domain *unused, struct device *dev); 30void cpg_mssr_detach_dev(struct generic_pm_domain *unused, struct device *dev); 31#else 32#define cpg_mssr_attach_dev NULL 33#define cpg_mssr_detach_dev NULL 34#endif 35#endif