Skip to contentSkip to conversation

Mainstone II support

PATCH New Armin 1 participant 1 message Nov 22, 2007 Kbuild

lore
Share & tools
lore

Armin

author
#0 lore raw

PATCH 1/1 Mainstone II support

Hello all,

Attached it a patch against the latest cvs base. This adds support for the Mainstone II board. Included is support for the ethernet device ( SMC911x ) and ramdisk ( initrd ). Kernel sources used are from Kernel.org mainline. More device support to follow.

Feedback and comment welcome.

Enjoy,

Armin

hw/boards.h +3 -0
diff -ruN qemu/hw/boards.h qemu_new/hw/boards.h
@@ -92,4 +92,7 @@
 /* dummy_m68k.c */
 extern QEMUMachine dummy_m68k_machine;
 
+/* Arm PXA27x - mainstone.c */
+extern QEMUMachine mainstone2_machine;
+
 #endif
hw/mainstone.c +311 -0

311 lines not on this page · raw message

Makefile.target +1 -0
diff -ruN qemu/Makefile.target qemu_new/Makefile.target
@@ -499,6 +499,7 @@
 VL_OBJS+= spitz.o ide.o serial.o nand.o ecc.o
 VL_OBJS+= omap.o omap_lcdc.o omap1_clk.o omap_mmc.o omap_i2c.o
 VL_OBJS+= palm.o tsc210x.o
+VL_OBJS+= mainstone.o smc91c111.o
 CPPFLAGS += -DHAS_AUDIO
 endif
 ifeq ($(TARGET_BASE_ARCH), sh4)
vl.c +1 -0
diff -ruN qemu/vl.c qemu_new/vl.c
@@ -7451,6 +7451,7 @@
     qemu_register_machine(&lm3s811evb_machine);
     qemu_register_machine(&lm3s6965evb_machine);
     qemu_register_machine(&connex_machine);
+	qemu_register_machine(&mainstone2_machine);
 #elif defined(TARGET_SH4)
     qemu_register_machine(&shix_machine);
     qemu_register_machine(&r2d_machine);