summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric Nelson <eric.nelson@boundarydevices.com>2013-02-26 21:42:26 -0700
committerEric Nelson <eric.nelson@boundarydevices.com>2013-03-03 08:14:51 -0700
commit250d1ea40b08689ca99d6d63cc260c2c059ef6f9 (patch)
treed5945070fb2704c09f507d9a77eedd73018d7ca7
parentb4b0bbad31a089aa4dc01daf5e428cf9aa0cd3a5 (diff)
i.MX6: default to 1GHz on TO 1.0
Signed-off-by: Eric Nelson <eric.nelson@boundarydevices.com>
-rw-r--r--arch/arm/mach-mx6/cpu_op-mx6.c6
1 files changed, 4 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..9281faa51c44 100644
--- a/arch/arm/mach-mx6/cpu_op-mx6.c
+++ b/arch/arm/mach-mx6/cpu_op-mx6.c
@@ -342,7 +342,7 @@ void mx6_cpu_op_init(void)
{
unsigned int reg;
void __iomem *base;
- if (cpu_is_mx6q()) {
+ if (cpu_is_mx6q() && (mx6q_revision() > IMX_CHIP_REVISION_1_0)) {
/*read fuse bit to know the max cpu freq : offset 0x440
* bit[17:16]:SPEED_GRADING[1:0]*/
base = IO_ADDRESS(OCOTP_BASE_ADDR);
@@ -351,8 +351,10 @@ void mx6_cpu_op_init(void)
reg >>= OCOTP_SPEED_BIT_OFFSET;
/*choose the little value to run lower max cpufreq*/
arm_max_freq = (reg > arm_max_freq) ? arm_max_freq : reg;
- } else
+ } else {
+ /* TO 1.0 didn't have cpu frequency fuses blown */
arm_max_freq = CPU_AT_1GHz;/*mx6dl/sl max freq is 1Ghz*/
+ }
printk(KERN_INFO "arm_max_freq=%x\n", arm_max_freq);
get_cpu_op = mx6_get_cpu_op;
set_num_cpu_op = mx6_set_num_cpu_op;