clk: gate: add CLK_GATE_HIWORD_MASK
authorHaojian Zhuang <haojian.zhuang@linaro.org>
Sat, 8 Jun 2013 14:47:19 +0000 (22:47 +0800)
committerMike Turquette <mturquette@linaro.org>
Sun, 16 Jun 2013 03:23:53 +0000 (20:23 -0700)
commit045779942c04646a222289989e6a5b617dfdedf7
treee66048660ffc624543a0a36e526ce685e8d3e132
parentd57dfe7508af2b528e26d84792edec1e7d919682
clk: gate: add CLK_GATE_HIWORD_MASK

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

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

The patch adds gate 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-gate.c
include/linux/clk-provider.h