PM / Domain: Add support to parse domain's OPP table
authorViresh Kumar <viresh.kumar@linaro.org>
Thu, 5 Apr 2018 10:23:34 +0000 (15:53 +0530)
committerViresh Kumar <viresh.kumar@linaro.org>
Wed, 9 May 2018 04:45:20 +0000 (10:15 +0530)
commit6a0ae73d95956f7e900eb77808a7e8bad67a684d
tree7af59b89b3014ccf047bfcae7ea9a5e5ea6d5020
parent401ea1572de944df548a13eded82339491a739ff
PM / Domain: Add support to parse domain's OPP table

The generic power domains can have an OPP table for themselves now, and
phandle of their OPP nodes can be used by the devices powered by the
domain. In order for the OPP core to translate requirements between the
devices and their power domains, both need to have an OPP table in
kernel.

Parse the OPP table for power domains
if they have their
set_performance_state() callback set.

With this patch, an OPP table would be created for the genpd in kernel
based on the OPP table present in DT, if the genpd have its
set_performance_state() callback set.

Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
Acked-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/base/power/domain.c