clk: sunxi-ng: Implement minimum for multipliers
Allow the CCU drivers to specify a multiplier for their clocks. Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com> Acked-by: Chen-Yu Tsai <wens@csie.org>
This commit is contained in:
@@ -7,14 +7,19 @@
|
||||
struct ccu_mult_internal {
|
||||
u8 shift;
|
||||
u8 width;
|
||||
u8 min;
|
||||
};
|
||||
|
||||
#define _SUNXI_CCU_MULT(_shift, _width) \
|
||||
{ \
|
||||
.shift = _shift, \
|
||||
.width = _width, \
|
||||
#define _SUNXI_CCU_MULT_MIN(_shift, _width, _min) \
|
||||
{ \
|
||||
.shift = _shift, \
|
||||
.width = _width, \
|
||||
.min = _min, \
|
||||
}
|
||||
|
||||
#define _SUNXI_CCU_MULT(_shift, _width) \
|
||||
_SUNXI_CCU_MULT_MIN(_shift, _width, 1)
|
||||
|
||||
struct ccu_mult {
|
||||
u32 enable;
|
||||
|
||||
|
مرجع در شماره جدید
Block a user