mirror of
git://nv-tegra.nvidia.com/linux-nv-oot.git
synced 2025-12-24 10:11:26 +03:00
drm/tegra: Update Tegra DRM to add support for v5.13
There are several updates in the Linux DRM framework for Linux v5.13 and so make the necessary changes to the out-of-tree Tegra DRM driver so we can compile it with Linux v5.13 and earlier. Bug 3308967 Change-Id: Ie7a5e0a3978b2d6d16f769c2efda8b1685e28709 Signed-off-by: Jon Hunter <jonathanh@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvidia/+/2534002 Reviewed-by: Mikko Perttunen <mperttunen@nvidia.com> Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> GVS: Gerrit_Virtual_Submit Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
This commit is contained in:
committed by
Laxman Dewangan
parent
9d055ca53b
commit
836aadff09
@@ -4,11 +4,16 @@
|
||||
*/
|
||||
|
||||
#include <linux/iommu.h>
|
||||
#include <linux/version.h>
|
||||
|
||||
#include <drm/drm_atomic.h>
|
||||
#include <drm/drm_atomic_helper.h>
|
||||
#include <drm/drm_fourcc.h>
|
||||
#if LINUX_VERSION_CODE >= KERNEL_VERSION(5, 13, 0)
|
||||
#include <drm/drm_gem_atomic_helper.h>
|
||||
#else
|
||||
#include <drm/drm_gem_framebuffer_helper.h>
|
||||
#endif
|
||||
#include <drm/drm_plane_helper.h>
|
||||
|
||||
#include "dc.h"
|
||||
@@ -198,7 +203,11 @@ int tegra_plane_prepare_fb(struct drm_plane *plane,
|
||||
if (!state->fb)
|
||||
return 0;
|
||||
|
||||
#if LINUX_VERSION_CODE >= KERNEL_VERSION(5, 13, 0)
|
||||
drm_gem_plane_helper_prepare_fb(plane, state);
|
||||
#else
|
||||
drm_gem_fb_prepare_fb(plane, state);
|
||||
#endif
|
||||
|
||||
return tegra_dc_pin(dc, to_tegra_plane_state(state));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user