aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-omap2
diff options
context:
space:
mode:
authorSuman Anna <s-anna@ti.com>2015-10-05 19:28:22 -0400
committerTony Lindgren <tony@atomide.com>2015-11-30 16:18:23 -0500
commited5a4c6248a9e842d691dd3660b9f79be846693f (patch)
treea08de021d5624c2a281b2b9a47dd09d7d5a09f75 /arch/arm/mach-omap2
parentea05d2eaf66543e1305a6eb0f1a46db1257731c4 (diff)
ARM: OMAP2+: timer: Remove secure timer for DRA7xx HS devices
Timer 12 on DRA7 SoCs is reserved for secure usage on high-secure (HS) devices. The timer cannot be used by the kernel on HS devices, but is available on regular general purpose (GP) devices. This is similar to the behavior on OMAP3 devices, so extend the logic used in commit ad24bde8f102 ("ARM: OMAP3: Dynamically disable secure timer nodes for secure devices") to remove the secure timer on DRA7xx SoCs at run-time based on the SoC device type. Signed-off-by: Suman Anna <s-anna@ti.com> Signed-off-by: Tony Lindgren <tony@atomide.com>
Diffstat (limited to 'arch/arm/mach-omap2')
-rw-r--r--arch/arm/mach-omap2/timer.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/arch/arm/mach-omap2/timer.c b/arch/arm/mach-omap2/timer.c
index b18ebbefae09..6c19d1e2029f 100644
--- a/arch/arm/mach-omap2/timer.c
+++ b/arch/arm/mach-omap2/timer.c
@@ -194,8 +194,8 @@ static struct device_node * __init omap_get_timer_dt(const struct of_device_id *
194/** 194/**
195 * omap_dmtimer_init - initialisation function when device tree is used 195 * omap_dmtimer_init - initialisation function when device tree is used
196 * 196 *
197 * For secure OMAP3 devices, timers with device type "timer-secure" cannot 197 * For secure OMAP3/DRA7xx devices, timers with device type "timer-secure"
198 * be used by the kernel as they are reserved. Therefore, to prevent the 198 * cannot be used by the kernel as they are reserved. Therefore, to prevent the
199 * kernel registering these devices remove them dynamically from the device 199 * kernel registering these devices remove them dynamically from the device
200 * tree on boot. 200 * tree on boot.
201 */ 201 */
@@ -203,7 +203,7 @@ static void __init omap_dmtimer_init(void)
203{ 203{
204 struct device_node *np; 204 struct device_node *np;
205 205
206 if (!cpu_is_omap34xx()) 206 if (!cpu_is_omap34xx() && !soc_is_dra7xx())
207 return; 207 return;
208 208
209 /* If we are a secure device, remove any secure timer nodes */ 209 /* If we are a secure device, remove any secure timer nodes */