summaryrefslogtreecommitdiffstats
path: root/drivers/opp/debugfs.c
diff options
context:
space:
mode:
authorLukasz Luba <lukasz.luba@arm.com>2022-03-02 12:29:14 +0100
committerViresh Kumar <viresh.kumar@linaro.org>2022-03-03 05:05:04 +0100
commit4f9a7a1dc2a294c5c5c4b0246e2281e6ec88fb91 (patch)
tree3c2fe970b6d4b7e212283fea49857eeae816561c /drivers/opp/debugfs.c
parentdt-bindings: opp: Add "opp-microwatt" entry in the OPP (diff)
downloadlinux-4f9a7a1dc2a294c5c5c4b0246e2281e6ec88fb91.tar.xz
linux-4f9a7a1dc2a294c5c5c4b0246e2281e6ec88fb91.zip
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);
}
}