]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
ENGR00214736 [MX6SL]: Enable BUSFREQ at boot
authorNancy Chen <Nancy.Chen@freescale.com>
Fri, 22 Jun 2012 19:12:00 +0000 (14:12 -0500)
committerOliver Wendt <ow@karo-electronics.de>
Mon, 30 Sep 2013 12:12:10 +0000 (14:12 +0200)
Busfreq should be enabled at boot by default on i.MX6SL.

Signed-off-by: Nancy Chen <Nancy.Chen@freescale.com>
arch/arm/mach-mx6/bus_freq.c

index 37aec11d0133a9cbe9549c433418144ff953c979..85f23c75d2865a26f2c47c9deff2963d92fa00ca 100644 (file)
@@ -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;
 }