Skip to content

Commit

Permalink
drm: support fbcon
Browse files Browse the repository at this point in the history
Signed-off-by: Yusuf Khan <[email protected]>
  • Loading branch information
YusufKhan-gamedev committed Aug 2, 2022
1 parent 88636e7 commit cb3daaf
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
1 change: 1 addition & 0 deletions kernel-open/conftest.sh
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,7 @@ test_headers() {
FILES="$FILES drm/drm_ioctl.h"
FILES="$FILES drm/drm_device.h"
FILES="$FILES drm/drm_mode_config.h"
FILES="$FILES drm/drm_fb_helper.h"
FILES="$FILES dt-bindings/interconnect/tegra_icc_id.h"
FILES="$FILES generated/autoconf.h"
FILES="$FILES generated/compile.h"
Expand Down
8 changes: 8 additions & 0 deletions kernel-open/nvidia-drm/nvidia-drm-drv.c
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,10 @@
#include <drm/drm_ioctl.h>
#endif

#if defined(NV_DRM_DRM_FB_HELPER_H_PRESENT)
#include <drm/drm_fb_helper.h>
#endif

#include <linux/pci.h>

/*
Expand Down Expand Up @@ -947,6 +951,10 @@ static void nv_drm_register_drm_device(const nv_gpu_info_t *gpu_info)
nv_dev->next = dev_list;
dev_list = nv_dev;

#if defined(NV_DRM_DRM_FB_HELPER_H_PRESENT)
drm_fbdev_generic_setup(dev, 0);
#endif

return; /* Success */

failed_drm_register:
Expand Down

0 comments on commit cb3daaf

Please sign in to comment.