mirror of https://lore.kernel.org/linux-amlogic/
 help / color / mirror / Atom feed
* [PATCH 0/2] meson8b: register the clock controller early
@ 2018-07-21 19:13 Martin Blumenstingl
  2018-07-21 19:13 ` [PATCH 1/2] clk: meson: " Martin Blumenstingl
  2018-07-21 19:14 ` [PATCH 2/2] clk: meson: meson8b: use the regmap in the internal reset controller Martin Blumenstingl
  0 siblings, 2 replies; 5+ messages in thread
From: Martin Blumenstingl @ 2018-07-21 19:13 UTC (permalink / raw)
  To: linus-amlogic

Some parts of the SoC are initialized early in the boot process, such
as the SRAM and the TWD timer. This means that the corresponding
drivers need to access the clock controller early as well.

Before this series the clock controller was registered as platform
driver, which is too late for the TWD timer (just as an example).
The reset controller (built into the clock controller driver) was
already registered early, basically for the same reason (the reset
lines are used to start the secondary CPUs, which is done very early
in the boot process).

Register the clock controller early enough so we're able to use the
TWD timer (as we need to pass a clock which is provided by this
clock controller) in a second step.

The second patch simplifies the reset controller (built into the clock
controller driver) because the regmap is already available early and
thus can be used by the reset controller driver as well.


Martin Blumenstingl (2):
  clk: meson: meson8b: register the clock controller early
  clk: meson: meson8b: use the regmap in the internal reset controller

 drivers/clk/meson/meson8b.c | 107 ++++++++++++++----------------------
 1 file changed, 40 insertions(+), 67 deletions(-)

-- 
2.18.0

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2018-08-12 18:07 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-07-21 19:13 [PATCH 0/2] meson8b: register the clock controller early Martin Blumenstingl
2018-07-21 19:13 ` [PATCH 1/2] clk: meson: " Martin Blumenstingl
2018-07-23  7:54   ` Neil Armstrong
2018-08-12 18:07     ` Martin Blumenstingl
2018-07-21 19:14 ` [PATCH 2/2] clk: meson: meson8b: use the regmap in the internal reset controller Martin Blumenstingl

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®