mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-11-09 21:22:39 -05:00
imx233/system: don't do frequency management on < stmp3780, it's not working
Change-Id: Ie9ff5122f1cb4fe3809bb4c6b88ef0cfc353e0e1
This commit is contained in:
parent
151fa30257
commit
3d1666042e
1 changed files with 6 additions and 0 deletions
|
|
@ -204,6 +204,7 @@ struct cpufreq_profile_t
|
||||||
int arm_cache_timings;
|
int arm_cache_timings;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
#if IMX233_SUBTARGET >= 3780
|
||||||
static struct cpufreq_profile_t cpu_profiles[] =
|
static struct cpufreq_profile_t cpu_profiles[] =
|
||||||
{
|
{
|
||||||
/* clk_p@454.74 MHz, clk_h@130.91 MHz, clk_emi@130.91 MHz, VDDD@1.550 V */
|
/* clk_p@454.74 MHz, clk_h@130.91 MHz, clk_emi@130.91 MHz, VDDD@1.550 V */
|
||||||
|
|
@ -215,11 +216,13 @@ static struct cpufreq_profile_t cpu_profiles[] =
|
||||||
/* dummy */
|
/* dummy */
|
||||||
{0, 0, 0, 0, 0, 0, 0, 0}
|
{0, 0, 0, 0, 0, 0, 0, 0}
|
||||||
};
|
};
|
||||||
|
#endif
|
||||||
|
|
||||||
#define NR_CPU_PROFILES ((int)(sizeof(cpu_profiles)/sizeof(cpu_profiles[0])))
|
#define NR_CPU_PROFILES ((int)(sizeof(cpu_profiles)/sizeof(cpu_profiles[0])))
|
||||||
|
|
||||||
void imx233_set_cpu_frequency(long frequency)
|
void imx233_set_cpu_frequency(long frequency)
|
||||||
{
|
{
|
||||||
|
#if IMX233_SUBTARGET >= 3780
|
||||||
/* don't change the frequency if it is useless (changes are expensive) */
|
/* don't change the frequency if it is useless (changes are expensive) */
|
||||||
if(cpu_frequency == frequency)
|
if(cpu_frequency == frequency)
|
||||||
return;
|
return;
|
||||||
|
|
@ -275,6 +278,9 @@ void imx233_set_cpu_frequency(long frequency)
|
||||||
imx233_clkctrl_enable_auto_slow(true);
|
imx233_clkctrl_enable_auto_slow(true);
|
||||||
/* update frequency */
|
/* update frequency */
|
||||||
cpu_frequency = frequency;
|
cpu_frequency = frequency;
|
||||||
|
#else
|
||||||
|
(void) frequency;
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef HAVE_ADJUSTABLE_CPU_FREQ
|
#ifdef HAVE_ADJUSTABLE_CPU_FREQ
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue