Skip to contentSkip to conversation

Spitz PDA, example PXA board.

PATCH In review andrzej zaborowski 2 participants 3 messages Mar 16, 2007 Kbuild

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Spitz PDA, example PXA board.

This patch adds a full PXA270-based machine. In fact four different, but similar models of the same series. Use "-M spitz", "-M akita", "-M borzoi" or "-M terrier" with qemu-system-arm to select them. The board contains a PXA processor with all its on-chip peripherals plus several other chips including the ADS7846, MAX1111, MAX7310, WM8750, the microdrive, NAND flash, SD slot, one usable PCMCIA socket, touchscreen, a keypad.

There is no way to pass a kernel command line to a Linux kernel running on this device because its stock bootloader is quite dumb. So "-append" doesn't work. The machine is also supported by OpenBSD and NetBSD but only Linux has been tested.

Cheers,
Andrew

From c0ef3c129e69d3fde7632a2e7ac1c679eb4401ee Mon Sep 17 00:00:00 2001
From: Andrzej Zaborowski <[email protected]>
Date: Fri, 16 Mar 2007 17:17:27 +0100
Subject: [PATCH] Spitz PDA, example PXA board

---
 Makefile.target |   14 +-
 hw/spitz.c      | 1157 +++++++++++++++++++++++++++++++++++++++++++++++++++++++
 keymaps/spitz   |   26 ++
 qemu-doc.texi   |   31 ++
 vl.c            |    6 +
 vl.h            |    6 +
 6 files changed, 1235 insertions(+), 5 deletions(-)
Makefile.target +9 -5
index 8eaa8dd..9b08ef3 100644
@@ -329,7 +329,7 @@ VL_OBJS+=tap-win32.o
 endif
 
 SOUND_HW = sb16.o es1370.o
-AUDIODRV = audio.o noaudio.o wavaudio.o
+AUDIODRV = audio.o noaudio.o wavaudio.o mixeng.o
 ifdef CONFIG_SDL
 AUDIODRV += sdlaudio.o
 endif
@@ -370,16 +370,16 @@ ifeq ($(TARGET_BASE_ARCH), i386)
 # Hardware support
 VL_OBJS+= ide.o pckbd.o ps2.o vga.o $(SOUND_HW) dma.o $(AUDIODRV)
 VL_OBJS+= fdc.o mc146818rtc.o serial.o i8259.o i8254.o pcspk.o pc.o
-VL_OBJS+= cirrus_vga.o mixeng.o apic.o parallel.o acpi.o piix_pci.o
+VL_OBJS+= cirrus_vga.o apic.o parallel.o acpi.o piix_pci.o
 VL_OBJS+= usb-uhci.o smbus_eeprom.o
-CPPFLAGS += -DHAS_AUDIO
+CPPFLAGS += -DHAS_AUDIO -DHAS_AUDIO_CHOICE
 endif
 ifeq ($(TARGET_BASE_ARCH), ppc)
 VL_OBJS+= ppc.o ide.o pckbd.o ps2.o vga.o $(SOUND_HW) dma.o $(AUDIODRV)
 VL_OBJS+= mc146818rtc.o serial.o i8259.o i8254.o fdc.o m48t59.o
-VL_OBJS+= ppc_prep.o ppc_chrp.o cuda.o adb.o openpic.o heathrow_pic.o mixeng.o
+VL_OBJS+= ppc_prep.o ppc_chrp.o cuda.o adb.o openpic.o heathrow_pic.o
 VL_OBJS+= grackle_pci.o prep_pci.o unin_pci.o
-CPPFLAGS += -DHAS_AUDIO
+CPPFLAGS += -DHAS_AUDIO -DHAS_AUDIO_CHOICE
 endif
 ifeq ($(TARGET_ARCH), mips)
 VL_OBJS+= mips_r4k.o mips_malta.o mips_timer.o mips_int.o dma.o vga.o serial.o i8254.o i8259.o
@@ -404,6 +404,10 @@ VL_OBJS+= arm_boot.o pl011.o pl050.o pl080.o pl110.o pl190.o
 VL_OBJS+= versatile_pci.o
 VL_OBJS+= arm_gic.o realview.o arm_sysctl.o
 VL_OBJS+= arm-semi.o
+VL_OBJS+= pxa2xx.o pxa2xx_pic.o pxa2xx_gpio.o pxa2xx_timer.o pxa2xx_dma.o
+VL_OBJS+= pxa2xx_lcd.o pxa2xx_mmci.o pxa2xx_pcmcia.o max111x.o max7310.o
+VL_OBJS+= spitz.o ads7846.o sd.o ide.o serial.o nand.o $(AUDIODRV) wm8750.o 
+CPPFLAGS += -DHAS_AUDIO -DHIGH_LATENCY
 endif
 ifeq ($(TARGET_BASE_ARCH), sh4)
 VL_OBJS+= shix.o sh7750.o sh7750_regnames.o tc58128.o
hw/spitz.c new file +1157 -0

1,157 lines not on this page · raw message

keymaps/spitz new file +26 -0
new file mode 100644
index 0000000..d4138c4
@@ -0,0 +1,26 @@
+# Reference keymap for the Spitz
+include common
+slash 0x33 shift
+question 0x34 shift
+exclam 0x02 shift
+quotedbl 0x03 shift
+numbersign 0x04 shift
+dollar 0x05 shift
+percent 0x06 shift
+ampersand 0x07 shift
+apostrophe 0x08 shift
+parenleft 0x09 shift
+parenright 0x0a shift
+asciitilde 0x0b shift
+at 0x0c shift
+BackSpace 0xe
+Delete 0xe altgr
+Tab 0xf
+Caps_Lock 0xf altgr
+asciicircum 0x11 altgr
+equal 0x12 altgr
+plus 0x13 altgr
+bracketleft 0x14 altgr
+bracketright 0x15 altgr
+Page_Up 0xc8 altgr
+Page_Down 0xcd altgr
qemu-doc.texi +31 -0
index 1acd745..92ec452 100644
@@ -80,6 +80,7 @@ For system emulation, the following hardware targets are supported:
 @item ARM Integrator/CP (ARM926E or 1026E processor)
 @item ARM Versatile baseboard (ARM926E)
 @item ARM RealView Emulation baseboard (ARM926EJ-S)
+@item Spitz, Akita, Borzoi and Terrier PDAs (PXA270 processor)
 @end itemize
 
 For user emulation, x86, PowerPC, ARM, MIPS, Sparc32/64 and ColdFire(m68k) CPUs are supported.
@@ -1767,6 +1768,36 @@ PCI OHCI USB controller
 LSI53C895A PCI SCSI Host Bus Adapter with hard disk and CD-ROM devices
 @end itemize
 
+The XScale-based clamshell PDA models ("Spitz", "Akita", "Borzoi"
+and "Terrier") emulation includes the following peripherals:
+
+@itemize @minus
+@item
+Intel PXA270 System-on-chip (ARM V5TE core)
+@item
+NAND Flash memory
+@item
+IBM/Hitachi DSCM microdrive in a PXA PCMCIA slot - not in "Akita"
+@item
+On-chip OHCI USB controller
+@item
+On-chip LCD controller
+@item
+On-chip Real Time Clock
+@item
+TI ADS7846 touchscreen controller on SSP bus
+@item
+Maxim MAX1111 analog-digital converter on I@math{^2}C bus
+@item
+GPIO-connected keyboard controller and LEDs
+@item
+Secure Digital card conntected to PXA MMC/SD host
+@item
+Three on-chip UARTs
+@item
+WM8750 audio CODEC on I@math{^2}C and I@math{^2}S busses
+@end itemize
+
 A Linux 2.6 test image is available on the QEMU web site. More
 information is available in the QEMU mailing-list archive.
 
vl.c +6 -0
index a523d1a..94260b4 100644
@@ -6791,6 +6791,10 @@ void register_machines(void)
     qemu_register_machine(&versatilepb_machine);
     qemu_register_machine(&versatileab_machine);
     qemu_register_machine(&realview_machine);
+    qemu_register_machine(&akitapda_machine);
+    qemu_register_machine(&spitzpda_machine);
+    qemu_register_machine(&borzoipda_machine);
+    qemu_register_machine(&terrierpda_machine);
 #elif defined(TARGET_SH4)
     qemu_register_machine(&shix_machine);
 #else
@@ -6800,6 +6804,7 @@ void register_machines(void)
 
 #ifdef HAS_AUDIO
 struct soundhw soundhw[] = {
+#ifdef HAS_AUDIO_CHOICE
 #ifdef TARGET_I386
     {
         "pcspk",
@@ -6848,6 +6853,7 @@ struct soundhw soundhw[] = {
         0,
         { .init_pci = es1370_init }
     },
+#endif
 
     { NULL, NULL, 0, 0, { NULL } }
 };
vl.h +6 -0
index a619ee6..6b1e833 100644
@@ -1319,6 +1319,12 @@ extern QEMUMachine versatileab_machine;
 /* realview.c */
 extern QEMUMachine realview_machine;
 
+/* spitz.c */
+extern QEMUMachine akitapda_machine;
+extern QEMUMachine spitzpda_machine;
+extern QEMUMachine borzoipda_machine;
+extern QEMUMachine terrierpda_machine;
+
 /* ps2.c */
 void *ps2_kbd_init(void (*update_irq)(void *, int), void *update_arg);
 void *ps2_mouse_init(void (*update_irq)(void *, int), void *update_arg);
Signature · 1 line
1.4.4.3
#1 lore raw

Just a tiny question:

With all those patches and devices that you added, is it possible to boot/use any Windows CE variant?

Thanks,
Hetz

Quoted 23 lines · andrzej zaborowski

This patch adds a full PXA270-based machine. In fact four different, but similar models of the same series. Use "-M spitz", "-M akita", "-M borzoi" or "-M terrier" with qemu-system-arm to select them. The board contains a PXA processor with all its on-chip peripherals plus several other chips including the ADS7846, MAX1111, MAX7310, WM8750, the microdrive, NAND flash, SD slot, one usable PCMCIA socket, touchscreen, a keypad.

There is no way to pass a kernel command line to a Linux kernel running on this device because its stock bootloader is quite dumb. So "-append" doesn't work. The machine is also supported by OpenBSD and NetBSD but only Linux has been tested.

Cheers,
Andrew

_______________________________________________
Qemu-devel mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/qemu-devel

Signature · 3 lines
Skepticism is the lazy person's default position.
Visit my blog (hebrew) for things that (sometimes) matter:
http://wp.dad-answers.com
#2 lore raw

Hi,

Quoted 4 lines · Hetz Ben Hamo

Just a tiny question:

With all those patches and devices that you added, is it possible to boot/use any Windows CE variant?

Short answer is with only these patches, no. I believe Windows doesn't run on the Spitz PDA - it comes with Linux from factory.

I don't know about Windows CE but Windows Mobile runs on a lot of PXA based PDAs so these PXA patches can certainly be helpful for emulating one of these PDAs and then you could perhaps run Ms Windows.

Regards,
Andrew