OpenCloudOS-Kernel/drivers/clk/ingenic
Aidan MacDonald e98839fb56 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>
2022-05-18 17:30:36 -07:00
..
Kconfig clk: ingenic: Add support for the JZ4760 2021-06-27 19:49:18 -07:00
Makefile clk: ingenic: Add support for the JZ4760 2021-06-27 19:49:18 -07:00
cgu.c clk: ingenic: Allow specifying common clock flags 2022-05-18 13:56:16 -07:00
cgu.h clk: ingenic: Allow specifying common clock flags 2022-05-18 13:56:16 -07:00
jz4725b-cgu.c clk: ingenic: Mark critical clocks in Ingenic SoCs 2022-05-18 13:56:22 -07:00
jz4740-cgu.c clk: ingenic: Mark critical clocks in Ingenic SoCs 2022-05-18 13:56:22 -07:00
jz4760-cgu.c clk: ingenic: Mark critical clocks in Ingenic SoCs 2022-05-18 13:56:22 -07:00
jz4770-cgu.c clk: ingenic: Mark critical clocks in Ingenic SoCs 2022-05-18 13:56:22 -07:00
jz4780-cgu.c clk: ingenic: Mark critical clocks in Ingenic SoCs 2022-05-18 13:56:22 -07:00
pm.c clk: ingenic: Handle setting the Low-Power Mode bit 2019-06-25 15:43:15 -07:00
pm.h clk: ingenic: Handle setting the Low-Power Mode bit 2019-06-25 15:43:15 -07:00
tcu.c clk: ingenic-tcu: Fix missing TCU clock for X1000 SoCs 2022-05-18 17:30:36 -07:00
x1000-cgu.c clk: ingenic: Mark critical clocks in Ingenic SoCs 2022-05-18 13:56:22 -07:00
x1830-cgu.c clk: ingenic: Mark critical clocks in Ingenic SoCs 2022-05-18 13:56:22 -07:00