summaryrefslogtreecommitdiff
path: root/arch/arm/mach-mx6/cpu_op-mx6.c
diff options
context:
space:
mode:
authorRobin Gong <b38343@freescale.com>2013-02-26 16:04:09 +0800
committerRobin Gong <b38343@freescale.com>2013-02-26 16:20:52 +0800
commitb63f6f1eb52f7e20efe1d5ddbb4177284ccbc874 (patch)
tree0409b0e11f71e37c35b13752b79f3ef55f7af3a9 /arch/arm/mach-mx6/cpu_op-mx6.c
parent08aef18633906b6b2e30152355d7a4af6e3715e1 (diff)
ENGR00251849-1 cpufreq:print the max freq directly, not obscure number
You can see "arm_max_freq=1GHz" log directly from console during boot. not "arm_max_freq=1" before. Signed-off-by: Robin Gong <b38343@freescale.com>
Diffstat (limited to 'arch/arm/mach-mx6/cpu_op-mx6.c')
-rw-r--r--arch/arm/mach-mx6/cpu_op-mx6.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/arch/arm/mach-mx6/cpu_op-mx6.c b/arch/arm/mach-mx6/cpu_op-mx6.c
index 5124c5ee5985..541861832543 100644
--- a/arch/arm/mach-mx6/cpu_op-mx6.c
+++ b/arch/arm/mach-mx6/cpu_op-mx6.c
@@ -1,5 +1,5 @@
/*
- * Copyright (C) 2010-2012 Freescale Semiconductor, Inc. All Rights Reserved.
+ * Copyright (C) 2010-2013 Freescale Semiconductor, Inc. All Rights Reserved.
*/
/*
@@ -353,7 +353,8 @@ void mx6_cpu_op_init(void)
arm_max_freq = (reg > arm_max_freq) ? arm_max_freq : reg;
} else
arm_max_freq = CPU_AT_1GHz;/*mx6dl/sl max freq is 1Ghz*/
- printk(KERN_INFO "arm_max_freq=%x\n", arm_max_freq);
+ printk(KERN_INFO "arm_max_freq=%s\n", (arm_max_freq == CPU_AT_1_2GHz) ?
+ "1.2GHz" : ((arm_max_freq == CPU_AT_1GHz) ? "1GHz" : "800MHz"));
get_cpu_op = mx6_get_cpu_op;
set_num_cpu_op = mx6_set_num_cpu_op;