RE: [PATCH 1/3] PM / OPP: Add support for descending order for cpufreq table

From: Jonghwan Choi
Date: Thu May 08 2014 - 21:09:49 EST


On 8 May 2014 2:56 PM, Viresh Kumar <viresh.kumar@xxxxxxxxxx> wrote:

>
> Not necessarily. People may need a multiplier as well or some other
> configuration and so this stuff was left for drivers to implement.

-> In exynos cpufreq driver, if we want to support more frequency, then
we have to describe frequency information in dts file and have to change exynos cpufreq
driver file also(For adding divider value).
But if dev_pm_opp has a divider value for DVFS,when we want to support more frequency
we have only to change the dts file.

I think that it is easy to maintain cpufreq driver and very convenient.
(Can be applied to devfreq)

This is a example (exynos4210 doesn't support DT.)

--- a/drivers/base/power/opp.c
+++ b/drivers/base/power/opp.c
@@ -64,6 +64,7 @@ struct dev_pm_opp {
bool available;
unsigned long rate;
unsigned long u_volt;
+ unsigned int ctl[2];

struct device_opp *dev_opp;
struct rcu_head head;
diff --git a/arch/arm/boot/dts/exynos4210.dtsi b/arch/arm/boot/dts/exynos4210.dtsi
index cacf614..007a411 100644
--- a/arch/arm/boot/dts/exynos4210.dtsi
+++ b/arch/arm/boot/dts/exynos4210.dtsi
@@ -81,6 +81,24 @@
interrupts = <2 2>, <3 2>;
};

+ cpufreq@160000 {
+ compatible = "samsung,exynos7842-cpufreq";
+ reg = <0x160000 0x1000>;
+ interrupts = <0 57 0>;
+ operating-points = <
+ /* KHz uV clkdiv0 clkdiv1 */
+ 1500000 1100000 0x11111 0x11111
+ 1400000 1075000 0x22223 0x22222
+ 1300000 1050000 0x33333 0x33333
+ 1200000 1025000 0x44444 0x44444
+ 1100000 1000000 0x55555 0x55555
+ 1000000 975000 0x66666 0x66666
+ 900000 950000 0x77777 0x77777
+ 800000 925000 0x88888 0x88888
+ >;
+ };
+
+
pinctrl_0: pinctrl@11400000 {
compatible = "samsung,exynos4210-pinctrl";
reg = <0x11400000 0x1000>;


Thanks

Best Regards.

--
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/