Module: xenomai-2.5 Branch: master Commit: aeb9fe9169a378c1e586ca326d1f7071f9631880 URL: http://git.xenomai.org/?p=xenomai-2.5.git;a=commit;h=aeb9fe9169a378c1e586ca326d1f7071f9631880
Author: Gilles Chanteperdrix <gilles.chanteperd...@xenomai.org> Date: Wed May 25 21:23:53 2011 +0200 arm: add support for cortex A9 mpcore timer/tsc --- include/asm-arm/hal.h | 13 +++++++++---- 1 files changed, 9 insertions(+), 4 deletions(-) diff --git a/include/asm-arm/hal.h b/include/asm-arm/hal.h index e9c1efe..ef7a8bb 100644 --- a/include/asm-arm/hal.h +++ b/include/asm-arm/hal.h @@ -58,9 +58,14 @@ #elif defined(CONFIG_ARCH_MXC) #define RTHAL_TIMER_DEVICE "mxc_timer1" #define RTHAL_CLOCK_DEVICE "mxc_timer1" -#elif defined(CONFIG_ARCH_OMAP2) || defined(CONFIG_ARCH_OMAP3) || defined(CONFIG_ARCH_OMAP4) +#elif defined(CONFIG_ARCH_OMAP2) || defined(CONFIG_ARCH_OMAP3) \ + || (defined(CONFIG_ARCH_OMAP4) && !defined(CONFIG_SMP)) #define RTHAL_TIMER_DEVICE "gp timer" #define RTHAL_CLOCK_DEVICE "gp timer" +/* omap4 SMP uses TWD */ +#elif defined(CONFIG_PLAT_ORION) +#define RTHAL_TIMER_DEVICE "orion_tick" +#define RTHAL_CLOCK_DEVICE "orion_clocksource" #elif defined(CONFIG_ARCH_PXA) #define RTHAL_TIMER_DEVICE "osmr0" #define RTHAL_CLOCK_DEVICE "oscr0" @@ -70,9 +75,9 @@ #elif defined(CONFIG_ARCH_SA1100) #define RTHAL_TIMER_DEVICE "osmr0" #define RTHAL_CLOCK_DEVICE "oscr0" -#elif defined(CONFIG_PLAT_ORION) -#define RTHAL_TIMER_DEVICE "orion_tick" -#define RTHAL_CLOCK_DEVICE "orion_clocksource" +#elif defined(CONFIG_SMP) && defined(CONFIG_HAVE_ARM_TWD) +#define RTHAL_TIMER_DEVICE "local_timer" +#define RTHAL_CLOCK_DEVICE "global_timer" #else #error "Unsupported ARM machine" #endif /* CONFIG_ARCH_SA1100 */ _______________________________________________ Xenomai-git mailing list Xenomai-git@gna.org https://mail.gna.org/listinfo/xenomai-git