summaryrefslogtreecommitdiffstats
path: root/bootloader
diff options
context:
space:
mode:
authorAmaury Pouly <amaury.pouly@gmail.com>2013-09-25 14:12:48 +0200
committerAmaury Pouly <amaury.pouly@gmail.com>2013-09-25 14:31:39 +0200
commit2f5f2ba91dfe5a41551d54b7af33be42e7a27c5d (patch)
treee6ff3ecd8153242a4f3dee3ada570b38a5863e4b /bootloader
parent7e03dbbf941a7f18f7dc32980e406adfb0a1f288 (diff)
downloadrockbox-2f5f2ba91dfe5a41551d54b7af33be42e7a27c5d.tar.gz
rockbox-2f5f2ba91dfe5a41551d54b7af33be42e7a27c5d.tar.bz2
rockbox-2f5f2ba91dfe5a41551d54b7af33be42e7a27c5d.zip
imx233: always boost in bootloader
Many imx233 targets boot in a very low performance mode, typically cpu and dram at 24MHz. This results in very slow boots and very unstable USB bootloader mode. Since cpu frequency scaling is disabled in bootloader in rockbox, always make the frequency scaling code available and boost at boot time. Change-Id: Ie96623c00f7c4cd9a377b84dcb14b772558cfa4d
Diffstat (limited to 'bootloader')
-rw-r--r--bootloader/imx233.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/bootloader/imx233.c b/bootloader/imx233.c
index ebd67cea6c..79e5708bad 100644
--- a/bootloader/imx233.c
+++ b/bootloader/imx233.c
@@ -141,6 +141,11 @@ void main(uint32_t arg, uint32_t addr)
system_init();
kernel_init();
+ /* some ixm233 targets needs this because the cpu and/or memory is clocked
+ * at 24MHz, resulting in terribly slow boots and unusable usb mode.
+ * While we are at it, clock at maximum speed to minimise boot time. */
+ imx233_set_cpu_frequency(CPUFREQ_MAX);
+
power_init();
enable_irq();