diff options
author | Burt P <pburt0@gmail.com> | 2018-09-28 20:43:41 -0500 |
---|---|---|
committer | Leandro A. F. Pereira <leandro@hardinfo.org> | 2018-10-22 19:45:03 -0700 |
commit | 61ffa17d01ef8668def03e15c33d1bd0dc9be93e (patch) | |
tree | e0f92bde2f13d5ae246f41d54678ed13ac1198cd /includes/gpu_util.h | |
parent | 7c3ba61e9e433bbad816833320c39cf5bb8afcd8 (diff) |
devicetree: get opp-v2 freq range for gpu, if available
* opp-v2 = operating-points-v2, frequency scaling information
from device tree that can be used for cpu, gpu, etc.
* adds helper function to get the opp-v2 range of frequencies
for a node, dtr_get_opp_range() in dt_util.c
* adds a freq range in opp-v2 property for a node in dt
* reports a gpu's max clock frequency if avaiable via opp-v2
Signed-off-by: Burt P <pburt0@gmail.com>
Diffstat (limited to 'includes/gpu_util.h')
-rw-r--r-- | includes/gpu_util.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/includes/gpu_util.h b/includes/gpu_util.h index 0523cc81..1eb3c6c4 100644 --- a/includes/gpu_util.h +++ b/includes/gpu_util.h @@ -35,6 +35,7 @@ typedef struct gpud { char *vendor_str; char *device_str; char *location; + uint32_t khz_max; char *drm_dev; char *sysfs_drm_path; @@ -42,6 +43,7 @@ typedef struct gpud { char *dt_compat, *dt_status, *dt_name, *dt_path; const char *dt_vendor, *dt_device; + dt_opp_range *dt_opp; nvgpu *nv_info; /* ... */ |