lkml.org 
[lkml]   [2014]   [Jul]   [21]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH RFC 9/9] arm: imx: non-secure aliased mapping of GIC registers
Date
Signed-off-by: Daniel Thompson <daniel.thompson@linaro.org>
---
arch/arm/mach-imx/mach-imx6q.c | 11 +++++++++++
1 file changed, 11 insertions(+)

diff --git a/arch/arm/mach-imx/mach-imx6q.c b/arch/arm/mach-imx/mach-imx6q.c
index e60456d..192d268 100644
--- a/arch/arm/mach-imx/mach-imx6q.c
+++ b/arch/arm/mach-imx/mach-imx6q.c
@@ -381,10 +381,21 @@ static void __init imx6q_init_late(void)
}
}

+static struct map_desc gic_cpu_io_desc __initdata = {
+ .virtual = 0xff000000,
+ .pfn = __phys_to_pfn(0x00a00000),
+ .length = SZ_1M,
+ .type = MT_DEVICE_NS,
+};
+
static void __init imx6q_map_io(void)
{
debug_ll_io_init();
imx_scu_map_io();
+ /* TODO: Need to check we are running without a secure monitor before
+ * setting up this mapping.
+ */
+ iotable_init(&gic_cpu_io_desc, 1);
}

static void __init imx6q_init_irq(void)
--
1.9.3


\
 
 \ /
  Last update: 2014-07-21 17:41    [W:0.648 / U:0.000 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site