clk: divider: Introduce CLK_DIVIDER_ALLOW_ZERO flag
authorSoren Brinkmann <soren.brinkmann@xilinx.com>
Tue, 2 Apr 2013 22:36:56 +0000 (15:36 -0700)
committerMike Turquette <mturquette@linaro.org>
Wed, 3 Apr 2013 19:56:30 +0000 (12:56 -0700)
commit056b205316cc3dcf8a67cf813a26ff8a72bf3cb9
tree3d98f8d116d5e7541cf41eec72847b2d3673324a
parentf640c0fad698c0e4b07e05373681d3681125d6af
clk: divider: Introduce CLK_DIVIDER_ALLOW_ZERO flag

Dividers which have CLK_DIVIDER_ONE_BASED set have a redundant state,
being a divider value of zero. Some hardware implementations allow a
zero divider which simply doesn't alter the frequency. I.e. it acts like
a divide by one or bypassing the divider.
This flag is used to handle such HW in the clk-divider model.

Signed-off-by: Soren Brinkmann <soren.brinkmann@xilinx.com>
Signed-off-by: Mike Turquette <mturquette@linaro.org>
drivers/clk/clk-divider.c
include/linux/clk-provider.h