Skip to contentSkip to conversation

clk: imx7ulp: remove snvs clock

PATCH Applied Anson Huang 2 participants 4 messages Feb 28, 2019 – Mar 20, 2019

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

PATCH 1/2 clk: imx7ulp: remove snvs clock

Since i.MX7ULP B0 chip, the SNVS module is moved into M4 domain and its clock is also moved into PCC0 which is contorlled by M4, Linux kernel should NOT add it into clock tree.

---
 drivers/clk/imx/clk-imx7ulp.c | 1 -
 1 file changed, 1 deletion(-)
drivers/clk/imx/clk-imx7ulp.c +0 -1
index ce30663..6668210 100644
@@ -151,7 +151,6 @@ static void __init imx7ulp_clk_pcc2_init(struct device_node *np)
 	clks[IMX7ULP_CLK_DMA1]		= imx_clk_hw_gate("dma1", "nic1_clk", base + 0x20, 30);
 	clks[IMX7ULP_CLK_RGPIO2P1]	= imx_clk_hw_gate("rgpio2p1", "nic1_bus_clk", base + 0x3c, 30);
 	clks[IMX7ULP_CLK_DMA_MUX1]	= imx_clk_hw_gate("dma_mux1", "nic1_bus_clk", base + 0x84, 30);
-	clks[IMX7ULP_CLK_SNVS]		= imx_clk_hw_gate("snvs", "nic1_bus_clk", base + 0x8c, 30);
 	clks[IMX7ULP_CLK_CAAM]		= imx_clk_hw_gate("caam", "nic1_clk", base + 0x90, 30);
 	clks[IMX7ULP_CLK_LPTPM4]	= imx7ulp_clk_composite("lptpm4",  periph_bus_sels, ARRAY_SIZE(periph_bus_sels), true, false, true, base + 0x94);
 	clks[IMX7ULP_CLK_LPTPM5]	= imx7ulp_clk_composite("lptpm5",  periph_bus_sels, ARRAY_SIZE(periph_bus_sels), true, false, true, base + 0x98);
Signature · 1 line
2.7.4
#1 lore raw

PATCH 2/2 dt-bindings: clock: imx7ulp: remove SNVS clock

Since i.MX7ULP B0 chip, SNVS module is moved into M4 domain, so remove it from Linux clock table.

---
 include/dt-bindings/clock/imx7ulp-clock.h | 1 -
 1 file changed, 1 deletion(-)
include/dt-bindings/clock/imx7ulp-clock.h +0 -1
index 21d872e..6f66f9005c 100644
@@ -65,7 +65,6 @@
 #define IMX7ULP_CLK_FLEXBUS		2
 #define IMX7ULP_CLK_SEMA42_1		3
 #define IMX7ULP_CLK_DMA_MUX1		4
-#define IMX7ULP_CLK_SNVS		5
 #define IMX7ULP_CLK_CAAM		6
 #define IMX7ULP_CLK_LPTPM4		7
 #define IMX7ULP_CLK_LPTPM5		8
Signature · 1 line
2.7.4
#2 lore raw
In reply to Anson Huang

Ping...

Best Regards!
Anson Huang

Quoted 45 lines

-----Original Message-----
From: Anson Huang
Sent: 2019年2月28日 16:56
To: [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; Aisheng Dong <[email protected]>; [email protected]; linux- [email protected]; [email protected]; linux- [email protected]; [email protected]
Cc: dl-linux-imx <[email protected]>
Subject: [PATCH 1/2] clk: imx7ulp: remove snvs clock

Since i.MX7ULP B0 chip, the SNVS module is moved into M4 domain and its clock is also moved into PCC0 which is contorlled by M4, Linux kernel should NOT add it into clock tree.

---
 drivers/clk/imx/clk-imx7ulp.c | 1 -
 1 file changed, 1 deletion(-)
drivers/clk/imx/clk-imx7ulp.c +0 -0
index ce30663..6668210 100644
@@ -151,7 +151,6 @@ static void __init imx7ulp_clk_pcc2_init(struct
 device_node *np)
 	clks[IMX7ULP_CLK_DMA1]		= imx_clk_hw_gate("dma1",
 "nic1_clk", base + 0x20, 30);
 	clks[IMX7ULP_CLK_RGPIO2P1]	= imx_clk_hw_gate("rgpio2p1",
 "nic1_bus_clk", base + 0x3c, 30);
 	clks[IMX7ULP_CLK_DMA_MUX1]	=

imx_clk_hw_gate("dma_mux1", "nic1_bus_clk", base + 0x84, 30);

drivers/clk/imx/clk-imx7ulp.c +0 -1
-	clks[IMX7ULP_CLK_SNVS]		= imx_clk_hw_gate("snvs",

"nic1_bus_clk", base + 0x8c, 30);
clks[IMX7ULP_CLK_CAAM] = imx_clk_hw_gate("caam",
"nic1_clk", base + 0x90, 30);
clks[IMX7ULP_CLK_LPTPM4] = imx7ulp_clk_composite("lptpm4",
periph_bus_sels, ARRAY_SIZE(periph_bus_sels), true, false, true, base + 0x94);
clks[IMX7ULP_CLK_LPTPM5] = imx7ulp_clk_composite("lptpm5",
periph_bus_sels, ARRAY_SIZE(periph_bus_sels), true, false, true, base + 0x98);
--
2.7.4