forked from hardkernel/linux
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'odroidxu4-4.9.y' of github.com:hardkernel/linux into od…
…roidxu4-4.9.y
- Loading branch information
Showing
8 changed files
with
297 additions
and
257 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
100 changes: 100 additions & 0 deletions
100
arch/arm/boot/dts/exynos5422-odroidxu3-trip-points.dtsi
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,100 @@ | ||
/* | ||
* Device tree sources for default OdroidXU3/Exynos5422 thermal zone definition | ||
* | ||
* Copyright (c) 2015 Lukasz Majewski <[email protected]> | ||
* Anand Moon <[email protected]> | ||
* | ||
* This program is free software; you can redistribute it and/or modify | ||
* it under the terms of the GNU General Public License version 2 as | ||
* published by the Free Software Foundation. | ||
* | ||
*/ | ||
|
||
#define _TOKENPASTE(x, y) x ## y | ||
#define TOKENPASTE(x, y) _TOKENPASTE(x, y) | ||
#define UNIQIFY(label) TOKENPASTE(label, CPU_THERMAL_ZONE_NUM) | ||
|
||
polling-delay-passive = <250>; | ||
polling-delay = <1000>; | ||
trips { | ||
UNIQIFY(cpu_alert0): cpu-alert-0 { | ||
temperature = <70000>; /* millicelsius */ | ||
hysteresis = <10000>; /* millicelsius */ | ||
type = "active"; | ||
}; | ||
UNIQIFY(cpu_alert1): cpu-alert-1 { | ||
temperature = <75000>; /* millicelsius */ | ||
hysteresis = <10000>; /* millicelsius */ | ||
type = "active"; | ||
}; | ||
UNIQIFY(cpu_alert2): cpu-alert-2 { | ||
temperature = <80000>; /* millicelsius */ | ||
hysteresis = <10000>; /* millicelsius */ | ||
type = "active"; | ||
}; | ||
UNIQIFY(cpu_alert3): cpu-alert-3 { | ||
temperature = <85000>; /* millicelsius */ | ||
hysteresis = <3000>; /* millicelsius */ | ||
type = "passive"; | ||
}; | ||
UNIQIFY(cpu_alert4): cpu-alert-4 { | ||
temperature = <90000>; /* millicelsius */ | ||
hysteresis = <3000>; /* millicelsius */ | ||
type = "passive"; | ||
}; | ||
UNIQIFY(cpu_alert5): cpu-alert-5 { | ||
temperature = <95000>; /* millicelsius */ | ||
hysteresis = <3000>; /* millicelsius */ | ||
type = "passive"; | ||
}; | ||
UNIQIFY(cpu_criti0): cpu-crit-0 { | ||
temperature = <115000>; /* millicelsius */ | ||
hysteresis = <3000>; /* millicelsius */ | ||
type = "critical"; | ||
}; | ||
}; | ||
cooling-maps { | ||
map0 { | ||
trip = <&UNIQIFY(cpu_alert0)>; | ||
cooling-device = <&fan0 0 1>; | ||
}; | ||
map1 { | ||
trip = <&UNIQIFY(cpu_alert1)>; | ||
cooling-device = <&fan0 1 2>; | ||
}; | ||
map2 { | ||
trip = <&UNIQIFY(cpu_alert2)>; | ||
cooling-device = <&fan0 2 3>; | ||
}; | ||
/* | ||
* When reaching cpu_alert3, reduce A15 cores by 1 step. | ||
* The 2GHz step causes high thermals on multithreaded workloads | ||
* so better performance is gained by managing it out early. | ||
*/ | ||
map3 { | ||
trip = <&UNIQIFY(cpu_alert3)>; | ||
cooling-device = <&cpu4 0 1>; | ||
}; | ||
/* | ||
* When reaching cpu_alert4, reduce A15 cores by 3 steps | ||
* to further manage the performance level while keeping | ||
* thermals under control. | ||
*/ | ||
map4 { | ||
trip = <&UNIQIFY(cpu_alert4)>; | ||
cooling-device = <&cpu4 2 4>; | ||
}; | ||
/* | ||
* When reaching cpu_alert5, reduce all CPUs to ensure thermal | ||
* safety. A7 cores don't produce much thermal load so they are | ||
* reduced less to optimise performance. | ||
*/ | ||
map5 { | ||
trip = <&UNIQIFY(cpu_alert5)>; | ||
cooling-device = <&cpu0 0 2>; | ||
}; | ||
map6 { | ||
trip = <&UNIQIFY(cpu_alert5)>; | ||
cooling-device = <&cpu4 5 14>; | ||
}; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.