1 // SPDX-License-Identifier: GPL-2.0+
3 * Copyright (C) 2018 Amarula Solutions.
4 * Author: Jagan Teki <jagan@amarulasolutions.com>
7 #ifndef _ASM_ARCH_CCU_H
8 #define _ASM_ARCH_CCU_H
11 * enum ccu_flags - ccu clock flags
13 * @CCU_CLK_F_IS_VALID: is given clock gate is valid?
16 CCU_CLK_F_IS_VALID = BIT(0),
20 * struct ccu_clk_gate - ccu clock gate
23 * @flags: ccu clock gate flags
31 #define GATE(_off, _bit) { \
34 .flags = CCU_CLK_F_IS_VALID, \
38 * struct ccu_desc - clock control unit descriptor
43 const struct ccu_clk_gate *gates;
47 * struct ccu_priv - sunxi clock control unit
50 * @desc: ccu descriptor
54 const struct ccu_desc *desc;
58 * sunxi_clk_probe - common sunxi clock probe
61 int sunxi_clk_probe(struct udevice *dev);
63 extern struct clk_ops sunxi_clk_ops;
65 #endif /* _ASM_ARCH_CCU_H */