[4643] Provide basic emulation for Sharp SL-6000 PDA (Tosa), Dmitry Baryshkov.
Revision: 4643
http://svn.sv.gnu.org/viewvc/?view=rev&root=qemu&revision=4643 Author: balrog Date: 2008-06-02 01:33:11 +0000 (Mon, 02 Jun 2008)
Log Message:
-----------
Provide basic emulation for Sharp SL-6000 PDA (Tosa), Dmitry Baryshkov.
This adds basic support for emulating Sharp Zaurus SL-6000 PDA (tosa). Currently it provides only basic support: no kbd/lcd, sound, ts, etc. But it's able at least to boot Linux from CF.
Modified Paths:
--------------
trunk/Makefile.target
trunk/hw/boards.h
trunk/hw/sharpsl.h
trunk/hw/spitz.c
trunk/hw/zaurus.c
trunk/target-arm/machine.c
Added Paths:
-----------
trunk/hw/tosa.c
Modified: trunk/Makefile.target
===================================================================
Makefile.target +1 -1
@@ -585,7 +585,7 @@ OBJS+= pxa2xx.o pxa2xx_pic.o pxa2xx_gpio.o pxa2xx_timer.o pxa2xx_dma.o OBJS+= pxa2xx_lcd.o pxa2xx_mmci.o pxa2xx_pcmcia.o pxa2xx_keypad.o OBJS+= pflash_cfi01.o gumstix.o -OBJS+= spitz.o zaurus.o ide.o serial.o nand.o ecc.o +OBJS+= zaurus.o ide.o serial.o nand.o ecc.o spitz.o tosa.o OBJS+= omap1.o omap_lcdc.o omap_dma.o omap_clk.o omap_mmc.o omap_i2c.o OBJS+= omap2.o omap_dss.o OBJS+= palm.o tsc210x.o
Modified: trunk/hw/boards.h
===================================================================
hw/boards.h +3 -0
@@ -111,4 +111,7 @@/* musicpal.c */ extern QEMUMachine musicpal_machine; +/* tosa.c */ +extern QEMUMachine tosapda_machine; +#endif
Modified: trunk/hw/sharpsl.h
===================================================================
hw/sharpsl.h +8 -0
@@ -1,6 +1,14 @@ +/* +* Common declarations for the Zaurii. +* +* This file is licensed under the GNU GPL. +*/ #ifndef QEMU_SHARPSL_H #define QEMU_SHARPSL_H +#define zaurus_printf (format, ...) \ + fprintf(stderr, "%s: " format, __FUNCTION__, ##__VA_ARGS__) +/* zaurus.c */ struct scoop_info_s *scoop_init (struct pxa2xx_state_s *cpu,int instance,target_phys_addr_t target_base);
Modified: trunk/hw/spitz.c
===================================================================
hw/spitz.c +10 -12
@@ -22,8 +22,6 @@#include "audio/audio.h" #include "boards.h" -#define spitz_printf (format, ...) \ - fprintf(stderr, "%s: " format, __FUNCTION__, ##__VA_ARGS__)#undef REG_FMT#if TARGET_PHYS_ADDR_BITS ==32 #define REG_FMT "0x%02x"
@@ -90,7 +88,7 @@return ecc_digest (&s->ecc,nand_getio (s->nand));default : -spitz_printf ("Bad register offset " REG_FMT "\n" , addr); +zaurus_printf ("Bad register offset " REG_FMT "\n" , addr); }return 0 ; }
@@ -134,7 +132,7 @@break ;default : -spitz_printf ("Bad register offset " REG_FMT "\n" , addr); +zaurus_printf ("Bad register offset " REG_FMT "\n" , addr); } }
@@ -537,9 +535,9 @@static void spitz_bl_update (struct pxa2xx_state_s *s) {if (bl_power && bl_intensity) -spitz_printf ("LCD Backlight now at %i/63\n" , bl_intensity); +zaurus_printf ("LCD Backlight now at %i/63\n" , bl_intensity);else -spitz_printf ("LCD Backlight now off\n" ); +zaurus_printf ("LCD Backlight now off\n" ); }static inline void spitz_bl_bit5 (void *opaque,int line,int level)
@@ -570,9 +568,9 @@switch (addr) {case LCDTG_RESCTL :if (value) -spitz_printf ("LCD in QVGA mode\n" ); +zaurus_printf ("LCD in QVGA mode\n" );else -spitz_printf ("LCD in VGA mode\n" ); +zaurus_printf ("LCD in VGA mode\n" );break ;case LCDTG_DUTYCTRL :
@@ -780,16 +778,16 @@ {switch (line) {case 0 : -spitz_printf ("Charging %s.\n" , level ?"off" :"on" ); +zaurus_printf ("Charging %s.\n" , level ?"off" :"on" );break ;case 1 : -spitz_printf ("Discharging %s.\n" , level ?"on" :"off" ); +zaurus_printf ("Discharging %s.\n" , level ?"on" :"off" );break ;case 2 : -spitz_printf ("Green LED %s.\n" , level ?"on" :"off" ); +zaurus_printf ("Green LED %s.\n" , level ?"on" :"off" );break ;case 3 : -spitz_printf ("Orange LED %s.\n" , level ?"on" :"off" ); +zaurus_printf ("Orange LED %s.\n" , level ?"on" :"off" );break ;case 4 :spitz_bl_bit5 (opaque, line, level);
Added: trunk/hw/tosa.c
===================================================================
hw/tosa.c +160 -0
160 lines not on this page · raw message
Modified: trunk/hw/zaurus.c
===================================================================
hw/zaurus.c +0 -2
@@ -21,8 +21,6 @@#include "pxa.h" #include "sharpsl.h" -#define zaurus_printf (format, ...) \ - fprintf(stderr, "%s: " format, __FUNCTION__, ##__VA_ARGS__)#undef REG_FMT#if TARGET_PHYS_ADDR_BITS ==32 #define REG_FMT "0x%02x"
Modified: trunk/target-arm/machine.c
===================================================================
target-arm/machine.c +1 -0
@@ -20,6 +20,7 @@qemu_register_machine (&verdex_machine);qemu_register_machine (&mainstone2_machine);qemu_register_machine (&musicpal_machine); +qemu_register_machine (&tosapda_machine); }void cpu_save (QEMUFile *f,void *opaque)