Skip to content
Snippets Groups Projects
Commit 49ea15d5 authored by Peng Fan's avatar Peng Fan Committed by Stefano Babic
Browse files

imx: mx27 implement get_cpu_rev


Implement get_cpu_rev to support runtime check using is_cpu_type.

Signed-off-by: default avatarPeng Fan <Peng.Fan@freescale.com>
Cc: Stefano Babic <sbabic@denx.de>
Reviewed-by: default avatarStefano Babic <sbabic@denx.de>
parent c398e750
No related branches found
No related tags found
No related merge requests found
...@@ -12,6 +12,7 @@ ...@@ -12,6 +12,7 @@
#include <asm/arch/imx-regs.h> #include <asm/arch/imx-regs.h>
#include <asm/arch/clock.h> #include <asm/arch/clock.h>
#include <asm/arch/gpio.h> #include <asm/arch/gpio.h>
#include <asm/imx-common/sys_proto.h>
#ifdef CONFIG_MXC_MMC #ifdef CONFIG_MXC_MMC
#include <asm/arch/mxcmmc.h> #include <asm/arch/mxcmmc.h>
#endif #endif
...@@ -159,6 +160,11 @@ unsigned int mxc_get_clock(enum mxc_clock clk) ...@@ -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) #if defined(CONFIG_DISPLAY_CPUINFO)
int print_cpuinfo (void) int print_cpuinfo (void)
{ {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment