Commit 37025602 authored by Vince Hsu's avatar Vince Hsu Committed by Ben Skeggs

drm/nouveau/platform: add GPU speedo information to nouveau platform

For GK20A we need the GPU speedo value to calculate voltage levels.
Signed-off-by: default avatarVince Hsu <vinceh@nvidia.com>
Signed-off-by: default avatarBen Skeggs <bskeggs@redhat.com>
parent 08c7f248
...@@ -27,6 +27,7 @@ ...@@ -27,6 +27,7 @@
#include <linux/of.h> #include <linux/of.h>
#include <linux/reset.h> #include <linux/reset.h>
#include <linux/regulator/consumer.h> #include <linux/regulator/consumer.h>
#include <soc/tegra/fuse.h>
#include <soc/tegra/pmc.h> #include <soc/tegra/pmc.h>
#include "nouveau_drm.h" #include "nouveau_drm.h"
...@@ -128,6 +129,7 @@ static int nouveau_platform_probe(struct platform_device *pdev) ...@@ -128,6 +129,7 @@ static int nouveau_platform_probe(struct platform_device *pdev)
} }
device->gpu = gpu; device->gpu = gpu;
device->gpu_speedo = tegra_sku_info.gpu_speedo_value;
err = drm_dev_register(drm, 0); err = drm_dev_register(drm, 0);
if (err < 0) if (err < 0)
......
...@@ -41,6 +41,8 @@ struct nouveau_platform_device { ...@@ -41,6 +41,8 @@ struct nouveau_platform_device {
struct nouveau_device device; struct nouveau_device device;
struct nouveau_platform_gpu *gpu; struct nouveau_platform_gpu *gpu;
int gpu_speedo;
}; };
#define nv_device_to_platform(d) \ #define nv_device_to_platform(d) \
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment