rk3028: add dvfs voltage difference table
authorchenxing <chenxing@rock-chips.com>
Mon, 8 Apr 2013 02:24:08 +0000 (10:24 +0800)
committerchenxing <chenxing@rock-chips.com>
Mon, 8 Apr 2013 02:24:25 +0000 (10:24 +0800)
arch/arm/mach-rk30/dvfs.c

index deb38384d365a04ba0d9b99476a34db4832117d6..2187dc9df0c8c2480e3c0cc121fd0362e4a596f9 100755 (executable)
@@ -84,8 +84,7 @@ static int g_arm_high_logic = 150 * 1000;
 static int g_logic_high_arm = 100 * 1000;\r
 #endif\r
 \r
-\r
-#ifdef CONFIG_SOC_RK3168\r
+#if defined(CONFIG_SOC_RK3168) || defined(CONFIG_SOC_RK3028)\r
 static struct cpufreq_frequency_table arm_high_logic_table[] = {\r
         {.frequency = 1416 * DVFS_KHZ, .index = 0 * DVFS_MV},\r
         {.frequency = 1608 * DVFS_KHZ, .index = 0 * DVFS_MV},\r
@@ -97,7 +96,7 @@ static struct cpufreq_frequency_table logic_high_arm_table[] = {
         {.frequency = 1608 * DVFS_KHZ, .index = 50 * DVFS_MV},\r
         {.frequency = CPUFREQ_TABLE_END},\r
 };\r
-#else\r
+#elif defined(CONFIG_SOC_RK3066)\r
 static struct cpufreq_frequency_table arm_high_logic_table[] = {\r
         {.frequency = 1416 * DVFS_KHZ, .index = 50 * DVFS_MV},\r
         {.frequency = 1608 * DVFS_KHZ, .index = 100 * DVFS_MV},\r
@@ -108,8 +107,19 @@ static struct cpufreq_frequency_table logic_high_arm_table[] = {
         {.frequency = 1416 * DVFS_KHZ, .index = 150 * DVFS_MV},\r
         {.frequency = 1608 * DVFS_KHZ, .index = 100 * DVFS_MV},\r
 };\r
-#endif\r
+#else\r
+static struct cpufreq_frequency_table arm_high_logic_table[] = {\r
+        {.frequency = 1416 * DVFS_KHZ, .index = 0 * DVFS_MV},\r
+        {.frequency = 1608 * DVFS_KHZ, .index = 0 * DVFS_MV},\r
+        {.frequency = CPUFREQ_TABLE_END},\r
+};\r
 \r
+static struct cpufreq_frequency_table logic_high_arm_table[] = {\r
+        {.frequency = 1008 * DVFS_KHZ, .index = 50 * DVFS_MV},\r
+        {.frequency = 1608 * DVFS_KHZ, .index = 50 * DVFS_MV},\r
+        {.frequency = CPUFREQ_TABLE_END},\r
+};\r
+#endif\r
 \r
 int get_arm_logic_limit(unsigned long arm_rate, int *arm_high_logic, int *logic_high_arm)\r
 {\r