Patchwork [1/1] versatilepb: add gpio pl061 support

login
register
mail settings
Submitter Jean-Christophe PLAGNIOL-VILLARD
Date Oct. 5, 2012, 11:17 a.m.
Message ID <1349435856-26647-1-git-send-email-plagnioj@jcrosoft.com>
Download mbox | patch
Permalink /patch/189537/
State New
Headers show

Comments

Jean-Christophe PLAGNIOL-VILLARD - Oct. 5, 2012, 11:17 a.m.
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
---
 hw/versatilepb.c |    5 +++++
 1 file changed, 5 insertions(+)
Peter Maydell - Oct. 5, 2012, 5:19 p.m.
On 5 October 2012 12:17, Jean-Christophe PLAGNIOL-VILLARD
<plagnioj@jcrosoft.com> wrote:
> Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>

Reviewed-by: Peter Maydell <peter.maydell@linaro.org>

thanks!
-- PMM

Patch

diff --git a/hw/versatilepb.c b/hw/versatilepb.c
index 7a92034..3359c6c 100644
--- a/hw/versatilepb.c
+++ b/hw/versatilepb.c
@@ -265,6 +265,11 @@  static void versatile_init(ram_addr_t ram_size,
     sysbus_create_simple("sp804", 0x101e2000, pic[4]);
     sysbus_create_simple("sp804", 0x101e3000, pic[5]);
 
+    sysbus_create_simple("pl061", 0x101e4000, pic[6]);
+    sysbus_create_simple("pl061", 0x101e5000, pic[7]);
+    sysbus_create_simple("pl061", 0x101e6000, pic[8]);
+    sysbus_create_simple("pl061", 0x101e7000, pic[9]);
+
     /* The versatile/PB actually has a modified Color LCD controller
        that includes hardware cursor support from the PL111.  */
     dev = sysbus_create_simple("pl110_versatile", 0x10120000, pic[16]);