]> git.baikalelectronics.ru Git - kernel.git/commit
clk: tegra: make tegra_clocks_apply_init_table() arch_initcall
authorPeter De Schrijver <pdeschrijver@nvidia.com>
Tue, 16 Dec 2014 20:38:27 +0000 (12:38 -0800)
committerPeter De Schrijver <pdeschrijver@nvidia.com>
Mon, 2 Feb 2015 13:47:28 +0000 (15:47 +0200)
commitd3f0ae4dd2ac9f62b7a113e1412d5a1eebe5c21a
treeaf77572a0d181eb3931b1f68c95a7ab5270709d1
parent03c4659c90368f13aae7f9427693d9b16e60832d
clk: tegra: make tegra_clocks_apply_init_table() arch_initcall

tegra_clocks_apply_init_table() needs to be called after the udelay
loop has been calibrated (see commit
ed8dad7b04b1b9e0baf4bf2d61aa1160f767799c ("clk: tegra: defer
application of init table") for why that is).  On existing Tegra SoCs
this was done by calling tegra_clocks_apply_init_table() from
tegra_dt_init(). To make this also work on ARM64, we need to change
this into an initcall. tegra_dt_init() is called from
customize_machine which is an arch_initcall. Therefore this should
also work on existing 32bit Tegra SoCs.

Tested on Tegra20 (ventana), Tegra30 (beaverboard), Tegra124 (jetson TK1) and
Tegra132.

Signed-off-by: Peter De Schrijver <pdeschrijver@nvidia.com>
[paul@pwsan.com: tweaked the commit message]
Signed-off-by: Paul Walmsley <paul@pwsan.com>
Signed-off-by: Paul Walmsley <pwalmsley@nvidia.com>
Cc: Thierry Reding <treding@nvidia.com>
Cc: Prashant Gaikwad <pgaikwad@nvidia.com>
Cc: Mike Turquette <mturquette@linaro.org>
Cc: Stephen Boyd <sboyd@codeaurora.org>
Cc: Stephen Warren <swarren@wwwdotorg.org>
Cc: Thierry Reding <thierry.reding@gmail.com>
Cc: Alexandre Courbot <gnurou@gmail.com>
arch/arm/mach-tegra/tegra.c
drivers/clk/tegra/clk.c
include/linux/clk/tegra.h