mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-23 09:57:08 +03:00
VPR functionality is split up as static VPR and VPR resize. Static VPR
is supported on all kernels. VPR resize is enabled only on 4.9 kernel.
Enable CONFIG_NVGPU_VPR unconditionally in Linux Makefile. Compile
VPR resize related functionality in nvgpu under the check for
Linux kernel version using new define NVGPU_VPR_RESIZE_SUPPORTED.
JIRA LS-458
Bug 200754700
Change-Id: Ib92f7f1b95afc6c69fbdf33354459c147337350c
Signed-off-by: Sagar Kamble <skamble@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvgpu/+/2647619
(cherry picked from commit a2f4fdf190)
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvgpu/+/2650377
Reviewed-by: Vijayakumar Subbu <vsubbu@nvidia.com>
GVS: Gerrit_Virtual_Submit
30 lines
799 B
C
30 lines
799 B
C
/*
|
|
* Copyright (c) 2019-2022, NVIDIA CORPORATION. All rights reserved.
|
|
*
|
|
* This program is free software; you can redistribute it and/or modify it
|
|
* under the terms and conditions of the GNU General Public License,
|
|
* version 2, as published by the Free Software Foundation.
|
|
*
|
|
* This program is distributed in the hope it will be useful, but WITHOUT
|
|
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
|
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
|
|
* more details.
|
|
*/
|
|
|
|
#include <nvgpu/vpr.h>
|
|
|
|
#include <linux/init.h>
|
|
|
|
#if NVGPU_VPR_RESIZE_SUPPORTED
|
|
#include <linux/platform/tegra/common.h>
|
|
#endif
|
|
|
|
bool nvgpu_is_vpr_resize_enabled(void)
|
|
{
|
|
#if NVGPU_VPR_RESIZE_SUPPORTED
|
|
return tegra_is_vpr_resize_enabled();
|
|
#else
|
|
return false;
|
|
#endif
|
|
}
|