From 49ea15d55fcbb3ee26a23cbfbda314bc17467ad8 Mon Sep 17 00:00:00 2001 From: Peng Fan Date: Thu, 13 Aug 2015 10:55:31 +0800 Subject: [PATCH] imx: mx27 implement get_cpu_rev Implement get_cpu_rev to support runtime check using is_cpu_type. Signed-off-by: Peng Fan Cc: Stefano Babic Reviewed-by: Stefano Babic --- arch/arm/cpu/arm926ejs/mx27/generic.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/arch/arm/cpu/arm926ejs/mx27/generic.c b/arch/arm/cpu/arm926ejs/mx27/generic.c index 5ee9f07d87..b713c84519 100644 --- a/arch/arm/cpu/arm926ejs/mx27/generic.c +++ b/arch/arm/cpu/arm926ejs/mx27/generic.c @@ -12,6 +12,7 @@ #include #include #include +#include #ifdef CONFIG_MXC_MMC #include #endif @@ -159,6 +160,11 @@ unsigned int mxc_get_clock(enum mxc_clock clk) } +u32 get_cpu_rev(void) +{ + return MXC_CPU_MX27 << 12; +} + #if defined(CONFIG_DISPLAY_CPUINFO) int print_cpuinfo (void) { -- 2.39.5