diff options
| author | Paul Barker <[email protected]> | 2023-10-16 10:25:29 +0100 |
|---|---|---|
| committer | Marek Vasut <[email protected]> | 2023-10-16 15:46:18 +0200 |
| commit | 1918ff5c95bef489e8d025f73b902af6794e4d28 (patch) | |
| tree | b0d91ab081ad5684666202c07d38dca30b7fefd6 /arch | |
| parent | a4b3e0865218078f5061383884d927f8f4d0fc72 (diff) | |
clk: renesas: Add RZ/G2L & RZ/G2LC CPG driver
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 <[email protected]>
Reviewed-by: Biju Das <[email protected]>
Reviewed-by: Lad Prabhakar <[email protected]>
Reviewed-by: Marek Vasut <[email protected]>
Diffstat (limited to 'arch')
| -rw-r--r-- | arch/arm/mach-rmobile/Kconfig | 1 | ||||
| -rw-r--r-- | arch/arm/mach-rmobile/Kconfig.rzg2l | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/arch/arm/mach-rmobile/Kconfig b/arch/arm/mach-rmobile/Kconfig index 1d8d26d8367..c5419e8d69c 100644 --- a/arch/arm/mach-rmobile/Kconfig +++ b/arch/arm/mach-rmobile/Kconfig @@ -70,6 +70,7 @@ config RZG2L prompt "Renesas RZ/G2L Family ARM SoCs" select GICV3 select RCAR_64 + imply CLK_RZG2L imply MULTI_DTB_FIT imply MULTI_DTB_FIT_USER_DEFINED_AREA imply RENESAS_SDHI diff --git a/arch/arm/mach-rmobile/Kconfig.rzg2l b/arch/arm/mach-rmobile/Kconfig.rzg2l index eda04df5c61..039d6b0a45a 100644 --- a/arch/arm/mach-rmobile/Kconfig.rzg2l +++ b/arch/arm/mach-rmobile/Kconfig.rzg2l @@ -5,6 +5,7 @@ if RZG2L config R9A07G044L bool "Renesas R9A07G044L SoC" + imply CLK_R9A07G044 help Enable support for the Renesas R9A07G044L (RZ/G2L) SoC. |
