OSDN Git Service

clk: mux: add CLK_MUX_HIWORD_MASK
authorHaojian Zhuang <haojian.zhuang@linaro.org>
Sat, 8 Jun 2013 14:47:17 +0000 (22:47 +0800)
committerMike Turquette <mturquette@linaro.org>
Sun, 16 Jun 2013 03:23:36 +0000 (20:23 -0700)
commitba492e900704ba00d43c7af9d94b00da4df52587
tree497484f3a3a8c796ccab042ba7be5a81e15d871b
parentf3aab5d61400b794ec759b9345e93e7ba57eb369
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