diff options
| author | Burt P <pburt0@gmail.com> | 2018-10-20 16:39:13 -0500 | 
|---|---|---|
| committer | Leandro A. F. Pereira <leandro@hardinfo.org> | 2018-10-22 19:45:03 -0700 | 
| commit | f281f89033b95cce1ac833c30a37d2d5ff396583 (patch) | |
| tree | 6a035aca4b8183b95bca4d52f8bb742a1413c706 /modules | |
| parent | 2e8261216b99ef335dc9d1e04cdcc8ac8fe5f302 (diff) | |
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 <pburt0@gmail.com>
Diffstat (limited to 'modules')
| -rw-r--r-- | modules/devices/gpu.c | 15 | 
1 files changed, 11 insertions, 4 deletions
| 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(""); | 
