drm/komeda: Add legacy FB support so VT's work as expected
authorCarsten Haitzler <carsten.haitzler@arm.com>
Mon, 18 Jul 2022 16:00:39 +0000 (17:00 +0100)
committerLiviu Dudau <liviu.dudau@arm.com>
Fri, 22 Jul 2022 12:11:06 +0000 (13:11 +0100)
The komeda driver doesn't come up with a visible text (FB) mode VT by
default as it was missing legacy FB support. It's useful to have a
working text VT on a system for debug and general usability, so enable
it. You can always toggle CONFIG_FRAMEBUFFER_CONSOLE.

Signed-off-by: Carsten Haitzler <carsten.haitzler@arm.com>
Reviewed-by: Liviu Dudau <liviu.dudau@arm.com>
Signed-off-by: Liviu Dudau <liviu.dudau@arm.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20220606114714.175499-1-carsten.haitzler@foss.arm.com
drivers/gpu/drm/arm/display/komeda/komeda_drv.c

index ba16895..9fce423 100644 (file)
@@ -9,6 +9,7 @@
 #include <linux/platform_device.h>
 #include <linux/component.h>
 #include <linux/pm_runtime.h>
+#include <drm/drm_fb_helper.h>
 #include <drm/drm_module.h>
 #include <drm/drm_of.h>
 #include "komeda_dev.h"
@@ -72,6 +73,7 @@ static int komeda_bind(struct device *dev)
        }
 
        dev_set_drvdata(dev, mdrv);
+       drm_fbdev_generic_setup(&mdrv->kms->base, 32);
 
        return 0;