4 #include "ccu_common.h"
12 #define _SUNXI_CCU_MULT(_shift, _width) \
21 struct _ccu_mult mult;
22 struct ccu_mux_internal mux;
23 struct ccu_common common;
26 #define SUNXI_CCU_N_WITH_GATE_LOCK(_struct, _name, _parent, _reg, \
27 _mshift, _mwidth, _gate, _lock, \
29 struct ccu_mult _struct = { \
31 .mult = _SUNXI_CCU_MULT(_mshift, _mwidth), \
34 .hw.init = CLK_HW_INIT(_name, \
41 static inline struct ccu_mult *hw_to_ccu_mult(struct clk_hw *hw)
43 struct ccu_common *common = hw_to_ccu_common(hw);
45 return container_of(common, struct ccu_mult, common);
48 extern const struct clk_ops ccu_mult_ops;
50 #endif /* _CCU_MULT_H_ */