diff options
author | Guodong Xu <guodong.xu@linaro.org> | 2015-09-12 08:14:14 +0800 |
---|---|---|
committer | Guodong Xu <guodong.xu@linaro.org> | 2015-09-12 08:26:48 +0800 |
commit | 9e433c00665c7f0a2b4cd9cedb13ecb2a9e13452 (patch) | |
tree | fa3eaa0d642760ebbd47726538a41860ab2478fc | |
parent | 46ae2655667cba4479d80713709f378f3c458b8e (diff) |
clk: hi6220: mark off lower five decimal number of SYSPLL
Signed-off-by: Guodong Xu <guodong.xu@linaro.org>
-rw-r--r-- | drivers/clk/hisilicon/clk-hi6220.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/clk/hisilicon/clk-hi6220.c b/drivers/clk/hisilicon/clk-hi6220.c index d2a462ea362f..dd2cdf5c5757 100644 --- a/drivers/clk/hisilicon/clk-hi6220.c +++ b/drivers/clk/hisilicon/clk-hi6220.c @@ -115,6 +115,9 @@ static void __init hi6220_clk_ao_init(struct device_node *np) pr_info("SYSPLL: ERROR: read returns misterious value.\n"); freq = 1200000000; } + + /* mask off freq */ + freq -= (freq % 100000); pr_info("SYSPLL: set syspll medpll: %d\n", freq); for (i = 0; i < ARRAY_SIZE(hi6220_fixed_rate_clks); i++) { |