Re: [PATCH 1/3] PM / OPP: Add support for descending order for cpufreq table
From: Viresh Kumar
Date: Fri May 09 2014 - 02:00:26 EST
On 9 May 2014 06:39, Jonghwan Choi <jhbird.choi@xxxxxxxxxxx> wrote:
> -> In exynos cpufreq driver, if we want to support more frequency, then
Don't add "->" to your replies, it doesn't make it more readable but less.
> we have to describe frequency information in dts file and have to change exynos cpufreq
> driver file also(For adding divider value).
Why? So, as far as I got it your dividers are nothing but 0,1,2...
i.e.
Freqs: 400 500 600 700 800
div: 4 3 2 1 0
right? That's what you are doing in exynos5440. So just add this in your
probe after doing: dev_pm_opp_init_cpufreq_table
for(i = 0; all-available-freqs; i++)
dvfs_info->freq_table[i].driver_data = dvfs_info->freq_count - i;
And this will work with changes in dts files.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/