From: chenxing Date: Wed, 16 Jan 2013 06:29:13 +0000 (+0800) Subject: rk30: update dvfs volt diff table X-Git-Tag: firefly_0821_release~7931 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=bc4a13cf3fd6f1e0c4b4ad7fe37a55fb4b594129;p=firefly-linux-kernel-4.4.55.git rk30: update dvfs volt diff table --- diff --git a/arch/arm/mach-rk30/dvfs.c b/arch/arm/mach-rk30/dvfs.c index b9066b23e3a0..bafda02d6f67 100644 --- a/arch/arm/mach-rk30/dvfs.c +++ b/arch/arm/mach-rk30/dvfs.c @@ -1032,18 +1032,31 @@ int dvfs_get_depend_volt(struct clk_node *dvfs_clk, struct vd_node *dvfs_vd_dep, return -1; } +#ifdef CONFIG_SOC_RK3168 static struct cpufreq_frequency_table arm_high_logic_table[] = { - {.frequency = 1416 * DVFS_KHZ, .index = 50 * DVFS_MV}, - {.frequency = 1608 * DVFS_KHZ, .index = 100 * DVFS_MV}, - {.frequency = CPUFREQ_TABLE_END}, + {.frequency = 1416 * DVFS_KHZ, .index = 50 * DVFS_MV}, + {.frequency = 1608 * DVFS_KHZ, .index = 75 * DVFS_MV}, + {.frequency = CPUFREQ_TABLE_END}, }; static struct cpufreq_frequency_table logic_high_arm_table[] = { - {.frequency = 816 * DVFS_KHZ, .index = 200 * DVFS_MV}, - {.frequency = 1416 * DVFS_KHZ, .index = 150 * DVFS_MV}, - {.frequency = 1608 * DVFS_KHZ, .index = 100 * DVFS_MV}, - {.frequency = CPUFREQ_TABLE_END}, + {.frequency = 1008 * DVFS_KHZ, .index = 275 * DVFS_MV}, + {.frequency = 1608 * DVFS_KHZ, .index = 150 * DVFS_MV}, + {.frequency = CPUFREQ_TABLE_END}, +}; +#else +static struct cpufreq_frequency_table arm_high_logic_table[] = { + {.frequency = 1416 * DVFS_KHZ, .index = 50 * DVFS_MV}, + {.frequency = 1608 * DVFS_KHZ, .index = 100 * DVFS_MV}, + {.frequency = CPUFREQ_TABLE_END}, }; +static struct cpufreq_frequency_table logic_high_arm_table[] = { + {.frequency = 816 * DVFS_KHZ, .index = 200 * DVFS_MV}, + {.frequency = 1416 * DVFS_KHZ, .index = 150 * DVFS_MV}, + {.frequency = 1608 * DVFS_KHZ, .index = 100 * DVFS_MV}, +}; +#endif + int get_arm_logic_limit(unsigned long arm_rate, int *arm_high_logic, int *logic_high_arm) {