ARM: dts: dir685: Drop spi-cpol from the display
[sfrench/cifs-2.6.git] / arch / arm / mach-w90x900 / clock.h
1 /* SPDX-License-Identifier: GPL-2.0-only */
2 /*
3  * linux/arch/arm/mach-w90x900/clock.h
4  *
5  * Copyright (c) 2008 Nuvoton technology corporation
6  *
7  * Wan ZongShun <mcuos.com@gmail.com>
8  */
9
10 #include <linux/clkdev.h>
11
12 void nuc900_clk_enable(struct clk *clk, int enable);
13 void nuc900_subclk_enable(struct clk *clk, int enable);
14
15 struct clk {
16         unsigned long           cken;
17         unsigned int            enabled;
18         void                    (*enable)(struct clk *, int enable);
19 };
20
21 #define DEFINE_CLK(_name, _ctrlbit)                     \
22 struct clk clk_##_name = {                              \
23                 .enable = nuc900_clk_enable,            \
24                 .cken   = (1 << _ctrlbit),              \
25         }
26
27 #define DEFINE_SUBCLK(_name, _ctrlbit)                  \
28 struct clk clk_##_name = {                              \
29                 .enable = nuc900_subclk_enable, \
30                 .cken   = (1 << _ctrlbit),              \
31         }
32
33
34 #define DEF_CLKLOOK(_clk, _devname, _conname)           \
35         {                                               \
36                 .clk            = _clk,                 \
37                 .dev_id         = _devname,             \
38                 .con_id         = _conname,             \
39         }
40