mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-24 02:22:34 +03:00
gpu: nvgpu: add CONFIG_NVGPU_TEGRA_FUSE
Encapsulate the tegra fuse functionality under the config flag CONFIG_NVGPU_TEGRA_FUSE. Bug 2834141 Change-Id: I54c9e82360e8a24008ea14eb55af80f81d325cdc Signed-off-by: Sagar Kamble <skamble@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvgpu/+/2306432 Tested-by: mobile promotions <svcmobile_promotions@nvidia.com> Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
This commit is contained in:
committed by
Alex Waterman
parent
3748be5792
commit
59c6947fc6
@@ -22,7 +22,9 @@
|
||||
#include <linux/pm_runtime.h>
|
||||
#include <linux/pm_qos.h>
|
||||
#include <linux/platform_device.h>
|
||||
#ifdef CONFIG_NVGPU_TEGRA_FUSE
|
||||
#include <soc/tegra/chip-id.h>
|
||||
#endif
|
||||
|
||||
#include <nvgpu/kmem.h>
|
||||
#include <nvgpu/bug.h>
|
||||
@@ -357,8 +359,10 @@ int vgpu_probe(struct platform_device *pdev)
|
||||
}
|
||||
|
||||
l->dev = dev;
|
||||
#ifdef CONFIG_NVGPU_TEGRA_FUSE
|
||||
if (tegra_platform_is_vdk())
|
||||
nvgpu_set_enabled(gk20a, NVGPU_IS_FMODEL, true);
|
||||
#endif
|
||||
|
||||
gk20a->is_virtual = true;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user