diff options
author | Ben Dooks <ben.dooks@codethink.co.uk> | 2014-03-31 13:47:27 -0400 |
---|---|---|
committer | Mike Turquette <mturquette@linaro.org> | 2014-04-02 14:31:05 -0400 |
commit | e44df332f30bf3040c60c1ed6674d1431fdb48b9 (patch) | |
tree | 7b318ebf063fcbd9231a80f30eae3e2f23ae2c9d /drivers/clk/shmobile/clk-mstp.c | |
parent | 365b01869bca1c9d5ecb05be7857739fa18a9b8c (diff) |
clk: shmobile: fix setting paretn clock rate
If the driver needs to change a clock rate, then it must be propogated
through the MSTP clock to the parent clock (such as shdi0 -> sd0). Without
this we cannot up-rate default clocks which are really slow (such as the
mmcif1 which defaults to 12MHz where it could be running at 97MHz)
Signed-off-by: Ben Dooks <ben.dooks@codethink.co.uk>
Acked-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Mike Turquette <mturquette@linaro.org>
Diffstat (limited to 'drivers/clk/shmobile/clk-mstp.c')
-rw-r--r-- | drivers/clk/shmobile/clk-mstp.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/clk/shmobile/clk-mstp.c b/drivers/clk/shmobile/clk-mstp.c index 42d5912b1d25..2e5810c88d11 100644 --- a/drivers/clk/shmobile/clk-mstp.c +++ b/drivers/clk/shmobile/clk-mstp.c | |||
@@ -137,7 +137,7 @@ cpg_mstp_clock_register(const char *name, const char *parent_name, | |||
137 | 137 | ||
138 | init.name = name; | 138 | init.name = name; |
139 | init.ops = &cpg_mstp_clock_ops; | 139 | init.ops = &cpg_mstp_clock_ops; |
140 | init.flags = CLK_IS_BASIC; | 140 | init.flags = CLK_IS_BASIC | CLK_SET_RATE_PARENT; |
141 | init.parent_names = &parent_name; | 141 | init.parent_names = &parent_name; |
142 | init.num_parents = 1; | 142 | init.num_parents = 1; |
143 | 143 | ||