clk: ingenic-tcu: Fix missing TCU clock for X1000 SoCs
authorAidan MacDonald <aidanmacdonald.0x0@gmail.com>
Tue, 12 Apr 2022 12:27:50 +0000 (13:27 +0100)
committerStephen Boyd <sboyd@kernel.org>
Thu, 19 May 2022 00:30:36 +0000 (17:30 -0700)
commite98839fb56ea2b5bdcea47128871df4a587fc181
tree071823a9a8e666a3edee27efe511a7b0a1b144ae
parent2b0f3d70ce7ca68c10b3a5beaf2da6a03c5b3c11
clk: ingenic-tcu: Fix missing TCU clock for X1000 SoCs

The TCU clock gate on X1000 wasn't requested by the driver and could
be gated automatically later on in boot, which prevents timers from
running and breaks PWM.

Add a workaround to support old device trees that don't specify the
"tcu" clock gate. In this case the kernel will print a warning and
attempt to continue without the clock, which is wrong, but it could
work if "clk_ignore_unused" is in the kernel arguments.

Signed-off-by: Aidan MacDonald <aidanmacdonald.0x0@gmail.com>
Link: https://lore.kernel.org/r/20220412122750.279058-3-aidanmacdonald.0x0@gmail.com
Reviewed-by: Paul Cercueil <paul@crapouillou.net>
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
drivers/clk/ingenic/tcu.c