clk: divider: add CLK_DIVIDER_HIWORD_MASK flag
authorHaojian Zhuang <haojian.zhuang@linaro.org>
Sat, 8 Jun 2013 14:47:18 +0000 (22:47 +0800)
committerMike Turquette <mturquette@linaro.org>
Sun, 16 Jun 2013 03:23:49 +0000 (20:23 -0700)
commitd57dfe7508af2b528e26d84792edec1e7d919682
treef3be7ce2e20cdf9fad2528b4a1972e29df20a662
parentba492e900704ba00d43c7af9d94b00da4df52587
clk: divider: add CLK_DIVIDER_HIWORD_MASK flag

In both Hisilicon & Rockchip Cortex-A9 based chips, they don't use the
paradigm of reading-changing-writing the register contents.
Instead they use a hiword mask to indicate the changed bits.

When b01 should be set as setting divider, it also needs to indicate
the change by setting hiword mask (b11 << 16).

The patch adds divider flag for this usage.

Signed-off-by: Heiko Stuebner <heiko@sntech.de>
Signed-off-by: Haojian Zhuang <haojian.zhuang@linaro.org>
Signed-off-by: Mike Turquette <mturquette@linaro.org>
drivers/clk/clk-divider.c
include/linux/clk-provider.h