Skip to contentSkip to conversation

[6663] kvm/powerpc: Add MPC8544DS board support

Qemu-devel Aurelien Jarno 1 participant 1 message Mar 2, 2009 Kbuild

lore
Share & tools
lore
#0 lore raw

Revision: 6663

          http://svn.sv.gnu.org/viewvc/?view=rev&root=qemu&revision=6663
Author:   aurel32
Date:     2009-03-02 16:42:42 +0000 (Mon, 02 Mar 2009)

Log Message:
-----------
kvm/powerpc: Add MPC8544DS board support

This patch add an emulation of MPC8544DS board. It can work on All E500 platforms.

Modified Paths:
--------------
trunk/Makefile.target
trunk/hw/boards.h
trunk/target-ppc/machine.c

Added Paths:
-----------

    trunk/hw/ppce500.h
    trunk/hw/ppce500_mpc8544ds.c

Modified: trunk/Makefile.target
===================================================================

Makefile.target +1 -1
@@ -603,7 +603,7 @@
 OBJS+= pflash_cfi02.o ppc4xx_devs.o ppc4xx_pci.o ppc405_uc.o ppc405_boards.o
 OBJS+= ppc440.o ppc440_bamboo.o
 # PowerPC E500 boards
-OBJS+= ppce500_pci.o
+OBJS+= ppce500_pci.o ppce500_mpc8544ds.o
 ifdef FDT_LIBS
 OBJS+= device_tree.o
 LIBS+= $(FDT_LIBS)

Modified: trunk/hw/boards.h
===================================================================

hw/boards.h +1 -0
@@ -42,6 +42,7 @@
 extern QEMUMachine ref405ep_machine;
 extern QEMUMachine taihu_machine;
 extern QEMUMachine bamboo_machine;
+extern QEMUMachine mpc8544ds_machine;
 
 /* mips_r4k.c */
 extern QEMUMachine mips_machine;

Added: trunk/hw/ppce500.h
===================================================================

hw/ppce500.h +22 -0
@@ -0,0 +1,22 @@
+/*
+ * QEMU PowerPC E500 emulation shared definitions
+ *
+ * Copyright (C) 2009 Freescale Semiconductor, Inc. All rights reserved.
+ *
+ * Author: Yu Liu,     <[email protected]>
+ *
+ * This file is derived from hw/ppc440.h
+ * the copyright for that material belongs to the original owners.
+ *
+ * This is free software; you can redistribute it and/or modify
+ * it under the terms of  the GNU General  Public License as published by
+ * the Free Software Foundation;  either version 2 of the  License, or
+ * (at your option) any later version.
+ */
+
+#if !defined(PPC_E500_H)
+#define PPC_E500_H
+
+PCIBus *ppce500_pci_init(qemu_irq *pic, target_phys_addr_t registers);
+
+#endif /* !defined(PPC_E500_H) */

Added: trunk/hw/ppce500_mpc8544ds.c
===================================================================

hw/ppce500_mpc8544ds.c +284 -0

284 lines not on this page · raw message

Modified: trunk/target-ppc/machine.c
===================================================================

target-ppc/machine.c +1 -0
@@ -9,6 +9,7 @@
     qemu_register_machine(&ref405ep_machine);
     qemu_register_machine(&taihu_machine);
     qemu_register_machine(&bamboo_machine);
+    qemu_register_machine(&mpc8544ds_machine);
 }
 
 void cpu_save(QEMUFile *f, void *opaque)