[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PULL 15/17] hw/loongarch: fdt remove unused irqchip node
From: |
Song Gao |
Subject: |
[PULL 15/17] hw/loongarch: fdt remove unused irqchip node |
Date: |
Thu, 7 Mar 2024 22:52:05 +0800 |
Signed-off-by: Song Gao <gaosong@loongson.cn>
Message-Id: <20240301093839.663947-16-gaosong@loongson.cn>
---
hw/loongarch/virt.c | 31 +------------------------------
1 file changed, 1 insertion(+), 30 deletions(-)
diff --git a/hw/loongarch/virt.c b/hw/loongarch/virt.c
index d00343f0c2..c80732a223 100644
--- a/hw/loongarch/virt.c
+++ b/hw/loongarch/virt.c
@@ -446,34 +446,6 @@ static void fdt_add_pcie_node(const LoongArchMachineState
*lams,
g_free(nodename);
}
-static void fdt_add_irqchip_node(LoongArchMachineState *lams)
-{
- MachineState *ms = MACHINE(lams);
- char *nodename;
- uint32_t irqchip_phandle;
-
- irqchip_phandle = qemu_fdt_alloc_phandle(ms->fdt);
- qemu_fdt_setprop_cell(ms->fdt, "/", "interrupt-parent", irqchip_phandle);
-
- nodename = g_strdup_printf("/intc@%lx", VIRT_IOAPIC_REG_BASE);
- qemu_fdt_add_subnode(ms->fdt, nodename);
- qemu_fdt_setprop_cell(ms->fdt, nodename, "#interrupt-cells", 3);
- qemu_fdt_setprop(ms->fdt, nodename, "interrupt-controller", NULL, 0);
- qemu_fdt_setprop_cell(ms->fdt, nodename, "#address-cells", 0x2);
- qemu_fdt_setprop_cell(ms->fdt, nodename, "#size-cells", 0x2);
- qemu_fdt_setprop(ms->fdt, nodename, "ranges", NULL, 0);
-
- qemu_fdt_setprop_string(ms->fdt, nodename, "compatible",
- "loongarch,ls7a");
-
- qemu_fdt_setprop_sized_cells(ms->fdt, nodename, "reg",
- 2, VIRT_IOAPIC_REG_BASE,
- 2, PCH_PIC_ROUTE_ENTRY_OFFSET);
-
- qemu_fdt_setprop_cell(ms->fdt, nodename, "phandle", irqchip_phandle);
- g_free(nodename);
-}
-
static void fdt_add_memory_node(MachineState *ms,
uint64_t base, uint64_t size, int node_id)
{
@@ -1011,8 +983,7 @@ static void loongarch_init(MachineState *machine)
/* Initialize the IO interrupt subsystem */
loongarch_irq_init(lams);
- fdt_add_irqchip_node(lams);
- platform_bus_add_all_fdt_nodes(machine->fdt, "/intc",
+ platform_bus_add_all_fdt_nodes(machine->fdt, "/platic",
VIRT_PLATFORM_BUS_BASEADDRESS,
VIRT_PLATFORM_BUS_SIZE,
VIRT_PLATFORM_BUS_IRQ);
--
2.34.1
- [PULL 02/17] hw/loongarch: Add load initrd, (continued)
- [PULL 02/17] hw/loongarch: Add load initrd, Song Gao, 2024/03/07
- [PULL 03/17] hw/loongarch: Add slave cpu boot_code, Song Gao, 2024/03/07
- [PULL 04/17] hw/loongarch: Add init_cmdline, Song Gao, 2024/03/07
- [PULL 01/17] hw/loongarch: Move boot fucntions to boot.c, Song Gao, 2024/03/07
- [PULL 09/17] hw/loongarch: Fix fdt memory node wrong 'reg', Song Gao, 2024/03/07
- [PULL 06/17] hw/loongarch: Init efi_boot_memmap table, Song Gao, 2024/03/07
- [PULL 10/17] hw/loongarch: fdt adds cpu interrupt controller node, Song Gao, 2024/03/07
- [PULL 07/17] hw/loongarch: Init efi_initrd table, Song Gao, 2024/03/07
- [PULL 08/17] hw/loongarch: Init efi_fdt table, Song Gao, 2024/03/07
- [PULL 11/17] hw/loongarch: fdt adds Extend I/O Interrupt Controller, Song Gao, 2024/03/07
- [PULL 15/17] hw/loongarch: fdt remove unused irqchip node,
Song Gao <=
- [PULL 12/17] hw/loongarch: fdt adds pch_pic Controller, Song Gao, 2024/03/07
- [PULL 14/17] hw/loongarch: fdt adds pcie irq_map node, Song Gao, 2024/03/07
- [PULL 13/17] hw/loongarch: fdt adds pch_msi Controller, Song Gao, 2024/03/07
- Re: [PULL 00/17] loongarch-to-apply queue, gaosong, 2024/03/07
- Re: [PULL 00/17] loongarch-to-apply queue, Peter Maydell, 2024/03/07