jintack

Xgene secure register patch

Nov 3rd, 2015
153
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.96 KB | None | 0 0
  1. diff --git a/xen/arch/arm/platforms/xgene-storm.c b/xen/arch/arm/platforms/xgene-storm.c
  2. index f631628..1a4d90b 100644
  3. --- a/xen/arch/arm/platforms/xgene-storm.c
  4. +++ b/xen/arch/arm/platforms/xgene-storm.c
  5. @@ -44,6 +44,24 @@ static void xgene_check_pirq_eoi(void)
  6. struct dt_device_node *node;
  7. int res;
  8. paddr_t dbase;
  9. + void __iomem *gic_sec_addr;
  10. +
  11. + gic_sec_addr = ioremap_nocache(XGENE_SEC_GICV2_DIST_ADDR, 0x12000);
  12. + if ( !addr )
  13. + {
  14. + printk("XGENE: Unable to map xgene secure GIC address, boo hoo...\n");
  15. + } else {
  16. + u32 igroup0;
  17. + u32 gicc_ctlr;
  18. + void __iomem *gicc_sec_addr = gic_sec_addr + 0x10000;
  19. +
  20. + igroup0 = readl(gic_sec_addr + 0x080);
  21. + igroup0 |= (1 << 28);
  22. + writel(igroup0, gic_sec_addr + 0x080);
  23. +
  24. + gicc_ctlr = readl(gicc_sec_addr);
  25. + printk("XGENE: GICC_CTLR: 0x%0x\n", gicc_ctlr);
  26. + }
  27.  
  28. dt_for_each_device_node( dt_host, node )
  29. {
Advertisement
Add Comment
Please, Sign In to add comment