From f281f89033b95cce1ac833c30a37d2d5ff396583 Mon Sep 17 00:00:00 2001 From: Burt P Date: Sat, 20 Oct 2018 16:39:13 -0500 Subject: devicetree: add oppv1 and clock-frequency to opp support I don't have any hardware to test, this is based only on the OPP kernel docs. https://www.kernel.org/doc/Documentation/devicetree/bindings/opp/opp.txt Signed-off-by: Burt P --- modules/devices/gpu.c | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) (limited to 'modules/devices/gpu.c') diff --git a/modules/devices/gpu.c b/modules/devices/gpu.c index 19aadef9..eb921bb3 100644 --- a/modules/devices/gpu.c +++ b/modules/devices/gpu.c @@ -195,14 +195,21 @@ int _dt_soc_gpu(gpud *gpu) { gchar *opp_str; if (gpu->dt_opp) { - opp_str = g_strdup_printf("[%s %s]\n" + static const char *freq_src[] = { + N_("clock-frequency property"), + N_("Operating Points (OPPv1)"), + N_("Operating Points (OPPv2)"), + }; + opp_str = g_strdup_printf("[%s]\n" /* MinFreq */ "%s=%d %s\n" /* MaxFreq */ "%s=%d %s\n" - /* Latency */ "%s=%d %s\n", - _("Frequency Scaling"), _("(OPPv2)"), + /* Latency */ "%s=%d %s\n" + /* Source */ "%s=%s\n", + _("Frequency Scaling"), _("Minimum"), gpu->dt_opp->khz_min, _("kHz"), _("Maximum"), gpu->dt_opp->khz_max, _("kHz"), - _("Transition Latency"), gpu->dt_opp->clock_latency_ns, _("ns") ); + _("Transition Latency"), gpu->dt_opp->clock_latency_ns, _("ns"), + _("Source"), _(freq_src[gpu->dt_opp->version]) ); } else opp_str = strdup(""); -- cgit v1.2.3