@@ -815,19 +815,24 @@ static void spitz_out_switch(void *opaque, int line, int level)
static void spitz_scoop_gpio_setup(PXA2xxState *cpu,
DeviceState *scp0, DeviceState *scp1)
{
- qemu_irq *outsignals = qemu_allocate_irqs(spitz_out_switch, cpu, 8);
-
- qdev_connect_gpio_out(scp0, SPITZ_SCP_CHRG_ON, outsignals[0]);
- qdev_connect_gpio_out(scp0, SPITZ_SCP_JK_B, outsignals[1]);
- qdev_connect_gpio_out(scp0, SPITZ_SCP_LED_GREEN, outsignals[2]);
- qdev_connect_gpio_out(scp0, SPITZ_SCP_LED_ORANGE, outsignals[3]);
+ qdev_connect_gpio_out(scp0, SPITZ_SCP_CHRG_ON,
+ qemu_allocate_irq(spitz_out_switch, cpu, 0));
+ qdev_connect_gpio_out(scp0, SPITZ_SCP_JK_B,
+ qemu_allocate_irq(spitz_out_switch, cpu, 1));
+ qdev_connect_gpio_out(scp0, SPITZ_SCP_LED_GREEN,
+ qemu_allocate_irq(spitz_out_switch, cpu, 2));
+ qdev_connect_gpio_out(scp0, SPITZ_SCP_LED_ORANGE,
+ qemu_allocate_irq(spitz_out_switch, cpu, 3));
if (scp1) {
- qdev_connect_gpio_out(scp1, SPITZ_SCP2_BACKLIGHT_CONT, outsignals[4]);
- qdev_connect_gpio_out(scp1, SPITZ_SCP2_BACKLIGHT_ON, outsignals[5]);
+ qdev_connect_gpio_out(scp1, SPITZ_SCP2_BACKLIGHT_CONT,
+ qemu_allocate_irq(spitz_out_switch, cpu, 4));
+ qdev_connect_gpio_out(scp1, SPITZ_SCP2_BACKLIGHT_ON,
+ qemu_allocate_irq(spitz_out_switch, cpu, 5));
}
- qdev_connect_gpio_out(scp0, SPITZ_SCP_ADC_TEMP_ON, outsignals[6]);
+ qdev_connect_gpio_out(scp0, SPITZ_SCP_ADC_TEMP_ON,
+ qemu_allocate_irq(spitz_out_switch, cpu, 6));
}
#define SPITZ_GPIO_HSYNC 22