Skip to contentSkip to conversation

clk: meson: g12a: Add missing NNA source clocks for g12b

PATCH Applied [email protected] 4 participants 4 messages Jun 4, 2021 – Jun 9, 2021

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 clk: meson: g12a: Add missing NNA source clocks for g12b

From: Nick Xie <[email protected]>

This adds the Neural Network Accelerator source clocks for g12b.

Initial support for sm1 already exist in
commit 2f1efa5340ef
("clk: meson: g12a: Add support for NNA CLK source clocks")

The sm1 and g12b share the same NNA source clocks. This patch add missing NNA clocks for A311D (g12b).

---
 drivers/clk/meson/g12a.c | 6 ++++++
 1 file changed, 6 insertions(+)
drivers/clk/meson/g12a.c +6 -0
index b080359b4645..6a1db16b126f 100644
@@ -4723,6 +4723,12 @@ static struct clk_hw_onecell_data g12b_hw_onecell_data = {
 		[CLKID_SPICC1_SCLK_SEL]		= &g12a_spicc1_sclk_sel.hw,
 		[CLKID_SPICC1_SCLK_DIV]		= &g12a_spicc1_sclk_div.hw,
 		[CLKID_SPICC1_SCLK]		= &g12a_spicc1_sclk.hw,
+		[CLKID_NNA_AXI_CLK_SEL]		= &sm1_nna_axi_clk_sel.hw,
+		[CLKID_NNA_AXI_CLK_DIV]		= &sm1_nna_axi_clk_div.hw,
+		[CLKID_NNA_AXI_CLK]		= &sm1_nna_axi_clk.hw,
+		[CLKID_NNA_CORE_CLK_SEL]	= &sm1_nna_core_clk_sel.hw,
+		[CLKID_NNA_CORE_CLK_DIV]	= &sm1_nna_core_clk_div.hw,
+		[CLKID_NNA_CORE_CLK]		= &sm1_nna_core_clk.hw,
 		[CLKID_MIPI_DSI_PXCLK_SEL]	= &g12a_mipi_dsi_pxclk_sel.hw,
 		[CLKID_MIPI_DSI_PXCLK_DIV]	= &g12a_mipi_dsi_pxclk_div.hw,
 		[CLKID_MIPI_DSI_PXCLK]		= &g12a_mipi_dsi_pxclk.hw,
Signature · 1 line
2.25.1
Acked-by on v1 1/1
#1 lore raw

Hi,

Le 04/06/2021 à 05:29, [email protected] a écrit :

Quoted 24 lines

From: Nick Xie <[email protected]>

This adds the Neural Network Accelerator source clocks for g12b.

Initial support for sm1 already exist in
commit 2f1efa5340ef
("clk: meson: g12a: Add support for NNA CLK source clocks")

The sm1 and g12b share the same NNA source clocks. This patch add missing NNA clocks for A311D (g12b).

---
 drivers/clk/meson/g12a.c | 6 ++++++
 1 file changed, 6 insertions(+)
drivers/clk/meson/g12a.c +0 -0
index b080359b4645..6a1db16b126f 100644
@@ -4723,6 +4723,12 @@ static struct clk_hw_onecell_data g12b_hw_onecell_data = {
 		[CLKID_SPICC1_SCLK_SEL]		= &g12a_spicc1_sclk_sel.hw,
 		[CLKID_SPICC1_SCLK_DIV]		= &g12a_spicc1_sclk_div.hw,

drivers/clk/meson/g12a.c static struct clk_hw_onecell_data g12b_hw_onecell_data = { · line 4734

Quoted 10 lines
drivers/clk/meson/g12a.c +6 -0
 		[CLKID_SPICC1_SCLK]		= &g12a_spicc1_sclk.hw,
+		[CLKID_NNA_AXI_CLK_SEL]		= &sm1_nna_axi_clk_sel.hw,
+		[CLKID_NNA_AXI_CLK_DIV]		= &sm1_nna_axi_clk_div.hw,
+		[CLKID_NNA_AXI_CLK]		= &sm1_nna_axi_clk.hw,
+		[CLKID_NNA_CORE_CLK_SEL]	= &sm1_nna_core_clk_sel.hw,
+		[CLKID_NNA_CORE_CLK_DIV]	= &sm1_nna_core_clk_div.hw,
+		[CLKID_NNA_CORE_CLK]		= &sm1_nna_core_clk.hw,
 		[CLKID_MIPI_DSI_PXCLK_SEL]	= &g12a_mipi_dsi_pxclk_sel.hw,
 		[CLKID_MIPI_DSI_PXCLK_DIV]	= &g12a_mipi_dsi_pxclk_div.hw,
 		[CLKID_MIPI_DSI_PXCLK]		= &g12a_mipi_dsi_pxclk.hw,

Thanks,
Neil

reviewer Reviewed-by on v1 1/1
#2 lore raw
In reply to [email protected]
Quoted 5 lines · On Fri, Jun 4, 2021 at 5:30 AM <[email protected]> wrote:

From: Nick Xie <[email protected]>

This adds the Neural Network Accelerator source clocks for g12b.

Quoted 8 lines

Initial support for sm1 already exist in
commit 2f1efa5340ef
("clk: meson: g12a: Add support for NNA CLK source clocks")

The sm1 and g12b share the same NNA source clocks. This patch add missing NNA clocks for A311D (g12b).

maintainer Applied
#3 lore raw
In reply to [email protected]
Quoted 4 lines · On Fri 04 Jun 2021 at 05:29, [email protected] wrote:

From: Nick Xie <[email protected]>

This adds the Neural Network Accelerator source clocks for g12b.

Quoted 8 lines

Initial support for sm1 already exist in
commit 2f1efa5340ef
("clk: meson: g12a: Add support for NNA CLK source clocks")

The sm1 and g12b share the same NNA source clocks. This patch add missing NNA clocks for A311D (g12b).

Applied. Thx.