ipq806x: enable QCE hardware crypto inside the kernel
[oweals/openwrt.git] / target / linux / ipq806x / patches-4.9 / 0017-qcom-ipq4019-add-cpu-operating-points-for-cpufreq-su.patch
1 From 18c3b42575a154343831aec0637aab00e19440e1 Mon Sep 17 00:00:00 2001
2 From: Matthew McClintock <mmcclint@codeaurora.org>
3 Date: Thu, 17 Mar 2016 15:01:09 -0500
4 Subject: [PATCH 17/69] qcom: ipq4019: add cpu operating points for cpufreq
5  support
6
7 This adds some operating points for cpu frequeny scaling
8
9 Signed-off-by: Matthew McClintock <mmcclint@codeaurora.org>
10 ---
11  arch/arm/boot/dts/qcom-ipq4019.dtsi | 34 ++++++++++++++++++++++++++--------
12  1 file changed, 26 insertions(+), 8 deletions(-)
13
14 --- a/arch/arm/boot/dts/qcom-ipq4019.dtsi
15 +++ b/arch/arm/boot/dts/qcom-ipq4019.dtsi
16 @@ -40,14 +40,7 @@
17                         reg = <0x0>;
18                         clocks = <&gcc GCC_APPS_CLK_SRC>;
19                         clock-frequency = <0>;
20 -                       operating-points = <
21 -                               /* kHz  uV (fixed) */
22 -                               48000   1100000
23 -                               200000  1100000
24 -                               500000  1100000
25 -                               666000  1100000
26 -                       >;
27 -                       clock-latency = <256000>;
28 +                       operating-points-v2 = <&cpu0_opp_table>;
29                 };
30  
31                 cpu@1 {
32 @@ -59,6 +52,7 @@
33                         reg = <0x1>;
34                         clocks = <&gcc GCC_APPS_CLK_SRC>;
35                         clock-frequency = <0>;
36 +                       operating-points-v2 = <&cpu0_opp_table>;
37                 };
38  
39                 cpu@2 {
40 @@ -70,6 +64,7 @@
41                         reg = <0x2>;
42                         clocks = <&gcc GCC_APPS_CLK_SRC>;
43                         clock-frequency = <0>;
44 +                       operating-points-v2 = <&cpu0_opp_table>;
45                 };
46  
47                 cpu@3 {
48 @@ -81,6 +76,29 @@
49                         reg = <0x3>;
50                         clocks = <&gcc GCC_APPS_CLK_SRC>;
51                         clock-frequency = <0>;
52 +                       operating-points-v2 = <&cpu0_opp_table>;
53 +               };
54 +       };
55 +
56 +       cpu0_opp_table: opp_table0 {
57 +               compatible = "operating-points-v2";
58 +               opp-shared;
59 +
60 +               opp@48000000 {
61 +                       opp-hz = /bits/ 64 <48000000>;
62 +                       clock-latency-ns = <256000>;
63 +               };
64 +               opp@200000000 {
65 +                       opp-hz = /bits/ 64 <200000000>;
66 +                       clock-latency-ns = <256000>;
67 +               };
68 +               opp@500000000 {
69 +                       opp-hz = /bits/ 64 <500000000>;
70 +                       clock-latency-ns = <256000>;
71 +               };
72 +               opp@666000000 {
73 +                       opp-hz = /bits/ 64 <666000000>;
74 +                       clock-latency-ns = <256000>;
75                 };
76         };
77