Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 0582a4c3 authored by Chris Redpath's avatar Chris Redpath
Browse files

ANDROID: hisilicon: Add energy model data to hisilicon 6220 dtb



Change-Id: I5890924224d5ae26144d60fb2d582de445dda2e6
Signed-off-by: default avatarChris Redpath <chris.redpath@arm.com>
parent 4b3cf70e
Loading
Loading
Loading
Loading
+50 −0
Original line number Diff line number Diff line
@@ -92,6 +92,7 @@
			cooling-max-level = <0>;
			#cooling-cells = <2>; /* min followed by max */
			cpu-idle-states = <&CPU_SLEEP &CLUSTER_SLEEP>;
			sched-energy-costs = <&CPU_COST &CLUSTER_COST &SYSTEM_COST>;
			dynamic-power-coefficient = <311>;
			capacity-dmips-mhz = <1024>;
		};
@@ -104,6 +105,7 @@
			next-level-cache = <&CLUSTER0_L2>;
			operating-points-v2 = <&cpu_opp_table>;
			cpu-idle-states = <&CPU_SLEEP &CLUSTER_SLEEP>;
			sched-energy-costs = <&CPU_COST &CLUSTER_COST &SYSTEM_COST>;
			capacity-dmips-mhz = <1024>;
		};

@@ -126,6 +128,7 @@
			next-level-cache = <&CLUSTER0_L2>;
			operating-points-v2 = <&cpu_opp_table>;
			cpu-idle-states = <&CPU_SLEEP &CLUSTER_SLEEP>;
			sched-energy-costs = <&CPU_COST &CLUSTER_COST &SYSTEM_COST>;
			capacity-dmips-mhz = <1024>;
		};

@@ -148,6 +151,7 @@
			next-level-cache = <&CLUSTER1_L2>;
			operating-points-v2 = <&cpu_opp_table>;
			cpu-idle-states = <&CPU_SLEEP &CLUSTER_SLEEP>;
			sched-energy-costs = <&CPU_COST &CLUSTER_COST &SYSTEM_COST>;
			capacity-dmips-mhz = <1024>;
		};

@@ -159,6 +163,7 @@
			next-level-cache = <&CLUSTER1_L2>;
			operating-points-v2 = <&cpu_opp_table>;
			cpu-idle-states = <&CPU_SLEEP &CLUSTER_SLEEP>;
			sched-energy-costs = <&CPU_COST &CLUSTER_COST &SYSTEM_COST>;
			capacity-dmips-mhz = <1024>;
		};

@@ -170,6 +175,7 @@
			next-level-cache = <&CLUSTER1_L2>;
			operating-points-v2 = <&cpu_opp_table>;
			cpu-idle-states = <&CPU_SLEEP &CLUSTER_SLEEP>;
			sched-energy-costs = <&CPU_COST &CLUSTER_COST &SYSTEM_COST>;
			capacity-dmips-mhz = <1024>;
		};

@@ -180,6 +186,50 @@
		CLUSTER1_L2: l2-cache1 {
			compatible = "cache";
		};

		energy-costs {
			SYSTEM_COST: system-cost0 {
				busy-cost-data = <
					1024   0
				>;
				idle-cost-data = <
					0
					0
					0
					0
				>;
			};
			CLUSTER_COST: cluster-cost0 {
				busy-cost-data = <
					178   16
					369   29
					622   47
					819   75
					1024  112
				>;
				idle-cost-data = <
					107
					107
					 47
					 0
				>;
			};
			CPU_COST: core-cost0 {
				busy-cost-data = <
					178   69
					369   125
					622   224
					819   367
					1024  670
				>;
				idle-cost-data = <
					15
					15
					 0
					 0
				>;
			};
		};
	};

	cpu_opp_table: cpu_opp_table {