From a3ca26c0858cf3ee4ede1b7a0821b4eb2277bfa3 Mon Sep 17 00:00:00 2001 From: xxx Date: Fri, 17 May 2013 18:27:40 +0800 Subject: [PATCH] rk3028 support uart48M --- arch/arm/mach-rk30/board-rk3028-tb.c | 24 +++++++++++++++++++++++- 1 file changed, 23 insertions(+), 1 deletion(-) diff --git a/arch/arm/mach-rk30/board-rk3028-tb.c b/arch/arm/mach-rk30/board-rk3028-tb.c index edaab5262ffe..6bd24afc3b14 100755 --- a/arch/arm/mach-rk30/board-rk3028-tb.c +++ b/arch/arm/mach-rk30/board-rk3028-tb.c @@ -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