mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-09 12:17:12 +09:00
rk3028 support uart48M
This commit is contained in:
@@ -2161,10 +2161,32 @@ static struct cpufreq_frequency_table dvfs_ddr_table[] = {
|
||||
//#define DVFS_CPU_TABLE_SIZE (ARRAY_SIZE(dvfs_cpu_logic_table))
|
||||
//static struct cpufreq_frequency_table cpu_dvfs_table[DVFS_CPU_TABLE_SIZE];
|
||||
//static struct cpufreq_frequency_table dep_cpu2core_table[DVFS_CPU_TABLE_SIZE];
|
||||
int get_max_freq(struct cpufreq_frequency_table *table)
|
||||
{
|
||||
int i,temp=0;
|
||||
|
||||
for(i=0;table[i].frequency!= CPUFREQ_TABLE_END;i++)
|
||||
{
|
||||
if(temp<table[i].frequency)
|
||||
temp=table[i].frequency;
|
||||
}
|
||||
printk("get_max_freq=%d\n",temp);
|
||||
return temp;
|
||||
}
|
||||
|
||||
void __init board_clock_init(void)
|
||||
{
|
||||
rk30_clock_data_init(periph_pll_default, codec_pll_default, RK30_CLOCKS_DEFAULT_FLAGS);
|
||||
|
||||
u32 flags=RK30_CLOCKS_DEFAULT_FLAGS;
|
||||
#if !defined(CONFIG_ARCH_RK3188)
|
||||
if(get_max_freq(dvfs_gpu_table)<=(400*1000))
|
||||
{
|
||||
flags=RK30_CLOCKS_DEFAULT_FLAGS|CLK_GPU_GPLL;
|
||||
}
|
||||
else
|
||||
flags=RK30_CLOCKS_DEFAULT_FLAGS|CLK_GPU_CPLL;
|
||||
#endif
|
||||
rk30_clock_data_init(periph_pll_default, codec_pll_default, flags);
|
||||
//dvfs_set_arm_logic_volt(dvfs_cpu_logic_table, cpu_dvfs_table, dep_cpu2core_table);
|
||||
dvfs_set_freq_volt_table(clk_get(NULL, "cpu"), dvfs_arm_table);
|
||||
dvfs_set_freq_volt_table(clk_get(NULL, "gpu"), dvfs_gpu_table);
|
||||
|
||||
Reference in New Issue
Block a user