qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] [PATCH] tosa: provide correct IRQ to tc6393xb init


From: Dmitry Baryshkov
Subject: [Qemu-devel] [PATCH] tosa: provide correct IRQ to tc6393xb init
Date: Sun, 2 Nov 2008 16:16:28 +0300

Signed-off-by: Dmitry Baryshkov <address@hidden>
---
 hw/tosa.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/hw/tosa.c b/hw/tosa.c
index cb0e1da..1c49509 100644
--- a/hw/tosa.c
+++ b/hw/tosa.c
@@ -26,6 +26,7 @@
 #define TOSA_GPIO_ON_RESET             (19)
 #define TOSA_GPIO_CF_IRQ               (21)    /* CF slot0 Ready */
 #define TOSA_GPIO_CF_CD                        (13)
+#define TOSA_GPIO_TC6393XB_INT  (15)
 #define TOSA_GPIO_JC_CF_IRQ            (36)    /* CF slot1 Ready */
 
 #define TOSA_SCOOP_GPIO_BASE   1
@@ -203,7 +204,7 @@ static void tosa_init(ram_addr_t ram_size, int vga_ram_size,
     cpu_register_physical_memory(0, TOSA_ROM,
                     qemu_ram_alloc(TOSA_ROM) | IO_MEM_ROM);
 
-    tc6393xb_init(0x10000000, NULL);
+    tc6393xb_init(0x10000000, 
pxa2xx_gpio_in_get(cpu->gpio)[TOSA_GPIO_TC6393XB_INT]);
 
     scp0 = scoop_init(cpu, 0, 0x08800000);
     scp1 = scoop_init(cpu, 1, 0x14800040);
-- 
1.5.6.5





reply via email to

[Prev in Thread] Current Thread [Next in Thread]