[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 5/6] ppc405_boards: use qdev instead of legacy m48t59_init() func
From: |
BALATON Zoltan |
Subject: |
[PATCH 5/6] ppc405_boards: use qdev instead of legacy m48t59_init() function |
Date: |
Sat, 17 Oct 2020 22:13:41 +0200 |
Signed-off-by: BALATON Zoltan <balaton@eik.bme.hu>
---
hw/ppc/ppc405_boards.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/hw/ppc/ppc405_boards.c b/hw/ppc/ppc405_boards.c
index 6198ec1035..7a11a38831 100644
--- a/hw/ppc/ppc405_boards.c
+++ b/hw/ppc/ppc405_boards.c
@@ -28,6 +28,7 @@
#include "qemu-common.h"
#include "cpu.h"
#include "hw/ppc/ppc.h"
+#include "hw/sysbus.h"
#include "ppc405.h"
#include "hw/rtc/m48t59.h"
#include "hw/block/flash.h"
@@ -227,7 +228,7 @@ static void ref405ep_init(MachineState *machine)
/* Register FPGA */
ref405ep_fpga_init(sysmem, 0xF0300000);
/* Register NVRAM */
- m48t59_init(NULL, 0xF0000000, 0, 8192, 1968, 8);
+ sysbus_create_simple("sysbus-m48t08", 0xF0000000, NULL);
/* Load kernel */
linux_boot = (kernel_filename != NULL);
if (linux_boot) {
--
2.21.3
- [PATCH 0/6] m48t59: remove legacy init functions, BALATON Zoltan, 2020/10/17
- [PATCH 5/6] ppc405_boards: use qdev instead of legacy m48t59_init() function,
BALATON Zoltan <=
- [PATCH 4/6] sun4u: use qdev instead of legacy m48t59_init() function, BALATON Zoltan, 2020/10/17
- [PATCH 1/6] m48t59-isa: remove legacy m48t59_init_isa() function, BALATON Zoltan, 2020/10/17
- [PATCH 2/6] mt48t59: Set default value of base-year property to 1968, BALATON Zoltan, 2020/10/17
- [PATCH 6/6] m48t59: remove legacy m48t59_init() function, BALATON Zoltan, 2020/10/17
- [PATCH 3/6] sun4m: use qdev instead of legacy m48t59_init() function, BALATON Zoltan, 2020/10/17
- Re: [PATCH 0/6] m48t59: remove legacy init functions, Mark Cave-Ayland, 2020/10/18