Patchwork [1/2] mainstone: use gpio 0 for connection of FPGA instead of hooking into PIC directly

login
register
mail settings
Submitter Dmitry Eremin-Solenikov
Date March 4, 2011, 12:54 a.m.
Message ID <1299200099-22482-1-git-send-email-dbaryshkov@gmail.com>
Download mbox | patch
Permalink /patch/85357/
State New
Headers show

Comments

Dmitry Eremin-Solenikov - March 4, 2011, 12:54 a.m.
Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
---
 hw/mainstone.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

Patch

diff --git a/hw/mainstone.c b/hw/mainstone.c
index 4eabdb9..8970dd8 100644
--- a/hw/mainstone.c
+++ b/hw/mainstone.c
@@ -140,7 +140,7 @@  static void mainstone_common_init(ram_addr_t ram_size,
     }
 
     mst_irq = sysbus_create_simple("mainstone-fpga", MST_FPGA_PHYS,
-                    qdev_get_gpio_in(cpu->pic, PXA2XX_PIC_GPIO_0));
+                    qdev_get_gpio_in(cpu->gpio, 0));
 
     /* setup keypad */
     printf("map addr %p\n", &map);