]> git.proxmox.com Git - mirror_ubuntu-disco-kernel.git/commit
clk: Add support for power of two type dividers
authorRajendra Nayak <rnayak@ti.com>
Thu, 17 May 2012 10:22:13 +0000 (15:52 +0530)
committerMike Turquette <mturquette@linaro.org>
Wed, 11 Jul 2012 22:36:42 +0000 (15:36 -0700)
commit6d9252bd9a4bb1dadc1f199fd276e3464a251085
treea1dc6ff2959667705d3ed5e4a0504fe268645f01
parentbd0a521e88aa7a06ae7aabaed7ae196ed4ad867a
clk: Add support for power of two type dividers

Quite often dividers and the value programmed in the
register have a relation of 'power of two', something like
value div
0 1
1 2
2 4
3 8...

Add support for such dividers as part of clk-divider.

The clk-divider flag 'CLK_DIVIDER_POWER_OF_TWO' should be used
to define such clocks.

Signed-off-by: Rajendra Nayak <rnayak@ti.com>
Signed-off-by: Mike Turquette <mturquette@linaro.org>
drivers/clk/clk-divider.c