Skip to contentSkip to conversation

Add Clock driver support for RZ/G2[HN] SoC's

PATCH New Biju Das 2 participants 5 messages Oct 14, 2020 – Oct 15, 2020

Subsystems (4)
lore
Share & tools
lore

Biju Das

author
#0 lore raw

v3 cover Add Clock driver support for RZ/G2[HN] SoC's

Add Clock driver support for RZ/G2[HN] SoC's.

This patches are based on u-boot-sh master.

Biju Das (2):
clk: renesas: Add R8A774B1 clock tables
clk: renesas: Add R8A774E1 clock tables

 arch/arm/mach-rmobile/Kconfig.64        |   2 +
 drivers/clk/renesas/Kconfig             |  12 +
 drivers/clk/renesas/Makefile            |   2 +
 drivers/clk/renesas/r8a774b1-cpg-mssr.c | 336 ++++++++++++++++++++++
 drivers/clk/renesas/r8a774e1-cpg-mssr.c | 358 ++++++++++++++++++++++++
 5 files changed, 710 insertions(+)
 create mode 100644 drivers/clk/renesas/r8a774b1-cpg-mssr.c
 create mode 100644 drivers/clk/renesas/r8a774e1-cpg-mssr.c
Signature · 1 line
2.17.1
author
#1 lore raw

PATCH v3 1/2 clk: renesas: Add R8A774B1 clock tables

This sync's the RZ/G2N clock tables with mainline linux 5.9 commit bbf5c979011a ("Linux 5.9").

---
V2->V3
* Synced with Linux 5.9.
* Updated commit message.

V1->V2
* Rebased to u-boot-sh master.

---
 arch/arm/mach-rmobile/Kconfig.64        |   1 +
 drivers/clk/renesas/Kconfig             |   6 +
 drivers/clk/renesas/Makefile            |   1 +
 drivers/clk/renesas/r8a774b1-cpg-mssr.c | 336 ++++++++++++++++++++++++
 4 files changed, 344 insertions(+)
 create mode 100644 drivers/clk/renesas/r8a774b1-cpg-mssr.c
arch/arm/mach-rmobile/Kconfig.64 +1 -0
index 0d55b74c42..2bf17ddc24 100644
@@ -7,6 +7,7 @@ config R8A774A1
 
 config R8A774B1
 	bool "Renesas SoC R8A774B1"
+	imply CLK_R8A774B1
 
 config R8A774E1
 	bool "Renesas SoC R8A774E1"
drivers/clk/renesas/Kconfig +6 -0
index 284e2138b3..00a173b8c8 100644
@@ -55,6 +55,12 @@ config CLK_R8A774A1
         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_R8A7795
 	bool "Renesas R8A7795 clock driver"
 	depends on CLK_RCAR_GEN3
drivers/clk/renesas/Makefile +1 -0
index dd599b757e..2e8d796f89 100644
@@ -1,6 +1,7 @@
 obj-$(CONFIG_CLK_RENESAS) += renesas-cpg-mssr.o
 obj-$(CONFIG_CLK_RCAR_GEN2) += clk-rcar-gen2.o
 obj-$(CONFIG_CLK_R8A774A1) += r8a774a1-cpg-mssr.o
+obj-$(CONFIG_CLK_R8A774B1) += r8a774b1-cpg-mssr.o
 obj-$(CONFIG_CLK_R8A7790) += r8a7790-cpg-mssr.o
 obj-$(CONFIG_CLK_R8A7791) += r8a7791-cpg-mssr.o
 obj-$(CONFIG_CLK_R8A7792) += r8a7792-cpg-mssr.o
drivers/clk/renesas/r8a774b1-cpg-mssr.c new file +336 -0

336 lines not on this page · raw message

Signature · 1 line
2.17.1
Applied
#2 lore raw

PATCH v3 1/2 clk: renesas: Add R8A774B1 clock tables

Quoted 2 lines · Biju Das

This sync's the RZ/G2N clock tables with mainline linux 5.9 commit bbf5c979011a ("Linux 5.9").

Applied, thanks.

author
#3 lore raw

PATCH v3 2/2 clk: renesas: Add R8A774E1 clock tables

In reply to Biju Das

This sync's the RZ/G2H clock tables with mainline linux 5.9 commit bbf5c979011a ("Linux 5.9").

---
V2->V3
* Synced with Linux 5.9.
* Updated commit message.

V1->V2
* Rebased to u-boot-sh master.

---
 arch/arm/mach-rmobile/Kconfig.64        |   1 +
 drivers/clk/renesas/Kconfig             |   6 +
 drivers/clk/renesas/Makefile            |   1 +
 drivers/clk/renesas/r8a774e1-cpg-mssr.c | 358 ++++++++++++++++++++++++
 4 files changed, 366 insertions(+)
 create mode 100644 drivers/clk/renesas/r8a774e1-cpg-mssr.c
arch/arm/mach-rmobile/Kconfig.64 +1 -0
index 2bf17ddc24..59cb072096 100644
@@ -11,6 +11,7 @@ config R8A774B1
 
 config R8A774E1
 	bool "Renesas SoC R8A774E1"
+	imply CLK_R8A774E1
 
 config R8A7795
 	bool "Renesas SoC R8A7795"
drivers/clk/renesas/Kconfig +6 -0
index 00a173b8c8..44afcecbfa 100644
@@ -61,6 +61,12 @@ config CLK_R8A774B1
 	help
 	  Enable this to support the clocks on Renesas R8A774B1 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
drivers/clk/renesas/Makefile +1 -0
index 2e8d796f89..da353e811d 100644
@@ -2,6 +2,7 @@ obj-$(CONFIG_CLK_RENESAS) += renesas-cpg-mssr.o
 obj-$(CONFIG_CLK_RCAR_GEN2) += clk-rcar-gen2.o
 obj-$(CONFIG_CLK_R8A774A1) += r8a774a1-cpg-mssr.o
 obj-$(CONFIG_CLK_R8A774B1) += r8a774b1-cpg-mssr.o
+obj-$(CONFIG_CLK_R8A774E1) += r8a774e1-cpg-mssr.o
 obj-$(CONFIG_CLK_R8A7790) += r8a7790-cpg-mssr.o
 obj-$(CONFIG_CLK_R8A7791) += r8a7791-cpg-mssr.o
 obj-$(CONFIG_CLK_R8A7792) += r8a7792-cpg-mssr.o
drivers/clk/renesas/r8a774e1-cpg-mssr.c new file +358 -0

358 lines not on this page · raw message

Signature · 1 line
2.17.1
Applied
#4 lore raw

PATCH v3 2/2 clk: renesas: Add R8A774E1 clock tables

Quoted 2 lines · Biju Das

This sync's the RZ/G2H clock tables with mainline linux 5.9 commit bbf5c979011a ("Linux 5.9").

Applied, thanks.