Skip to contentSkip to conversation

ARM: exynos4: Add TWD base address

PATCH New Kyungmin Park 2 participants 2 messages Jul 27, 2011 – Aug 12, 2011

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ARM: exynos4: Add TWD base address

From: Kyungmin Park <[email protected]>

When use the s5p_timer for EXYNOS4210 EVT0, it's required. Other s5p platform is guided from CONFIG_LOCAL_TIMER

---

arch/arm/plat-s5p/s5p-time.c +3 -0
index c833e7b..bdf5430 100644
@@ -409,6 +409,9 @@ static void __init s5p_timer_resources(void)
 
 static void __init s5p_timer_init(void)
 {
+#ifdef CONFIG_LOCAL_TIMERS
+	twd_base = S5P_VA_TWD;
+#endif
 	s5p_timer_resources();
 	s5p_clockevent_init();
 	s5p_clocksource_init();
#1 lore raw

PATCH 1/1 ARM: exynos4: Add TWD base address

Quoted 13 lines · Kyungmin Park

From: Kyungmin Park <[email protected]>

When use the s5p_timer for EXYNOS4210 EVT0, it's required. Other s5p platform is guided from CONFIG_LOCAL_TIMER

---

arch/arm/plat-s5p/s5p-time.c +0 -0
index c833e7b..bdf5430 100644

arch/arm/plat-s5p/s5p-time.c static void __init s5p_timer_resources(void) · line 417

Quoted 9 lines
arch/arm/plat-s5p/s5p-time.c +3 -0
@@ -409,6 +409,9 @@ static void __init s5p_timer_resources(void)
 
 static void __init s5p_timer_init(void)
 {
+#ifdef CONFIG_LOCAL_TIMERS
+	twd_base = S5P_VA_TWD;
+#endif
 	s5p_timer_resources();
 	s5p_clockevent_init();
 	s5p_clocksource_init();

As we talked about this at Linaro Connect, this is wrong. Basically EXYNOS4210 uses MCT and the ARM_TWD cannot be used at one time on EXYNOS4210.

Thanks.

Best regards,
Kgene.
--
Kukjin Kim <[email protected]>, Senior Engineer, SW Solution Development Team, Samsung Electronics Co., Ltd.