mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-03 15:53:54 -06:00
Add a TI TSC2102 chip (touchscreen/ADC/audio-CODEC controller).
Fix GPIO memory mapping address and register width. git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@3484 c046a42c-6fe2-441c-8c8c-71466251a162
This commit is contained in:
parent
8c9d7f83bf
commit
3efda49d15
6 changed files with 873 additions and 8 deletions
11
hw/omap.c
11
hw/omap.c
|
@ -3184,16 +3184,17 @@ static void omap_gpio_write(void *opaque, target_phys_addr_t addr,
|
|||
}
|
||||
}
|
||||
|
||||
/* *Some* sources say the memory region is 32-bit. */
|
||||
static CPUReadMemoryFunc *omap_gpio_readfn[] = {
|
||||
omap_badwidth_read16,
|
||||
omap_gpio_read,
|
||||
omap_badwidth_read32,
|
||||
omap_badwidth_read32,
|
||||
omap_badwidth_read16,
|
||||
};
|
||||
|
||||
static CPUWriteMemoryFunc *omap_gpio_writefn[] = {
|
||||
omap_badwidth_write16,
|
||||
omap_gpio_write,
|
||||
omap_badwidth_write32,
|
||||
omap_badwidth_write32,
|
||||
omap_badwidth_write16,
|
||||
};
|
||||
|
||||
void omap_gpio_reset(struct omap_gpio_s *s)
|
||||
|
@ -3551,7 +3552,7 @@ struct omap_mpu_state_s *omap310_mpu_init(unsigned long sdram_size,
|
|||
s->irq[1][OMAP_INT_KEYBOARD], s->irq[1][OMAP_INT_MPUIO],
|
||||
s->wakeup, omap_findclk(s, "clk32-kHz"));
|
||||
|
||||
s->gpio = omap_gpio_init(0xfffcf000, s->irq[0][OMAP_INT_GPIO_BANK1],
|
||||
s->gpio = omap_gpio_init(0xfffce000, s->irq[0][OMAP_INT_GPIO_BANK1],
|
||||
omap_findclk(s, "mpuper_ck"));
|
||||
|
||||
s->microwire = omap_uwire_init(0xfffb3000, &s->irq[1][OMAP_INT_uWireTX],
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue