tz: Add msm_device_tz_log device
msm_devcie_tz_log is a debugfs module that displays
the contents of a buffer located in IMEM. The contents
of this hold diagnostic information logged in by modules
running on secure domain.
This patch enables this tz_log debugfs module for 8x60
target devices
Change-Id: Iab64fbf19fb903991b292894807663f9bdf1a4f2
Signed-off-by: Mona Hossain <mhossain@codeaurora.org>
diff --git a/arch/arm/mach-msm/board-msm8x60.c b/arch/arm/mach-msm/board-msm8x60.c
index 9497735..6a0e5df 100644
--- a/arch/arm/mach-msm/board-msm8x60.c
+++ b/arch/arm/mach-msm/board-msm8x60.c
@@ -5309,6 +5309,8 @@
&ion_dev,
#endif
&msm8660_device_watchdog,
+ &msm_device_tz_log,
+
};
#ifdef CONFIG_ION_MSM
diff --git a/arch/arm/mach-msm/devices-msm8x60.c b/arch/arm/mach-msm/devices-msm8x60.c
index 84ba9fe..ba333ed 100644
--- a/arch/arm/mach-msm/devices-msm8x60.c
+++ b/arch/arm/mach-msm/devices-msm8x60.c
@@ -2314,6 +2314,22 @@
};
#endif
+#define SHARED_IMEM_TZ_BASE 0x2a05f720
+static struct resource tzlog_resources[] = {
+ {
+ .start = SHARED_IMEM_TZ_BASE,
+ .end = SHARED_IMEM_TZ_BASE + SZ_4K - 1,
+ .flags = IORESOURCE_MEM,
+ },
+};
+
+struct platform_device msm_device_tz_log = {
+ .name = "tz_log",
+ .id = 0,
+ .num_resources = ARRAY_SIZE(tzlog_resources),
+ .resource = tzlog_resources,
+};
+
#ifdef CONFIG_MSM_MPM
static uint16_t msm_mpm_irqs_m2a[MSM_MPM_NR_MPM_IRQS] __initdata = {
[1] = MSM_GPIO_TO_INT(61),