mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-11-09 13:12:37 -05:00
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
This commit is contained in:
parent
7e03dbbf94
commit
2f5f2ba91d
3 changed files with 14 additions and 2 deletions
|
|
@ -192,7 +192,6 @@ void imx233_digctl_set_arm_cache_timings(unsigned timings)
|
|||
#endif
|
||||
}
|
||||
|
||||
#ifdef HAVE_ADJUSTABLE_CPU_FREQ
|
||||
struct cpufreq_profile_t
|
||||
{
|
||||
/* key */
|
||||
|
|
@ -219,7 +218,7 @@ static struct cpufreq_profile_t cpu_profiles[] =
|
|||
|
||||
#define NR_CPU_PROFILES ((int)(sizeof(cpu_profiles)/sizeof(cpu_profiles[0])))
|
||||
|
||||
void set_cpu_frequency(long frequency)
|
||||
void imx233_set_cpu_frequency(long frequency)
|
||||
{
|
||||
/* don't change the frequency if it is useless (changes are expensive) */
|
||||
if(cpu_frequency == frequency)
|
||||
|
|
@ -277,6 +276,12 @@ void set_cpu_frequency(long frequency)
|
|||
/* update frequency */
|
||||
cpu_frequency = frequency;
|
||||
}
|
||||
|
||||
#ifdef HAVE_ADJUSTABLE_CPU_FREQ
|
||||
void set_cpu_frequency(long frequency)
|
||||
{
|
||||
return imx233_set_cpu_frequency(frequency);
|
||||
}
|
||||
#endif
|
||||
|
||||
void imx233_enable_usb_controller(bool enable)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue