From 2d5d725f05e9a6e3ab5d18a28adae3bdf55053d4 Mon Sep 17 00:00:00 2001 From: chenxing Date: Tue, 22 Jan 2013 14:37:16 +0800 Subject: [PATCH] rk3168/rk3188: update dvfs table to fit rk3188 --- arch/arm/mach-rk30/board-rk3168-tb.c | 34 ++++++++++++++-------------- arch/arm/mach-rk30/dvfs.c | 8 +++---- 2 files changed, 21 insertions(+), 21 deletions(-) diff --git a/arch/arm/mach-rk30/board-rk3168-tb.c b/arch/arm/mach-rk30/board-rk3168-tb.c index 0ed26c3b35db..f384094f6674 100755 --- a/arch/arm/mach-rk30/board-rk3168-tb.c +++ b/arch/arm/mach-rk30/board-rk3168-tb.c @@ -1968,35 +1968,35 @@ static void __init rk30_reserve(void) * @cpu_volt : arm voltage depend on frequency */ static struct cpufreq_frequency_table dvfs_arm_table[] = { - {.frequency = 312 * 1000, .index = 800 * 1000}, - {.frequency = 504 * 1000, .index = 850 * 1000}, - {.frequency = 816 * 1000, .index = 900 * 1000}, - {.frequency = 1008 * 1000, .index = 950 * 1000}, - {.frequency = 1200 * 1000, .index = 1000 * 1000}, - {.frequency = 1416 * 1000, .index = 1075 * 1000}, - {.frequency = 1608 * 1000, .index = 1175 * 1000}, + {.frequency = 312 * 1000, .index = 850 * 1000}, + {.frequency = 504 * 1000, .index = 900 * 1000}, + {.frequency = 816 * 1000, .index = 950 * 1000}, + {.frequency = 1008 * 1000, .index = 1025 * 1000}, + {.frequency = 1200 * 1000, .index = 1100 * 1000}, + {.frequency = 1416 * 1000, .index = 1200 * 1000}, + {.frequency = 1608 * 1000, .index = 1300 * 1000}, {.frequency = CPUFREQ_TABLE_END}, }; static struct cpufreq_frequency_table dvfs_gpu_table[] = { #if defined(CONFIG_ARCH_RK3188) - {.frequency = 133 * 1000, .index = 900 * 1000},//the mininum rate is limited 133M for rk3188 + {.frequency = 133 * 1000, .index = 975 * 1000},//the mininum rate is limited 133M for rk3188 #elif defined(CONFIG_ARCH_RK3066B) - {.frequency = 100 * 1000, .index = 900 * 1000},//the minimum rate is no limit for rk3168 rk3066B + {.frequency = 100 * 1000, .index = 950 * 1000},//the minimum rate is no limit for rk3168 rk3066B #endif - {.frequency = 200 * 1000, .index = 950 * 1000}, - {.frequency = 266 * 1000, .index = 950 * 1000}, - {.frequency = 300 * 1000, .index = 950 * 1000}, - {.frequency = 400 * 1000, .index = 1000 * 1000}, - {.frequency = 600 * 1000, .index = 1100 * 1000}, + {.frequency = 200 * 1000, .index = 975 * 1000}, + {.frequency = 266 * 1000, .index = 1000 * 1000}, + {.frequency = 300 * 1000, .index = 1050 * 1000}, + {.frequency = 400 * 1000, .index = 1100 * 1000}, + {.frequency = 600 * 1000, .index = 1200 * 1000}, {.frequency = CPUFREQ_TABLE_END}, }; static struct cpufreq_frequency_table dvfs_ddr_table[] = { - {.frequency = 200 * 1000 + DDR_FREQ_SUSPEND, .index = 900 * 1000}, - {.frequency = 300 * 1000 + DDR_FREQ_VIDEO, .index = 950 * 1000}, - {.frequency = 400 * 1000 + DDR_FREQ_NORMAL, .index = 1000 * 1000}, + {.frequency = 200 * 1000 + DDR_FREQ_SUSPEND, .index = 950 * 1000}, + {.frequency = 300 * 1000 + DDR_FREQ_VIDEO, .index = 1000 * 1000}, + {.frequency = 400 * 1000 + DDR_FREQ_NORMAL, .index = 1100 * 1000}, {.frequency = CPUFREQ_TABLE_END}, }; diff --git a/arch/arm/mach-rk30/dvfs.c b/arch/arm/mach-rk30/dvfs.c index 1ab3a49f4fc1..01e56220b730 100755 --- a/arch/arm/mach-rk30/dvfs.c +++ b/arch/arm/mach-rk30/dvfs.c @@ -87,14 +87,14 @@ static int g_logic_high_arm = 100 * 1000; #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 = 75 * DVFS_MV}, + {.frequency = 1416 * DVFS_KHZ, .index = 25 * DVFS_MV}, + {.frequency = 1608 * DVFS_KHZ, .index = 25 * DVFS_MV}, {.frequency = CPUFREQ_TABLE_END}, }; static struct cpufreq_frequency_table logic_high_arm_table[] = { - {.frequency = 1008 * DVFS_KHZ, .index = 275 * DVFS_MV}, - {.frequency = 1608 * DVFS_KHZ, .index = 150 * DVFS_MV}, + {.frequency = 1008 * DVFS_KHZ, .index = 150 * DVFS_MV}, + {.frequency = 1608 * DVFS_KHZ, .index = 75 * DVFS_MV}, {.frequency = CPUFREQ_TABLE_END}, }; #else -- 2.34.1