aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHaojian Zhuang <haojian.zhuang@linaro.org>2013-10-09 16:39:36 +0800
committerHaojian Zhuang <haojian.zhuang@linaro.org>2013-10-17 16:28:39 +0800
commit635f8824d9c29bbc69f751473437d246b4216be7 (patch)
tree18c86e60e8a33dc5dcd3e17fb50ffdc9189affeb
parent026929744054f27ead5ef3dcc7b5b41a525f03b6 (diff)
clk: hi3xxx: support hiword property of clock gate
In K3V3, hiword property also exists in clock gate. Signed-off-by: Haojian Zhuang <haojian.zhuang@linaro.org>
-rw-r--r--drivers/clk/hisilicon/clk-hi3xxx.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/clk/hisilicon/clk-hi3xxx.c b/drivers/clk/hisilicon/clk-hi3xxx.c
index 348ba2b179e6..d16d92a4390a 100644
--- a/drivers/clk/hisilicon/clk-hi3xxx.c
+++ b/drivers/clk/hisilicon/clk-hi3xxx.c
@@ -309,6 +309,8 @@ static void __init hs_clkgate_setup(struct device_node *np)
return;
if (of_property_read_bool(np, "hisilicon,clkgate-inverted"))
flags = CLK_GATE_SET_TO_DISABLE;
+ if (of_property_read_bool(np, "hiword"))
+ flags |= CLK_GATE_HIWORD_MASK;
/* gate only has the fixed parent */
parent_names = kzalloc(sizeof(char *), GFP_KERNEL);
if (!parent_names)