Skip to content

Commit e25240b

Browse files
committed
fixed that the cpu freq can't reach to 1.8GHz
Change-Id: Iba5cd1aeb842c6ef0ed53c6328ecd53b4078d084 Reviewed-on: https://tp-biosrd-v02/gerrit/84839 Reviewed-by: Jamess Huang(黃以民) <Jamess_Huang@asus.com> Tested-by: Jamess Huang(黃以民) <Jamess_Huang@asus.com>
1 parent f88e9f6 commit e25240b

File tree

3 files changed

+46
-1
lines changed

3 files changed

+46
-1
lines changed

arch/arm/boot/dts/rk3288.dtsi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@
135135

136136
clocks = <&cru PLL_APLL>;
137137
rockchip,avs-scale = <17>;
138-
rockchip,max-volt = <1350000>;
138+
rockchip,max-volt = <1400000>;
139139
nvmem-cells = <&cpu_leakage>, <&special_function>,
140140
<&performance>, <&process_version>;
141141
nvmem-cell-names = "leakage", "special",

drivers/clk/rockchip/clk-pll.c

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,21 @@ int rockchip_pll_clk_adaptive_scaling(struct clk *clk, int sel)
118118
return 0;
119119
}
120120

121+
/**
122+
* The scale and rate is something like this
123+
* i rate_table[i].rate
124+
* -----------------------
125+
* 0 2208000000
126+
* 1 2184000000
127+
* 2 2160000000
128+
* 3 2136000000
129+
* 4 2112000000
130+
* ...
131+
* 25 1608000000
132+
* 26 1560000000
133+
* 27 1512000000
134+
* ...
135+
*/
121136
int rockchip_pll_clk_rate_to_scale(struct clk *clk, unsigned long rate)
122137
{
123138
const struct rockchip_pll_rate_table *rate_table;
@@ -141,6 +156,21 @@ int rockchip_pll_clk_rate_to_scale(struct clk *clk, unsigned long rate)
141156
return -EINVAL;
142157
}
143158

159+
/**
160+
* The scale and rate is something like this
161+
* i rate_table[i].rate
162+
* -----------------------
163+
* 0 2208000000
164+
* 1 2184000000
165+
* 2 2160000000
166+
* 3 2136000000
167+
* 4 2112000000
168+
* ...
169+
* 25 1608000000
170+
* 26 1560000000
171+
* 27 1512000000
172+
* ...
173+
*/
144174
int rockchip_pll_clk_scale_to_rate(struct clk *clk, unsigned int scale)
145175
{
146176
const struct rockchip_pll_rate_table *rate_table;

drivers/soc/rockchip/rockchip_opp_select.c

100644100755
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -672,6 +672,21 @@ static int rockchip_adjust_opp_table(struct device *dev,
672672
return ret;
673673
}
674674

675+
/**
676+
* The scale and rate is something like this
677+
* scale rate
678+
* -----------------------
679+
* 0 2208000000
680+
* 1 2184000000
681+
* 2 2160000000
682+
* 3 2136000000
683+
* 4 2112000000
684+
* ...
685+
* 25 1608000000
686+
* 26 1560000000
687+
* 27 1512000000
688+
* ...
689+
*/
675690
int rockchip_adjust_power_scale(struct device *dev, int scale)
676691
{
677692
struct device_node *np;

0 commit comments

Comments
 (0)