summaryrefslogtreecommitdiff
path: root/arch
diff options
context:
space:
mode:
authorPeng Fan <Peng.Fan@freescale.com>2015-03-30 10:35:40 +0800
committerPeng Fan <Peng.Fan@freescale.com>2015-03-30 10:38:25 +0800
commit64b2be69835af80e0dbc151175617942683a3167 (patch)
tree9e6df1ffd1829e47eab8300acd9bfae7e8d00d07 /arch
parent31751fa9cf29ef4056f49fe06a54700a89c9bdc5 (diff)
downloadu-boot-imx-64b2be69835af80e0dbc151175617942683a3167.zip
u-boot-imx-64b2be69835af80e0dbc151175617942683a3167.tar.gz
u-boot-imx-64b2be69835af80e0dbc151175617942683a3167.tar.bz2
MLK-10499 imx:mx6qp update printed cpu info
We should print "MX6QP Rev1.0", but not "MX6Q Rev2.0". Signed-off-by: Peng Fan <Peng.Fan@freescale.com>
Diffstat (limited to 'arch')
-rw-r--r--arch/arm/imx-common/cpu.c19
1 files changed, 14 insertions, 5 deletions
diff --git a/arch/arm/imx-common/cpu.c b/arch/arm/imx-common/cpu.c
index 4792bd5..d95bd36 100644
--- a/arch/arm/imx-common/cpu.c
+++ b/arch/arm/imx-common/cpu.c
@@ -155,11 +155,20 @@ int print_cpuinfo(void)
cpurev = get_cpu_rev();
- printf("CPU: Freescale i.MX%s rev%d.%d at %d MHz\n",
- get_imx_type((cpurev & 0xFF000) >> 12),
- (cpurev & 0x000F0) >> 4,
- (cpurev & 0x0000F) >> 0,
- mxc_get_clock(MXC_ARM_CLK) / 1000000);
+ if (is_mx6dqp()) {
+ printf("CPU: Freescale i.MX%sP rev%d.%d at %d MHz\n",
+ get_imx_type((cpurev & 0xFF000) >> 12),
+ ((cpurev & 0x000F0) >> 4) - 1,
+ (cpurev & 0x0000F) >> 0,
+ mxc_get_clock(MXC_ARM_CLK) / 1000000);
+
+ } else {
+ printf("CPU: Freescale i.MX%s rev%d.%d at %d MHz\n",
+ get_imx_type((cpurev & 0xFF000) >> 12),
+ (cpurev & 0x000F0) >> 4,
+ (cpurev & 0x0000F) >> 0,
+ mxc_get_clock(MXC_ARM_CLK) / 1000000);
+ }
#if defined(CONFIG_MX6) || defined(CONFIG_MX7)
check_cpu_temperature();