4 #include "ccu_common.h"
7 struct ccu_mult_internal
{
13 #define _SUNXI_CCU_MULT_MIN(_shift, _width, _min) \
20 #define _SUNXI_CCU_MULT(_shift, _width) \
21 _SUNXI_CCU_MULT_MIN(_shift, _width, 1)
26 struct ccu_mult_internal mult
;
27 struct ccu_mux_internal mux
;
28 struct ccu_common common
;
31 #define SUNXI_CCU_N_WITH_GATE_LOCK(_struct, _name, _parent, _reg, \
32 _mshift, _mwidth, _gate, _lock, \
34 struct ccu_mult _struct = { \
36 .mult = _SUNXI_CCU_MULT(_mshift, _mwidth), \
39 .hw.init = CLK_HW_INIT(_name, \
46 static inline struct ccu_mult
*hw_to_ccu_mult(struct clk_hw
*hw
)
48 struct ccu_common
*common
= hw_to_ccu_common(hw
);
50 return container_of(common
, struct ccu_mult
, common
);
53 extern const struct clk_ops ccu_mult_ops
;
55 #endif /* _CCU_MULT_H_ */