[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PULL 6/9] hw/loongarch: Add RAMFB to dynamic_sysbus_devices list
From: |
Song Gao |
Subject: |
[PULL 6/9] hw/loongarch: Add RAMFB to dynamic_sysbus_devices list |
Date: |
Mon, 19 Sep 2022 20:48:58 +0800 |
From: Xiaojuan Yang <yangxiaojuan@loongson.cn>
Add RAMFB device to dynamic_sysbus_devices list so that it can be
hotpluged to the machine.
Signed-off-by: Xiaojuan Yang <yangxiaojuan@loongson.cn>
Acked-by: Song Gao <gaosong@loongson.cn>
Message-Id: <20220908094623.73051-7-yangxiaojuan@loongson.cn>
Signed-off-by: Song Gao <gaosong@loongson.cn>
---
hw/loongarch/virt.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/hw/loongarch/virt.c b/hw/loongarch/virt.c
index a3dd35d579..1e1dc699ef 100644
--- a/hw/loongarch/virt.c
+++ b/hw/loongarch/virt.c
@@ -39,6 +39,7 @@
#include <libfdt.h>
#include "hw/core/sysbus-fdt.h"
#include "hw/platform-bus.h"
+#include "hw/display/ramfb.h"
static void create_fdt(LoongArchMachineState *lams)
{
@@ -853,6 +854,7 @@ static void loongarch_class_init(ObjectClass *oc, void
*data)
NULL, NULL);
object_class_property_set_description(oc, "acpi",
"Enable ACPI");
+ machine_class_allow_dynamic_sysbus_dev(mc, TYPE_RAMFB_DEVICE);
}
static const TypeInfo loongarch_machine_types[] = {
--
2.31.1
- [PULL 0/9] loongarch-to-apply queue, Song Gao, 2022/09/19
- [PULL 1/9] hw/loongarch: Remove vga device when loongarch init, Song Gao, 2022/09/19
- [PULL 8/9] hw/loongarch: Support memory hotplug, Song Gao, 2022/09/19
- [PULL 4/9] hw/loongarch: Add platform bus support, Song Gao, 2022/09/19
- [PULL 9/9] hw/loongarch: Improve acpi dsdt table, Song Gao, 2022/09/19
- [PULL 3/9] hw/loongarch: Add interrupt information to FDT table, Song Gao, 2022/09/19
- [PULL 7/9] hw/loongarch: Fix acpi ged irq number in dsdt table, Song Gao, 2022/09/19
- [PULL 2/9] hw/loongarch: Support fw_cfg dma function, Song Gao, 2022/09/19
- [PULL 5/9] hw/loongarch: Add hotplug handler for machine, Song Gao, 2022/09/19
- [PULL 6/9] hw/loongarch: Add RAMFB to dynamic_sysbus_devices list,
Song Gao <=
- Re: [PULL 0/9] loongarch-to-apply queue, Stefan Hajnoczi, 2022/09/19
- Re: [PULL 0/9] loongarch-to-apply queue, Stefan Hajnoczi, 2022/09/19