summaryrefslogtreecommitdiffstats
path: root/arch/arm/cpu/armv7/vf610/generic.c
diff options
context:
space:
mode:
authorPeng Fan <Peng.Fan@freescale.com>2015-09-01 17:15:03 +0800
committerStefano Babic <sbabic@denx.de>2015-09-02 15:39:51 +0200
commit37cf215253a488ba6b903989b1eff072f59d266e (patch)
tree0076385b26ec2d5f1d03419ce9d195cb83f52338 /arch/arm/cpu/armv7/vf610/generic.c
parent7296a023580f3cf1e386d6924b226bc1f4db2217 (diff)
downloadblackbird-obmc-uboot-37cf215253a488ba6b903989b1eff072f59d266e.tar.gz
blackbird-obmc-uboot-37cf215253a488ba6b903989b1eff072f59d266e.zip
imx: vf610 add get_cpu_rev
Since we need to support runtime check for different drivers, we need to add get_cpu_rev for vf610, otherwise there will be build errors. This patch introduces a dummy CPU id which is not read from chip silicon. Later when we can get the real id from chip, can fix the value of MXC_CPU_VF610 then. Signed-off-by: Peng Fan <Peng.Fan@freescale.com> Suggested-by: Stefano Babic <sbabic@denx.de> Cc: Stefano Babic <sbabic@denx.de> Acked-by: Stefano Babic <sbabic@denx.de>
Diffstat (limited to 'arch/arm/cpu/armv7/vf610/generic.c')
-rw-r--r--arch/arm/cpu/armv7/vf610/generic.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/arch/arm/cpu/armv7/vf610/generic.c b/arch/arm/cpu/armv7/vf610/generic.c
index 05c401dc73..08b9ef42a1 100644
--- a/arch/arm/cpu/armv7/vf610/generic.c
+++ b/arch/arm/cpu/armv7/vf610/generic.c
@@ -9,6 +9,7 @@
#include <asm/arch/imx-regs.h>
#include <asm/arch/clock.h>
#include <asm/arch/crm_regs.h>
+#include <asm/imx-common/sys_proto.h>
#include <netdev.h>
#ifdef CONFIG_FSL_ESDHC
#include <fsl_esdhc.h>
@@ -266,6 +267,11 @@ void imx_get_mac_from_fuse(int dev_id, unsigned char *mac)
}
#endif
+u32 get_cpu_rev(void)
+{
+ return MXC_CPU_VF610 << 12;
+}
+
#if defined(CONFIG_DISPLAY_CPUINFO)
static char *get_reset_cause(void)
{
OpenPOWER on IntegriCloud