clk: keystone: sci-clk: probe clocks from DT instead of firmware
authorTero Kristo <t-kristo@ti.com>
Tue, 28 May 2019 13:10:22 +0000 (16:10 +0300)
committerTero Kristo <t-kristo@ti.com>
Fri, 7 Jun 2019 09:11:41 +0000 (12:11 +0300)
commit8e48b33f9def0cef429c102c5b4b2dad8ef1d684
treeb7e2457dd3a0476398e9b1e25aff2feb61b13bc4
parent4bfce5aba9023c56cf9fb3882d7055c07979e971
clk: keystone: sci-clk: probe clocks from DT instead of firmware

Probing all the available clocks from the PM firmware takes quite a lot
of time, increasing boot time. Instead, implement functionality that
parses only the used clocks from DT, and registers these to clock core.
This way, the boot time is greatly improved.

Additionally, provide a Kconfig option for parsing all the clocks from
firmware, if someone requires this. It is mostly useful as a debugging
functionality if we want to inspect the whole clock tree.

Acked-by: Santosh Shilimkar <ssantosh@kernel.org>
Signed-off-by: Tero Kristo <t-kristo@ti.com>
drivers/clk/keystone/Kconfig
drivers/clk/keystone/sci-clk.c