Revision d8f699cb hw/palm.c
b/hw/palm.c | ||
---|---|---|
78 | 78 |
|
79 | 79 |
static void palmte_microwire_setup(struct omap_mpu_state_s *cpu) |
80 | 80 |
{ |
81 |
omap_uwire_attach( |
|
82 |
cpu->microwire, |
|
83 |
tsc2102_init( |
|
84 |
omap_gpio_in_get(cpu->gpio)[PALMTE_PINTDAV_GPIO]), |
|
85 |
0); |
|
81 |
struct uwire_slave_s *tsc; |
|
82 |
AudioState *audio = 0; |
|
83 |
|
|
84 |
#ifdef HAS_AUDIO |
|
85 |
audio = AUD_init(); |
|
86 |
#endif |
|
87 |
|
|
88 |
tsc = tsc2102_init(omap_gpio_in_get(cpu->gpio)[PALMTE_PINTDAV_GPIO], |
|
89 |
audio); |
|
90 |
|
|
91 |
omap_uwire_attach(cpu->microwire, tsc, 0); |
|
92 |
omap_mcbsp_i2s_attach(cpu->mcbsp1, tsc210x_codec(tsc)); |
|
86 | 93 |
} |
87 | 94 |
|
88 | 95 |
static struct { |
Also available in: Unified diff