author | Rajendra Nayak <rnayak@ti.com> | |
Fri, 22 Mar 2013 10:42:36 +0000 (16:12 +0530) | ||
committer | Rajendra Nayak <rnayak@ti.com> | |
Thu, 28 Mar 2013 13:34:40 +0000 (19:04 +0530) | ||
commit | 346256135450a84662dbd30d435eb7452b2376cb | |
tree | 156d59c4bef4010bdd94666aa726c48a6e4cd0cb | tree | snapshot (tar.xz tar.gz zip) |
parent | c8e9154bd83aafbad47edd778e8e9efc10361518 | commit | diff |
ARM: OMAP: clock: Helpers to reparent and init rates
On OMAP, as we move away from bootloaders enabling _all_ clocks to
bootloaders only enabling whats needed, we have had numerous instances
of breakages due to DPLLs not locked, or some clocks not set to the
right rates etc.
We have moved ahead adding a bunch of clk_set_rates(), and clk_set_parents()
all over clock init calls.
This patch just consolidates all and provides helpers which can be called
from SoC clock init code, to set rates for a given set of clocks and reparent
any clocks if needed. Similar to the way, a helper exists to enable clocks
(for memory controller etc) at clock init.
Does not change anything much, but makes code more readable.
Signed-off-by: Rajendra Nayak <rnayak@ti.com>
On OMAP, as we move away from bootloaders enabling _all_ clocks to
bootloaders only enabling whats needed, we have had numerous instances
of breakages due to DPLLs not locked, or some clocks not set to the
right rates etc.
We have moved ahead adding a bunch of clk_set_rates(), and clk_set_parents()
all over clock init calls.
This patch just consolidates all and provides helpers which can be called
from SoC clock init code, to set rates for a given set of clocks and reparent
any clocks if needed. Similar to the way, a helper exists to enable clocks
(for memory controller etc) at clock init.
Does not change anything much, but makes code more readable.
Signed-off-by: Rajendra Nayak <rnayak@ti.com>