[COMMON] thermal: of-thermal: parse power allocator param from dt
authorHyeonseong Gil <hs.gil@samsung.com>
Mon, 28 Mar 2016 07:04:09 +0000 (16:04 +0900)
committerChungwoo 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

index b5108cf614a99ce21d1774fd5497d6cd9f25ad1f..548b325e7c48e6052e6afb4fd699368f074583bd 100644 (file)
@@ -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;