Skip to contentSkip to conversation

bus: omap_l3_noc: Fix offset for DRA7 CLK1_HOST_CLK1_2 instance

PATCH In review Nishanth Menon 2 participants 2 messages Apr 16, 2015 – May 4, 2015 OMAP2+ support

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 bus: omap_l3_noc: Fix offset for DRA7 CLK1_HOST_CLK1_2 instance

From: Illia Smyrnov <[email protected]>

The base address for DRA7 CLK1_HOST_CLK1_2 host instance is 0x44800000, so correct offset is 0x800000. DRA7 TRM rev X(fewb 2015) has updates for this information.

With wrong offset these errors are not correctly cleared by the L3 IRQ handler and cause an continuous interrupt scenario and system lockup.

---
 drivers/bus/omap_l3_noc.h |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/bus/omap_l3_noc.h +1 -1
index 95254585db86..a314d800f394 100644
@@ -274,7 +274,7 @@ static struct l3_flagmux_data dra_l3_flagmux_clk1 = {
 
 static struct l3_target_data dra_l3_target_data_clk2[] = {
 	{0x0,	"HOST CLK1",},
-	{0x0,	"HOST CLK2",},
+	{0x800000, "HOST CLK2",},
 	{0xdead, L3_TARGET_NOT_SUPPORTED,},
 	{0x3400, "SHA2_2",},
 	{0x0900, "BB2D",},
Signature · 1 line
1.7.9.5
maintainer
#1 lore raw
Quoted 20 lines · Nishanth Menon

From: Illia Smyrnov <[email protected]>

The base address for DRA7 CLK1_HOST_CLK1_2 host instance is 0x44800000, so correct offset is 0x800000. DRA7 TRM rev X(fewb 2015) has updates for this information.

With wrong offset these errors are not correctly cleared by the L3 IRQ handler and cause an continuous interrupt scenario and system lockup.

---
 drivers/bus/omap_l3_noc.h |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/bus/omap_l3_noc.h +0 -0
index 95254585db86..a314d800f394 100644

drivers/bus/omap_l3_noc.h static struct l3_flagmux_data dra_l3_flagmux_clk1 = { · line 280

Quoted 8 lines
drivers/bus/omap_l3_noc.h +1 -1
@@ -274,7 +274,7 @@ static struct l3_flagmux_data dra_l3_flagmux_clk1 = {
 
 static struct l3_target_data dra_l3_target_data_clk2[] = {
 	{0x0,	"HOST CLK1",},
-	{0x0,	"HOST CLK2",},
+	{0x800000, "HOST CLK2",},
 	{0xdead, L3_TARGET_NOT_SUPPORTED,},
 	{0x3400, "SHA2_2",},
 	{0x0900, "BB2D",},

Applying into omap-for-v4.1/fixes thanks.

Tony