clk: mux: add CLK_MUX_HIWORD_MASK
authorHaojian Zhuang <haojian.zhuang@linaro.org>
Sat, 8 Jun 2013 14:47:17 +0000 (22:47 +0800)
committer黄涛 <huangtao@rock-chips.com>
Mon, 23 Dec 2013 02:45:27 +0000 (10:45 +0800)
commit4d216753353c99858f1f8c644e95a2116fad0720
tree9d18921464d14b8f27bcf80fb363e129ac1fc585
parentb4902e5442b51e64ee0b952c900d2aba1a5cb47b
clk: mux: add CLK_MUX_HIWORD_MASK

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 switching mux, it also needs to indicate
the change by setting hiword mask (b11 << 16).

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