ARM: EXYNOS4: Add MCT support for EXYNOS4412
Subsystems (3)
PATCH 4/5 ARM: EXYNOS4: Add MCT support for EXYNOS4412
From: Changhwan Youn <[email protected]>
Current MCT implementation only provide 2 event timers, thus cannot support EXYNOS4412 which has 4 CPU cores. This patch fixes MCT implementation to support SoCs with 4 cores.
Signed-off-by Changhwan Youn <[email protected]>
Signed-off-by Kukjin Kim <[email protected]>
--- arch/arm/mach-exynos4/include/mach/regs-mct.h | 5 +- arch/arm/mach-exynos4/mct.c | 113 ++++++++++++------------- 2 files changed, 56 insertions(+), 62 deletions(-)
arch/arm/mach-exynos4/include/mach/regs-mct.h +3 -2
@@ -31,8 +31,9 @@#define EXYNOS4_MCT_G_INT_ENB EXYNOS4_MCTREG(0x248)#define EXYNOS4_MCT_G_WSTAT EXYNOS4_MCTREG(0x24C) -#define EXYNOS4_MCT_L0_BASE EXYNOS4_MCTREG(0x300) -#define EXYNOS4_MCT_L1_BASE EXYNOS4_MCTREG(0x400) +#define _EXYNOS4_MCT_L_BASE EXYNOS4_MCTREG(0x300) +#define EXYNOS4_MCT_L_BASE (x) (_EXYNOS4_MCT_L_BASE + (0x100 * x)) +#define EXYNOS4_MCT_L_MASK (0xffffff00)#define MCT_L_TCNTB_OFFSET (0x00)#define MCT_L_ICNTB_OFFSET (0x08)
arch/arm/mach-exynos4/mct.c +53 -60
140 lines not on this page · raw message
Signature · 1 line
1.7.1