diff options
author | Nancy Chen <Nancy.Chen@freescale.com> | 2012-06-22 14:12:00 -0500 |
---|---|---|
committer | Terry Lv <r65388@freescale.com> | 2012-06-25 15:53:50 +0800 |
commit | 455748c803d874e54271852ec3124f5de6bb0397 (patch) | |
tree | 231d7eed6c8be389eb35393fe093dc3b72fd869a | |
parent | be7dfc23bae73fed1b10b3067b7c4bb8eee44c49 (diff) |
ENGR00214736 [MX6SL]: Enable BUSFREQ at boot
Busfreq should be enabled at boot by default on i.MX6SL.
Signed-off-by: Nancy Chen <Nancy.Chen@freescale.com>
-rw-r--r-- | arch/arm/mach-mx6/bus_freq.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/arch/arm/mach-mx6/bus_freq.c b/arch/arm/mach-mx6/bus_freq.c index 37aec11d0133..85f23c75d286 100644 --- a/arch/arm/mach-mx6/bus_freq.c +++ b/arch/arm/mach-mx6/bus_freq.c @@ -568,6 +568,19 @@ 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; + 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"); + } + return 0; } |