mirror of https://gitee.com/openkylin/linux.git
drm/nouveau/tegra: fetch gpu_speedo_id
The GPU speedo ID is required to select the right clk/volt parameters on GM20B. Signed-off-by: Alexandre Courbot <acourbot@nvidia.com> Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
This commit is contained in:
parent
5dfc5dbf65
commit
d2680907c2
|
@ -28,6 +28,7 @@ struct nvkm_device_tegra {
|
|||
} iommu;
|
||||
|
||||
int gpu_speedo;
|
||||
int gpu_speedo_id;
|
||||
};
|
||||
|
||||
struct nvkm_device_tegra_func {
|
||||
|
|
|
@ -311,6 +311,7 @@ nvkm_device_tegra_new(const struct nvkm_device_tegra_func *func,
|
|||
goto remove;
|
||||
|
||||
tdev->gpu_speedo = tegra_sku_info.gpu_speedo_value;
|
||||
tdev->gpu_speedo_id = tegra_sku_info.gpu_speedo_id;
|
||||
ret = nvkm_device_ctor(&nvkm_device_tegra_func, NULL, &pdev->dev,
|
||||
NVKM_DEVICE_TEGRA, pdev->id, NULL,
|
||||
cfg, dbg, detect, mmio, subdev_mask,
|
||||
|
|
Loading…
Reference in New Issue