Skip to contentSkip to conversation

hw/arm/aspeed: Fix STRAP2 configuration for Tacoma

PATCH In review Andrew Jeffery 3 participants 4 messages Oct 17, 2019 Arm/Aspeed machine support

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 hw/arm/aspeed: Fix STRAP2 configuration for Tacoma

We were writing the STRAP2 configuration to the STRAP1 property/register

---
 hw/arm/aspeed.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
hw/arm/aspeed.c +1 -1
index ad86ef2eccec..807868224c6c 100644
@@ -711,7 +711,7 @@ static void aspeed_machine_tacoma_class_init(ObjectClass *oc, void *data)
     mc->desc       = "Aspeed AST2600 EVB (Cortex A7)";
     amc->soc_name  = "ast2600-a0";
     amc->hw_strap1 = TACOMA_BMC_HW_STRAP1;
-    amc->hw_strap1 = TACOMA_BMC_HW_STRAP2;
+    amc->hw_strap2 = TACOMA_BMC_HW_STRAP2;
     amc->fmc_model = "mx66l1g45g";
     amc->spi_model = "mx66l1g45g";
     amc->num_cs    = 2;
Signature · 1 line
2.20.1
maintainer Reviewed-by Joel on v1 1/1
#1 lore raw
Quoted 4 lines · Andrew Jeffery

We were writing the STRAP2 configuration to the STRAP1 property/register

Nice, I have the same patch in my tree, and forgot about it.

Reviewed-by Joel
Quoted 20 lines
---
 hw/arm/aspeed.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
hw/arm/aspeed.c +1 -2
index ad86ef2eccec..807868224c6c 100644
@@ -711,7 +711,7 @@ static void aspeed_machine_tacoma_class_init(ObjectClass *oc, void *data)
     mc->desc       = "Aspeed AST2600 EVB (Cortex A7)";
     amc->soc_name  = "ast2600-a0";
     amc->hw_strap1 = TACOMA_BMC_HW_STRAP1;
-    amc->hw_strap1 = TACOMA_BMC_HW_STRAP2;
+    amc->hw_strap2 = TACOMA_BMC_HW_STRAP2;
     amc->fmc_model = "mx66l1g45g";
     amc->spi_model = "mx66l1g45g";
     amc->num_cs    = 2;
--

2.20.1

#2 lore raw
Quoted 9 lines · Joel Stanley
Quoted 4 lines · Andrew Jeffery

We were writing the STRAP2 configuration to the STRAP1 property/register

Nice, I have the same patch in my tree, and forgot about it.

Reviewed-by Joel

I will merge this fix in the machine definition patch if you don't mind.

C.

Quoted 21 lines
Quoted 21 lines
---
 hw/arm/aspeed.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
hw/arm/aspeed.c +1 -2
index ad86ef2eccec..807868224c6c 100644
@@ -711,7 +711,7 @@ static void aspeed_machine_tacoma_class_init(ObjectClass *oc, void *data)
     mc->desc       = "Aspeed AST2600 EVB (Cortex A7)";
     amc->soc_name  = "ast2600-a0";
     amc->hw_strap1 = TACOMA_BMC_HW_STRAP1;
-    amc->hw_strap1 = TACOMA_BMC_HW_STRAP2;
+    amc->hw_strap2 = TACOMA_BMC_HW_STRAP2;
     amc->fmc_model = "mx66l1g45g";
     amc->spi_model = "mx66l1g45g";
     amc->num_cs    = 2;
--

2.20.1

#3 lore raw
Quoted 5 lines · Cédric Le Goater
Quoted 4 lines · Joel Stanley
Quoted 3 lines · Andrew Jeffery

We were writing the STRAP2 configuration to the STRAP1 property/register

Quoted 7 lines
Quoted 5 lines
Quoted 1 line

Nice, I have the same patch in my tree, and forgot about it.

Reviewed-by Joel

I will merge this fix in the machine definition patch if you don't mind.

Yep, that's fine.

Andrew