mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-16 17:58:23 +00:00
1918ff5c95
This driver provides clock and reset control for the Renesas R9A07G044L (RZ/G2L) and R9A07G044C (RZ/G2LC) SoC. It consists of two parts: * driver code which is applicable to all SoCs in the RZ/G2L family. * static data describing the clocks and resets which are specific to the R9A07G044{L,C} SoCs. The identifier r9a07g044 (without a final letter) is used to indicate that both SoCs are supported. clk_set_rate() and clk_get_rate() are implemented only for the clocks that are actually used in u-boot. The CPG driver is marked with DM_FLAG_PRE_RELOC to ensure that its bind function is called before the SCIF (serial port) driver is probed. This is required so that we can de-assert the relevant reset signal during the serial driver probe function. This patch is based on the corresponding Linux v6.5 driver (commit 52e12027d50affbf60c6c9c64db8017391b0c22e). Signed-off-by: Paul Barker <paul.barker.ct@bp.renesas.com> Reviewed-by: Biju Das <biju.das.jz@bp.renesas.com> Reviewed-by: Lad Prabhakar <prabhakar.mahadev-lad.rj@bp.renesas.com> Reviewed-by: Marek Vasut <marek.vasut+renesas@mailbox.org>
167 lines
4.1 KiB
Text
167 lines
4.1 KiB
Text
config CLK_RENESAS
|
|
bool "Renesas clock drivers"
|
|
depends on CLK && ARCH_RMOBILE
|
|
help
|
|
Enable support for clock present on Renesas SoCs.
|
|
|
|
config CLK_RCAR
|
|
bool "Renesas RCar clock driver support"
|
|
help
|
|
Enable common code for clocks on Renesas RCar SoCs.
|
|
|
|
config CLK_RCAR_CPG_LIB
|
|
bool "CPG/MSSR library functions"
|
|
|
|
config CLK_RCAR_GEN2
|
|
bool "Renesas RCar Gen2 clock driver"
|
|
def_bool y if RCAR_32
|
|
depends on CLK_RENESAS
|
|
select CLK_RCAR
|
|
help
|
|
Enable this to support the clocks on Renesas RCar Gen2 SoC.
|
|
|
|
config CLK_R8A7790
|
|
bool "Renesas R8A7790 clock driver"
|
|
depends on CLK_RCAR_GEN2
|
|
help
|
|
Enable this to support the clocks on Renesas R8A7790 SoC.
|
|
|
|
config CLK_R8A7791
|
|
bool "Renesas R8A7791 clock driver"
|
|
depends on CLK_RCAR_GEN2
|
|
help
|
|
Enable this to support the clocks on Renesas R8A7791 SoC.
|
|
|
|
config CLK_R8A7792
|
|
bool "Renesas R8A7792 clock driver"
|
|
depends on CLK_RCAR_GEN2
|
|
help
|
|
Enable this to support the clocks on Renesas R8A7792 SoC.
|
|
|
|
config CLK_R8A7793
|
|
bool "Renesas R8A7793 clock driver"
|
|
depends on CLK_RCAR_GEN2
|
|
help
|
|
Enable this to support the clocks on Renesas R8A7793 SoC.
|
|
|
|
config CLK_R8A7794
|
|
bool "Renesas R8A7794 clock driver"
|
|
depends on CLK_RCAR_GEN2
|
|
help
|
|
Enable this to support the clocks on Renesas R8A7794 SoC.
|
|
|
|
config CLK_RCAR_GEN3
|
|
bool "Renesas RCar Gen3 and Gen4 clock driver"
|
|
def_bool y if RCAR_64
|
|
depends on CLK_RENESAS
|
|
select CLK_RCAR
|
|
select CLK_RCAR_CPG_LIB
|
|
select DM_RESET
|
|
help
|
|
Enable this to support the clocks on Renesas RCar Gen3 and Gen4 SoCs.
|
|
|
|
config CLK_R8A774A1
|
|
bool "Renesas R8A774A1 clock driver"
|
|
def_bool y if R8A774A1
|
|
depends on CLK_RCAR_GEN3
|
|
help
|
|
Enable this to support the clocks on Renesas R8A774A1 SoC.
|
|
|
|
config CLK_R8A774B1
|
|
bool "Renesas R8A774B1 clock driver"
|
|
depends on CLK_RCAR_GEN3
|
|
help
|
|
Enable this to support the clocks on Renesas R8A774B1 SoC.
|
|
|
|
config CLK_R8A774C0
|
|
bool "Renesas R8A774C0 clock driver"
|
|
depends on CLK_RCAR_GEN3
|
|
help
|
|
Enable this to support the clocks on Renesas R8A774C0 SoC.
|
|
|
|
config CLK_R8A774E1
|
|
bool "Renesas R8A774E1 clock driver"
|
|
depends on CLK_RCAR_GEN3
|
|
help
|
|
Enable this to support the clocks on Renesas R8A774E1 SoC.
|
|
|
|
config CLK_R8A7795
|
|
bool "Renesas R8A7795 clock driver"
|
|
depends on CLK_RCAR_GEN3
|
|
help
|
|
Enable this to support the clocks on Renesas R8A7795 SoC.
|
|
|
|
config CLK_R8A77960
|
|
bool "Renesas R8A77960 clock driver"
|
|
depends on CLK_RCAR_GEN3
|
|
help
|
|
Enable this to support the clocks on Renesas R8A77960 SoC.
|
|
|
|
config CLK_R8A77961
|
|
bool "Renesas R8A77961 clock driver"
|
|
depends on CLK_RCAR_GEN3
|
|
help
|
|
Enable this to support the clocks on Renesas R8A77961 SoC.
|
|
|
|
config CLK_R8A77965
|
|
bool "Renesas R8A77965 clock driver"
|
|
depends on CLK_RCAR_GEN3
|
|
help
|
|
Enable this to support the clocks on Renesas R8A77965 SoC.
|
|
|
|
config CLK_R8A77970
|
|
bool "Renesas R8A77970 clock driver"
|
|
depends on CLK_RCAR_GEN3
|
|
help
|
|
Enable this to support the clocks on Renesas R8A77970 SoC.
|
|
|
|
config CLK_R8A77980
|
|
bool "Renesas R8A77980 clock driver"
|
|
depends on CLK_RCAR_GEN3
|
|
help
|
|
Enable this to support the clocks on Renesas R8A77980 SoC.
|
|
|
|
config CLK_R8A77990
|
|
bool "Renesas R8A77990 clock driver"
|
|
depends on CLK_RCAR_GEN3
|
|
help
|
|
Enable this to support the clocks on Renesas R8A77990 SoC.
|
|
|
|
config CLK_R8A77995
|
|
bool "Renesas R8A77995 clock driver"
|
|
depends on CLK_RCAR_GEN3
|
|
help
|
|
Enable this to support the clocks on Renesas R8A77995 SoC.
|
|
|
|
config CLK_R8A779A0
|
|
bool "Renesas R8A779A0 clock driver"
|
|
depends on CLK_RCAR_GEN3
|
|
help
|
|
Enable this to support the clocks on Renesas R8A779A0 SoC.
|
|
|
|
config CLK_R8A779F0
|
|
bool "Renesas R8A779F0 clock driver"
|
|
depends on CLK_RCAR_GEN3
|
|
help
|
|
Enable this to support the clocks on Renesas R8A779F0 SoC.
|
|
|
|
config CLK_R8A779G0
|
|
bool "Renesas R8A779G0 clock driver"
|
|
depends on CLK_RCAR_GEN3
|
|
help
|
|
Enable this to support the clocks on Renesas R8A779G0 SoC.
|
|
|
|
config CLK_R9A06G032
|
|
bool "Renesas R9A06G032 clock driver"
|
|
depends on CLK_RENESAS
|
|
help
|
|
Enable this to support the clocks on Renesas R9A06G032 SoC.
|
|
|
|
config CLK_RZG2L
|
|
bool "Renesas RZ/G2L family clock support"
|
|
depends on CLK_RENESAS
|
|
select DM_RESET
|
|
|
|
config CLK_R9A07G044
|
|
bool "RZ/G2L (R9A07G044L) clock support"
|
|
depends on CLK_RZG2L
|