[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v1 6/6] hw/loongarch: Add RAMFB to dynamic_sysbus_devices list
From: |
Xiaojuan Yang |
Subject: |
[PATCH v1 6/6] hw/loongarch: Add RAMFB to dynamic_sysbus_devices list |
Date: |
Thu, 11 Aug 2022 11:09:48 +0800 |
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>
---
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
- [PATCH v1 0/6] Add funtions for LoongArch virt machine, Xiaojuan Yang, 2022/08/10
- [PATCH v1 3/6] hw/loongarch: Add interrupt information to FDT table, Xiaojuan Yang, 2022/08/10
- [PATCH v1 1/6] hw/loongarch: Remove vga device when loongarch init, Xiaojuan Yang, 2022/08/10
- [PATCH v1 6/6] hw/loongarch: Add RAMFB to dynamic_sysbus_devices list,
Xiaojuan Yang <=
- [PATCH v1 2/6] hw/loongarch: Support fw_cfg dma function, Xiaojuan Yang, 2022/08/10
- [PATCH v1 4/6] hw/loongarch: Add platform bus support, Xiaojuan Yang, 2022/08/10
- [PATCH v1 5/6] hw/loongarch: Add hotplug handler for machine, Xiaojuan Yang, 2022/08/10