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:
Maxime Ripard
2016-09-30 22:16:51 +02:00
والد 6e0d50daa9
کامیت 2beaa601c8
6فایلهای تغییر یافته به همراه21 افزوده شده و 16 حذف شده

مشاهده پرونده

@@ -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;