summaryrefslogtreecommitdiff
path: root/bootloader/imx233.c
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/imx233.c
parent7e03dbbf941a7f18f7dc32980e406adfb0a1f288 (diff)
downloadrockbox-2f5f2ba91dfe5a41551d54b7af33be42e7a27c5d.tar.gz
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/imx233.c')
-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)
141 system_init(); 141 system_init();
142 kernel_init(); 142 kernel_init();
143 143
144 /* some ixm233 targets needs this because the cpu and/or memory is clocked
145 * at 24MHz, resulting in terribly slow boots and unusable usb mode.
146 * While we are at it, clock at maximum speed to minimise boot time. */
147 imx233_set_cpu_frequency(CPUFREQ_MAX);
148
144 power_init(); 149 power_init();
145 enable_irq(); 150 enable_irq();
146 151