summaryrefslogtreecommitdiff
path: root/drivers/opp/debugfs.c
diff options
context:
space:
mode:
authorLukasz Luba <lukasz.luba@arm.com>2022-03-02 11:29:14 +0000
committerViresh Kumar <viresh.kumar@linaro.org>2022-03-03 09:35:04 +0530
commit4f9a7a1dc2a294c5c5c4b0246e2281e6ec88fb91 (patch)
tree3c2fe970b6d4b7e212283fea49857eeae816561c /drivers/opp/debugfs.c
parent0409ab77728d705f376ae28fd7114161295e7ed2 (diff)
OPP: Add "opp-microwatt" supporting code
Add new property to the OPP: power value. The OPP entry in the DT can have "opp-microwatt". Add the needed code to handle this new property in the existing infrastructure. Signed-off-by: Lukasz Luba <lukasz.luba@arm.com> Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
Diffstat (limited to 'drivers/opp/debugfs.c')
-rw-r--r--drivers/opp/debugfs.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/opp/debugfs.c b/drivers/opp/debugfs.c
index b5f2f9f39392..3fcc1f97f2d1 100644
--- a/drivers/opp/debugfs.c
+++ b/drivers/opp/debugfs.c
@@ -100,6 +100,9 @@ static void opp_debug_create_supplies(struct dev_pm_opp *opp,
debugfs_create_ulong("u_amp", S_IRUGO, d,
&opp->supplies[i].u_amp);
+
+ debugfs_create_ulong("u_watt", S_IRUGO, d,
+ &opp->supplies[i].u_watt);
}
}