]> git.baikalelectronics.ru Git - kernel.git/commit
clk: allow a clk divider with max divisor when zero
authorJim Quinlan <jim2101024@gmail.com>
Fri, 15 May 2015 19:45:47 +0000 (15:45 -0400)
committerStephen Boyd <sboyd@codeaurora.org>
Tue, 28 Jul 2015 18:59:19 +0000 (11:59 -0700)
commit7b1a5b0e56a55aa68041285d0bbff2fccfdb6146
treefcf7c6f403d54380eeef1b549a7197cc8dfa756e
parente649ba6eee6b02cb0dae525d774734047b8bf988
clk: allow a clk divider with max divisor when zero

This commit allows certain Broadcom STB clock dividers to be used with
clk-divider.c.  It allows for a clock whose field value is the equal
to the divisor, execpt when the field value is zero, in which case the
divisor is 2^width.  For example, consider a divisor clock with a two
bit field:

value divisor
0 4
1 1
2 2
3 3

Signed-off-by: Jim Quinlan <jim2101024@gmail.com>
Signed-off-by: Michael Turquette <mturquette@baylibre.com>
drivers/clk/clk-divider.c
include/linux/clk-provider.h