1 /* SPDX-License-Identifier: GPL-2.0-only */
3 * linux/arch/arm/mach-w90x900/clock.h
5 * Copyright (c) 2008 Nuvoton technology corporation
7 * Wan ZongShun <mcuos.com@gmail.com>
10 #include <linux/clkdev.h>
12 void nuc900_clk_enable(struct clk
*clk
, int enable
);
13 void nuc900_subclk_enable(struct clk
*clk
, int enable
);
18 void (*enable
)(struct clk
*, int enable
);
21 #define DEFINE_CLK(_name, _ctrlbit) \
22 struct clk clk_##_name = { \
23 .enable = nuc900_clk_enable, \
24 .cken = (1 << _ctrlbit), \
27 #define DEFINE_SUBCLK(_name, _ctrlbit) \
28 struct clk clk_##_name = { \
29 .enable = nuc900_subclk_enable, \
30 .cken = (1 << _ctrlbit), \
34 #define DEF_CLKLOOK(_clk, _devname, _conname) \