Skip to contentSkip to conversation

Remove GIC 128 - 136

PATCH In review Jamin Lin via 2 participants 3 messages Jan 5 Arm/Aspeed machine support

lore
Share & tools
lore
#0 lore raw

cover Remove GIC 128 - 136

This patch series is based on legoater/qemu, branch aspeed-next.
https://github.com/legoater/qemu

v1:
1. Remove PSP GIC 128 to 138 for AST2700 A0.
Fix this patch lost to update inpins.
https://patchwork.kernel.org/project/qemu-devel/patch/[email protected]/

Jamin Lin (1):
hw/intc/aspeed: Remove GIC 128 - 136

 hw/arm/aspeed_ast27x0.c | 17 -----------------
 hw/intc/aspeed_intc.c   |  2 +-
 2 files changed, 1 insertion(+), 18 deletions(-)
Signature · 1 line
2.43.0
#1 lore raw

PATCH 1/1 hw/intc/aspeed: Remove GIC 128 - 136

The GIC interrupts 128 - 136 were only used by the AST2700 A0 SoC. Since the AST2700 A0 has been deprecated, these interrupt definitions are no longer needed. This commit removes them to clean up the codebase.

---
 hw/arm/aspeed_ast27x0.c | 17 -----------------
 hw/intc/aspeed_intc.c   |  2 +-
 2 files changed, 1 insertion(+), 18 deletions(-)
hw/arm/aspeed_ast27x0.c +0 -17
index 52e509afd5..d17f446661 100644
@@ -207,7 +207,6 @@ static const int ast2700_gic197_intcmap[] = {
     [ASPEED_DEV_PECI]      = 4,
 };
 
-/* GICINT 128 ~ 136 */
 /* GICINT 192 ~ 201 */
 struct gic_intc_irq_info {
     int irq;
@@ -227,15 +226,6 @@ static const struct gic_intc_irq_info ast2700_gic_intcmap[] = {
     {199, 1, 7, NULL},
     {200, 1, 8, NULL},
     {201, 1, 9, NULL},
-    {128, 0, 1, ast2700_gic192_intcmap},
-    {129, 0, 2, NULL},
-    {130, 0, 3, ast2700_gic194_intcmap},
-    {131, 0, 4, ast2700_gic195_intcmap},
-    {132, 0, 5, ast2700_gic196_intcmap},
-    {133, 0, 6, ast2700_gic197_intcmap},
-    {134, 0, 7, NULL},
-    {135, 0, 8, NULL},
-    {136, 0, 9, NULL},
 };
 
 static qemu_irq aspeed_soc_ast2700_get_irq(AspeedSoCState *s, int dev)
@@ -893,13 +883,6 @@ static void aspeed_soc_ast2700_realize(DeviceState *dev, Error **errp)
         /*
          * The AST2700 I2C controller has one source INTC per bus.
          *
-         * For AST2700 A0:
-         * I2C bus interrupts are connected to the OR gate from bit 0 to bit
-         * 15, and the OR gate output pin is connected to the input pin of
-         * GICINT130 of INTC (CPU Die). Then, the output pin is connected to
-         * the GIC.
-         *
-         * For AST2700 A1:
          * I2C bus interrupts are connected to the OR gate from bit 0 to bit
          * 15, and the OR gate output pin is connected to the input pin of
          * GICINT194 of INTCIO (IO Die). Then, the output pin is connected
hw/intc/aspeed_intc.c +1 -1
index 1702cb87dc..77fae39205 100644
@@ -778,7 +778,7 @@ static void aspeed_2700_intc_class_init(ObjectClass *klass, const void *data)
 
     dc->desc = "ASPEED 2700 INTC Controller";
     aic->num_lines = 32;
-    aic->num_inpins = 10;
+    aic->num_inpins = 1;
     aic->num_outpins = 10;
     aic->mem_size = 0x4000;
     aic->nr_regs = 0xB08 >> 2;
Signature · 1 line
2.43.0
#2 lore raw
In reply to Jamin Lin via

Hello Jamin,

Quoted 7 lines · Jamin Lin

This patch series is based on legoater/qemu, branch aspeed-next.
https://github.com/legoater/qemu

v1:
1. Remove PSP GIC 128 to 138 for AST2700 A0.
Fix this patch lost to update inpins.
https://patchwork.kernel.org/project/qemu-devel/patch/[email protected]/

I have merged this patch in :

https://patchwork.kernel.org/project/qemu-devel/patch/[email protected]/

and pushed in branch aspeed-next.

Thanks,

C.