summaryrefslogtreecommitdiff
path: root/drivers/clk/sunxi-ng/ccu_mux.h
diff options
context:
space:
mode:
authorMaxime Ripard <maxime.ripard@free-electrons.com>2016-09-06 13:29:04 +0300
committerMaxime Ripard <maxime.ripard@free-electrons.com>2016-09-10 12:41:18 +0300
commit87ba9e5962f3f6e9a9a44cc332d1ad222d1c0302 (patch)
treec56ffb140f8b9f7604e431369852c5732fa72f4c /drivers/clk/sunxi-ng/ccu_mux.h
parente9c959a6d17cd4fddc766bc182dd98478101c00c (diff)
downloadlinux-87ba9e5962f3f6e9a9a44cc332d1ad222d1c0302.tar.xz
clk: sunxi-ng: div: Allow to set a maximum
Some dividers might have a maximum value that is lower than the width of the register. Add a field to _ccu_div to handle those case properly. If the field is set to 0, the code will assume that the maximum value is the maximum one that can be used with the field register width. Otherwise, we'll use whatever value has been set. Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com> Acked-by: Chen-Yu Tsai <wens@csie.org>
Diffstat (limited to 'drivers/clk/sunxi-ng/ccu_mux.h')
0 files changed, 0 insertions, 0 deletions