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

Commit 1973fddf authored by Chris Redpath's avatar Chris Redpath
Browse files

ANDROID: arm: Add Energy Model to dtb for TC2



Change-Id: I8e64f074185a91ec47dfed52404280f32c694786
Signed-off-by: default avatarChris Redpath <chris.redpath@arm.com>
parent 0582a4c3
Loading
Loading
Loading
Loading
+76 −0
Original line number Diff line number Diff line
@@ -41,6 +41,7 @@
			cci-control-port = <&cci_control1>;
			cpu-idle-states = <&CLUSTER_SLEEP_BIG>;
			capacity-dmips-mhz = <1024>;
			sched-energy-costs = <&CPU_COST_A15 &CLUSTER_COST_A15>;
		};

		cpu1: cpu@1 {
@@ -50,6 +51,7 @@
			cci-control-port = <&cci_control1>;
			cpu-idle-states = <&CLUSTER_SLEEP_BIG>;
			capacity-dmips-mhz = <1024>;
			sched-energy-costs = <&CPU_COST_A15 &CLUSTER_COST_A15>;
		};

		cpu2: cpu@2 {
@@ -59,6 +61,7 @@
			cci-control-port = <&cci_control2>;
			cpu-idle-states = <&CLUSTER_SLEEP_LITTLE>;
			capacity-dmips-mhz = <516>;
			sched-energy-costs = <&CPU_COST_A7 &CLUSTER_COST_A7>;
		};

		cpu3: cpu@3 {
@@ -68,6 +71,7 @@
			cci-control-port = <&cci_control2>;
			cpu-idle-states = <&CLUSTER_SLEEP_LITTLE>;
			capacity-dmips-mhz = <516>;
			sched-energy-costs = <&CPU_COST_A7 &CLUSTER_COST_A7>;
		};

		cpu4: cpu@4 {
@@ -77,6 +81,7 @@
			cci-control-port = <&cci_control2>;
			cpu-idle-states = <&CLUSTER_SLEEP_LITTLE>;
			capacity-dmips-mhz = <516>;
			sched-energy-costs = <&CPU_COST_A7 &CLUSTER_COST_A7>;
		};

		idle-states {
@@ -96,6 +101,77 @@
				min-residency-us = <2500>;
			};
		};

		energy-costs {
			CPU_COST_A15: core-cost0 {
				busy-cost-data = <
					426    2021
					512    2312
					597    2756
					682    3125
					768    3524
					853    3846
					938    5177
					1024   6997
				>;
				idle-cost-data = <
					0
					0
					0
				>;
			};
			CPU_COST_A7: core-cost1 {
				busy-cost-data = <
					150    187
					172    275
					215    334
					258    407
					301    447
					344    549
					387    761
					430    1024
				>;
				idle-cost-data = <
					0
					0
					0
				>;
			};
			CLUSTER_COST_A15: cluster-cost0 {
				busy-cost-data = <
					426    7920
					512    8165
					597    8172
					682    8195
					768    8265
					853    8446
					938    11426
					1024   15200
				>;
				idle-cost-data = <
					 70
					 70
					 25
				>;
			};
			CLUSTER_COST_A7: cluster-cost1 {
				busy-cost-data = <
					150    2967
					172    2792
					215    2810
					258    2815
					301    2919
					344    2847
					387    3917
					430    4905
				>;
				idle-cost-data = <
					25
					25
					10
				>;
			};
		};
	};

	memory@80000000 {