OSDN Git Service

clk: renesas: r9a09g011: Add PWM clock and reset entries
authorBiju Das <biju.das.jz@bp.renesas.com>
Thu, 24 Nov 2022 19:16:39 +0000 (19:16 +0000)
committerGeert Uytterhoeven <geert+renesas@glider.be>
Mon, 26 Dec 2022 10:00:05 +0000 (11:00 +0100)
commit868695e43b94c7ea08155fee29d57b414b7ab060
tree63bfca70f810916c85f9aec9232f5fad7d964572
parent1b929c02afd37871d5afb9d498426f83432e71c2
clk: renesas: r9a09g011: Add PWM clock and reset entries

Add PWM{8..14} clock and reset entries to CPG driver.

The PWM IP on the RZ/V2M comes with 16 channels, but the ISP has
full control of channels 0 to 7, and channel 15, therefore Linux
is only allowed to use channels 8 to 14.

The PWM channel 15 shares apb clock and reset with PWM{8..14}.
The reset is deasserted by the bootloader/ISP.

Add PWM{8..14} clocks to CPG driver and mark apb clock as
critical clock, so that the apb clock will be always on.

Signed-off-by: Biju Das <biju.das.jz@bp.renesas.com>
Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be>
Link: https://lore.kernel.org/r/20221124191643.3193423-2-biju.das.jz@bp.renesas.com
Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
drivers/clk/renesas/r9a09g011-cpg.c