\r
#ifdef CONFIG_SOC_RK3168\r
static struct cpufreq_frequency_table arm_high_logic_table[] = {\r
- {.frequency = 1416 * DVFS_KHZ, .index = 25 * DVFS_MV},\r
- {.frequency = 1608 * DVFS_KHZ, .index = 25 * DVFS_MV},\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 = 150 * DVFS_MV},\r
- {.frequency = 1608 * DVFS_KHZ, .index = 75 * DVFS_MV},\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
#else\r
} else {\r
volt_dep = volt + dep_biger_than_clk;\r
}\r
- } else {\r
+ } else if (volt < volt_dep){\r
if (volt == volt_new) {\r
volt_dep = volt + dep_biger_than_clk;\r
} else {\r
volt = volt_dep + clk_biger_than_dep;\r
}\r
+ } else {\r
+ if (volt != volt_new)\r
+ volt = volt_dep + clk_biger_than_dep;\r
+ if (volt_dep != volt_dep_new)\r
+ volt_dep = volt + dep_biger_than_clk;\r
}\r
volt = volt > volt_new ? volt_new : volt;\r
volt_dep = volt_dep > volt_dep_new ? volt_dep_new : volt_dep;\r
} else {\r
volt = volt_dep - dep_biger_than_clk;\r
}\r
- } else {\r
+ } else if (volt < volt_dep){\r
if (volt_dep == volt_dep_new) {\r
volt = volt_dep - dep_biger_than_clk;\r
} else {\r
volt_dep = volt - clk_biger_than_dep;\r
}\r
+ } else {\r
+ if (volt != volt_new)\r
+ volt = volt_dep - dep_biger_than_clk;\r
+ if (volt_dep != volt_dep_new)\r
+ volt_dep = volt - clk_biger_than_dep;\r
}\r
volt = volt < volt_new ? volt_new : volt;\r
volt_dep = volt_dep < volt_dep_new ? volt_dep_new : volt_dep;\r