projects
/
GitHub
/
LineageOS
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d0735db
)
[COMMON] thermal: of-thermal: parse power allocator param from dt
author
Hyeonseong Gil
<hs.gil@samsung.com>
Mon, 28 Mar 2016 07:04:09 +0000
(16:04 +0900)
committer
Chungwoo Park
<cww.park@samsung.com>
Mon, 21 May 2018 08:09:32 +0000
(17:09 +0900)
Change-Id: If2870d343f51db146fa5498c875e064510b5c8d6
Signed-off-by: Hyeonseong Gil <hs.gil@samsung.com>
drivers/thermal/of-thermal.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/thermal/of-thermal.c
b/drivers/thermal/of-thermal.c
index b5108cf614a99ce21d1774fd5497d6cd9f25ad1f..548b325e7c48e6052e6afb4fd699368f074583bd 100644
(file)
--- a/
drivers/thermal/of-thermal.c
+++ b/
drivers/thermal/of-thermal.c
@@
-1023,6
+1023,15
@@
int __init of_parse_thermal_zones(void)
if (!of_property_read_u32(child, "sustainable-power", &prop))
tzp->sustainable_power = prop;
+ if (!of_property_read_u32(child, "k_po", &prop))
+ tzp->k_po = prop;
+
+ if (!of_property_read_u32(child, "k_pu", &prop))
+ tzp->k_pu = prop;
+
+ if (!of_property_read_u32(child, "k_i", &prop))
+ tzp->k_i = prop;
+
for (i = 0; i < tz->ntrips; i++)
mask |= 1 << i;