summaryrefslogtreecommitdiff
path: root/hw/palm.c
diff options
context:
space:
mode:
authorbalrog <balrog@c046a42c-6fe2-441c-8c8c-71466251a162>2007-11-04 22:53:50 +0000
committerbalrog <balrog@c046a42c-6fe2-441c-8c8c-71466251a162>2007-11-04 22:53:50 +0000
commitd8f699cb32c8c418b65aa6a2c252e097ae4716ae (patch)
tree5501b4b8ef53332653d39e9fdbcb1af41af46437 /hw/palm.c
parentbfa30a38968c204725a007e6cf845178231d3645 (diff)
downloadqemu-d8f699cb32c8c418b65aa6a2c252e097ae4716ae.tar.gz
qemu-d8f699cb32c8c418b65aa6a2c252e097ae4716ae.tar.bz2
qemu-d8f699cb32c8c418b65aa6a2c252e097ae4716ae.zip
Zeroing ITR shouldn't ack irq zero.
Fix PWT & PWL clocks, fix user refcounting for clocks, add 'hsab_ck' and 'usb_w2fc_ck'. Fix TCMI register addresses. Implement OMAP McBSP controller and connection to I2S-compatible CODECs. Add audio support for TSC2102 as an I2S CODEC. Connect TSC2102 I2S interface to CPU's McBSP1 interface in the Palm Tungsten|E. Correct '>' instead of '>>' typos. Implement GPIO PIN_CONTROL register (not in OMAP310 TRM, from OMAP1510). git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@3534 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'hw/palm.c')
-rw-r--r--hw/palm.c17
1 files changed, 12 insertions, 5 deletions
diff --git a/hw/palm.c b/hw/palm.c
index 8800dc608b..bd17930f4b 100644
--- a/hw/palm.c
+++ b/hw/palm.c
@@ -78,11 +78,18 @@ static CPUWriteMemoryFunc *static_writefn[] = {
static void palmte_microwire_setup(struct omap_mpu_state_s *cpu)
{
- omap_uwire_attach(
- cpu->microwire,
- tsc2102_init(
- omap_gpio_in_get(cpu->gpio)[PALMTE_PINTDAV_GPIO]),
- 0);
+ struct uwire_slave_s *tsc;
+ AudioState *audio = 0;
+
+#ifdef HAS_AUDIO
+ audio = AUD_init();
+#endif
+
+ tsc = tsc2102_init(omap_gpio_in_get(cpu->gpio)[PALMTE_PINTDAV_GPIO],
+ audio);
+
+ omap_uwire_attach(cpu->microwire, tsc, 0);
+ omap_mcbsp_i2s_attach(cpu->mcbsp1, tsc210x_codec(tsc));
}
static struct {