summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnson Huang <b20788@freescale.com>2012-07-06 22:33:02 +0800
committerTerry Lv <r65388@freescale.com>2012-07-25 13:10:33 +0800
commitec6389c2d0c32e1c0c7eb0735e703ceff1042b4a (patch)
tree31a01e7040f7fb9aa7399f9f31b32a865cb1175d
parent585cc948c1414d4e420b623511254083027ee21d (diff)
ENGR00215970 [MX6]Enable BUS freq driver by default
Enable BUS freq by default for i.MX6DQ and i.MX6DL Signed-off-by: Anson Huang <b20788@freescale.com>
-rw-r--r--arch/arm/mach-mx6/bus_freq.c21
1 files changed, 12 insertions, 9 deletions
diff --git a/arch/arm/mach-mx6/bus_freq.c b/arch/arm/mach-mx6/bus_freq.c
index 2de1da2d9fc6..a123295d8993 100644
--- a/arch/arm/mach-mx6/bus_freq.c
+++ b/arch/arm/mach-mx6/bus_freq.c
@@ -586,17 +586,20 @@ static int __init busfreq_init(void)
printk(KERN_INFO "Bus freq driver module loaded\n");
- if (cpu_is_mx6sl()) {
- /* Enable busfreq by default. */
- bus_freq_scaling_is_active = 1;
+ /* Enable busfreq by default. */
+ bus_freq_scaling_is_active = 1;
+
+ if (cpu_is_mx6q())
+ set_high_bus_freq(1);
+ else
set_high_bus_freq(0);
- /* Make sure system can enter low bus mode if it should be in
- low bus mode */
- if (low_freq_bus_used() && !low_bus_freq_mode)
- set_low_bus_freq();
- printk(KERN_INFO "Bus freq driver Enabled\n");
- }
+ /* Make sure system can enter low bus mode if it should be in
+ low bus mode */
+ if (low_freq_bus_used() && !low_bus_freq_mode)
+ set_low_bus_freq();
+
+ printk(KERN_INFO "Bus freq driver Enabled\n");
return 0;
}