File tree Expand file tree Collapse file tree 2 files changed +15
-0
lines changed Expand file tree Collapse file tree 2 files changed +15
-0
lines changed Original file line number Diff line number Diff line change @@ -122,6 +122,7 @@ test_headers() {
122
122
FILES=" $FILES drm/drm_ioctl.h"
123
123
FILES=" $FILES drm/drm_device.h"
124
124
FILES=" $FILES drm/drm_mode_config.h"
125
+ FILES=" $FILES drm/drm_fb_helper.h"
125
126
FILES=" $FILES dt-bindings/interconnect/tegra_icc_id.h"
126
127
FILES=" $FILES generated/autoconf.h"
127
128
FILES=" $FILES generated/compile.h"
Original file line number Diff line number Diff line change 60
60
#include <drm/drm_ioctl.h>
61
61
#endif
62
62
63
+ #if defined(NV_DRM_DRM_FB_HELPER_H_PRESENT )
64
+ #include <drm/drm_fb_helper.h>
65
+ #endif
66
+
63
67
#include <linux/pci.h>
64
68
65
69
/*
84
88
#include <drm/drm_atomic_helper.h>
85
89
#endif
86
90
91
+ static int NvDrmEnableFbcon = 0 ;
92
+ module_param (NvDrmEnableFbcon , int , S_IRUGO );
93
+
94
+
87
95
static struct nv_drm_device * dev_list = NULL ;
88
96
89
97
#if defined(NV_DRM_ATOMIC_MODESET_AVAILABLE )
@@ -947,6 +955,12 @@ static void nv_drm_register_drm_device(const nv_gpu_info_t *gpu_info)
947
955
nv_dev -> next = dev_list ;
948
956
dev_list = nv_dev ;
949
957
958
+ #if defined(NV_DRM_DRM_FB_HELPER_H_PRESENT )
959
+ if (NvDrmEnableFbcon )
960
+ drm_fbdev_generic_setup (dev , 0 );
961
+
962
+ #endif
963
+
950
964
return ; /* Success */
951
965
952
966
failed_drm_register :
You can’t perform that action at this time.
0 commit comments