~funderscore blog cgit wiki get in touch
aboutsummaryrefslogtreecommitdiff
blob: 9d20ed0bbaba8dfb225c494800e736679d8e204a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
/* SPDX-License-Identifier: GPL-2.0+ */
/*
 * Copyright (C) 2022 StarFive Technology Co., Ltd.
 * Author:	Yanhong Wang <yanhong.wang@starfivetech.com>
 */

#ifndef __CLK_STARFIVE_H
#define __CLK_STARFIVE_H

/* the number of fixed clocks in DTS */
#define JH7110_EXTCLK_END	12

#define _JH7110_CLK_OPS(_name)					\
static const struct clk_ops jh7110_##_name##_clk_ops = {	\
	.set_rate = ccf_clk_set_rate,				\
	.get_rate = ccf_clk_get_rate,				\
	.set_parent = ccf_clk_set_parent,			\
	.enable = ccf_clk_enable,				\
	.disable = ccf_clk_disable,				\
	.of_xlate = jh7110_##_name##_clk_of_xlate,		\
}

#define JH7110_CLK_OPS(name) _JH7110_CLK_OPS(name)

#endif