Skip to contentSkip to conversation

hw/arm/aspeed Move ast2700-evb alias to ast2700a1-evb

PATCH In review Jamin Lin via 2 participants 2 messages Sep 2, 2025 Arm/Aspeed machine support

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 hw/arm/aspeed Move ast2700-evb alias to ast2700a1-evb

This patch moves the "ast2700-evb" alias from the A0 to A1. The A0 machine remains available via its explicit name ("ast2700a0-evb"), while functional tests are updated to target A0 by name instead of relying on the generic alias.

---
 hw/arm/aspeed.c                                 | 2 +-
 tests/functional/aarch64/test_aspeed_ast2700.py | 4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)
hw/arm/aspeed.c +1 -1
index c31bbe7701..d21b21965a 100644
@@ -1995,7 +1995,6 @@ static void aspeed_machine_ast2700a0_evb_class_init(ObjectClass *oc,
     MachineClass *mc = MACHINE_CLASS(oc);
     AspeedMachineClass *amc = ASPEED_MACHINE_CLASS(oc);
 
-    mc->alias = "ast2700-evb";
     mc->desc = "Aspeed AST2700 A0 EVB (Cortex-A35)";
     amc->soc_name  = "ast2700-a0";
     amc->hw_strap1 = AST2700_EVB_HW_STRAP1;
@@ -2018,6 +2017,7 @@ static void aspeed_machine_ast2700a1_evb_class_init(ObjectClass *oc,
     MachineClass *mc = MACHINE_CLASS(oc);
     AspeedMachineClass *amc = ASPEED_MACHINE_CLASS(oc);
 
+    mc->alias = "ast2700-evb";
     mc->desc = "Aspeed AST2700 A1 EVB (Cortex-A35)";
     amc->soc_name  = "ast2700-a1";
     amc->hw_strap1 = AST2700_EVB_HW_STRAP1;
tests/functional/aarch64/test_aspeed_ast2700.py +2 -2
index d02dc7991c..e8e06701cf 100755
@@ -111,8 +111,8 @@ def start_ast2700_test_vbootrom(self, name):
         self.do_test_aarch64_aspeed_sdk_start(
                 self.scratch_file(name, 'image-bmc'))
 
-    def test_aarch64_ast2700_evb_sdk_v09_06(self):
-        self.set_machine('ast2700-evb')
+    def test_aarch64_ast2700a0_evb_sdk_v09_06(self):
+        self.set_machine('ast2700a0-evb')
 
         self.archive_extract(self.ASSET_SDK_V906_AST2700)
         self.start_ast2700_test('ast2700-a0-default')
Signature · 1 line
2.43.0
Reviewed-by on v1 1/1
#1 lore raw
Quoted 36 lines · Jamin Lin

This patch moves the "ast2700-evb" alias from the A0 to A1. The A0 machine remains available via its explicit name ("ast2700a0-evb"), while functional tests are updated to target A0 by name instead of relying on the generic alias.

---
  hw/arm/aspeed.c                                 | 2 +-
  tests/functional/aarch64/test_aspeed_ast2700.py | 4 ++--
  2 files changed, 3 insertions(+), 3 deletions(-)
hw/arm/aspeed.c +1 -1
index c31bbe7701..d21b21965a 100644
@@ -1995,7 +1995,6 @@ static void aspeed_machine_ast2700a0_evb_class_init(ObjectClass *oc,
      MachineClass *mc = MACHINE_CLASS(oc);
      AspeedMachineClass *amc = ASPEED_MACHINE_CLASS(oc);
 
-    mc->alias = "ast2700-evb";
      mc->desc = "Aspeed AST2700 A0 EVB (Cortex-A35)";
      amc->soc_name  = "ast2700-a0";
      amc->hw_strap1 = AST2700_EVB_HW_STRAP1;
@@ -2018,6 +2017,7 @@ static void aspeed_machine_ast2700a1_evb_class_init(ObjectClass *oc,
      MachineClass *mc = MACHINE_CLASS(oc);
      AspeedMachineClass *amc = ASPEED_MACHINE_CLASS(oc);
 
+    mc->alias = "ast2700-evb";
      mc->desc = "Aspeed AST2700 A1 EVB (Cortex-A35)";
      amc->soc_name  = "ast2700-a1";
      amc->hw_strap1 = AST2700_EVB_HW_STRAP1;
tests/functional/aarch64/test_aspeed_ast2700.py +0 -0
index d02dc7991c..e8e06701cf 100755

tests/functional/aarch64/test_aspeed_ast2700.py def start_ast2700_test_vbootrom(self, name): · line 118

Quoted 10 lines
tests/functional/aarch64/test_aspeed_ast2700.py +2 -2
@@ -111,8 +111,8 @@ def start_ast2700_test_vbootrom(self, name):
          self.do_test_aarch64_aspeed_sdk_start(
                  self.scratch_file(name, 'image-bmc'))
 
-    def test_aarch64_ast2700_evb_sdk_v09_06(self):
-        self.set_machine('ast2700-evb')
+    def test_aarch64_ast2700a0_evb_sdk_v09_06(self):
+        self.set_machine('ast2700a0-evb')
 
          self.archive_extract(self.ASSET_SDK_V906_AST2700)
          self.start_ast2700_test('ast2700-a0-default')

Thanks,

C.