diff options
author | Peng Fan <Peng.Fan@freescale.com> | 2015-03-30 10:35:40 +0800 |
---|---|---|
committer | Max Krummenacher <max.krummenacher@toradex.com> | 2016-03-09 14:42:21 +0100 |
commit | ddd86e2b6b4ffc17ef9d9cfbc773ef6b7ef17bbd (patch) | |
tree | 995e96db8d052ae06ef519259aa9be5be05ce5da | |
parent | 1446d3fb46ce213b03d61b9d6bedfb17f3957357 (diff) |
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>
(cherry picked from commit 64b2be69835af80e0dbc151175617942683a3167)
-rw-r--r-- | arch/arm/imx-common/cpu.c | 19 |
1 files changed, 14 insertions, 5 deletions
diff --git a/arch/arm/imx-common/cpu.c b/arch/arm/imx-common/cpu.c index da2629ad0de..74c08d7d2f8 100644 --- a/arch/arm/imx-common/cpu.c +++ b/arch/arm/imx-common/cpu.c @@ -175,11 +175,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_IMX_THERMAL) ret = uclass_get_device(UCLASS_THERMAL, 0, &thermal_dev); |