[4642] Factor out common SharpSL PDA code (Dmitry Baryshkov).
Revision: 4642
http://svn.sv.gnu.org/viewvc/?view=rev&root=qemu&revision=4642 Author: balrog Date: 2008-06-02 01:20:15 +0000 (Mon, 02 Jun 2008)
Log Message:
-----------
Factor out common SharpSL PDA code (Dmitry Baryshkov).
Factor out to sharpsl code to support devices that are present not only in spitz-family PDAs but also in outher Sharp Zaurus PDAs
Modified Paths:
--------------
trunk/Makefile.target
trunk/hw/spitz.c
Added Paths:
-----------
trunk/hw/sharpsl.h
trunk/hw/zaurus.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 ide.o serial.o nand.o ecc.o +OBJS+= spitz.o zaurus.o ide.o serial.o nand.o ecc.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
Added: trunk/hw/sharpsl.h
===================================================================
hw/sharpsl.h +15 -0
@@ -0,0 +1,15 @@ +#ifndef QEMU_SHARPSL_H +#define QEMU_SHARPSL_H + +/* zaurus.c */ +struct scoop_info_s *scoop_init (struct pxa2xx_state_s *cpu, +int instance,target_phys_addr_t target_base); +void scoop_gpio_set (void *opaque,int line,int level); +qemu_irq *scoop_gpio_in_get (struct scoop_info_s *s); +void scoop_gpio_out_set (struct scoop_info_s *s,int line, +qemu_irq handler); + +#define SL_PXA_PARAM_BASE 0xa0000a00 +void sl_bootparam_write (uint32_t ptr); + +#endif
Modified: trunk/hw/spitz.c
===================================================================
hw/spitz.c +16 -287
346 lines not on this page · raw message
Added: trunk/hw/zaurus.c
===================================================================
hw/zaurus.c +292 -0
292 lines not on this page · raw message