clock : Pick up CPU-EMC frequency relation from device tree
Suril [Thu, 20 Oct 2016 19:14:31 +0000 (12:14 -0700)]
Provision darcy/foster to pick up the CPU-EMC frequency co relation
from it's individual device tree entry for display on cases and
from the default table in display off cases. The dtb has slightly
more aggressive values as compared to the default table optimized
for higher perf.

Bug 1825329
Signed-off-by: Suril Dhruv <sdhruv@nvidia.com>
Change-Id: Ib989389a6ee110868070fc89725386239a5a1674
Reviewed-on: http://git-master/r/1240072
Reviewed-by: Somdutta Roy <somduttar@nvidia.com>
Reviewed-by: David Dastous St Hilaire <ddastoussthi@nvidia.com>
Reviewed-by: Aleksandr Frid <afrid@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Jonathan Mccaffrey <jmccaffrey@nvidia.com>
Reviewed-by: Vinayak Pane <vpane@nvidia.com>

arch/arm64/boot/dts/tegra210-darcy-p2894-common.dtsi
arch/arm64/boot/dts/tegra210-foster-e-p2530-common.dtsi
arch/arm64/boot/dts/tegra210-platforms/tegra210-foster-cpufreq.dtsi [new file with mode: 0644]

index 5940f50..3399648 100644 (file)
@@ -38,7 +38,7 @@
 #include <dt-bindings/iio/meter/ina3221x.h>
 #include "tegra210-platforms/tegra210-sysedp.dtsi"
 #include "tegra210-platforms/tegra210-audio.dtsi"
-#include "tegra210-platforms/tegra210-loki-e-cpufreq.dtsi"
+#include "tegra210-platforms/tegra210-foster-cpufreq.dtsi"
 #include "tegra210-platforms/tegra210-foster-powermon-p2530-0930-e01.dtsi"
 
 / {
index 63d518b..30738ad 100644 (file)
@@ -39,7 +39,7 @@
 #include <dt-bindings/iio/meter/ina3221x.h>
 #include "tegra210-platforms/tegra210-sysedp.dtsi"
 #include "tegra210-platforms/tegra210-audio.dtsi"
-#include "tegra210-platforms/tegra210-loki-e-cpufreq.dtsi"
+#include "tegra210-platforms/tegra210-foster-cpufreq.dtsi"
 
 / {
        host1x {
diff --git a/arch/arm64/boot/dts/tegra210-platforms/tegra210-foster-cpufreq.dtsi b/arch/arm64/boot/dts/tegra210-platforms/tegra210-foster-cpufreq.dtsi
new file mode 100644 (file)
index 0000000..629e6c6
--- /dev/null
@@ -0,0 +1,30 @@
+/*
+ * Copyright (c) 2015 NVIDIA CORPORATION. All rights reserved.
+ *
+ * This software is licensed under the terms of the GNU General Public
+ * License version 2, as published by the Free Software Foundation, and
+ * may be copied, distributed, and modified under those terms.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ */
+
+/ {
+        cpufreq {
+               compatible = "nvidia,tegra210-cpufreq";
+               emc-scaling-data {
+                       emc-cpu-limit-table = <
+                               /* CPU    EMC */
+                               102000  68000
+                               204800  102000
+                               307200  204000
+                               403000  408000
+                               714000  665600
+                               1100000 1600000
+                       >;
+               };
+       };
+};
\ No newline at end of file