Skip to content
Permalink
Browse files
drm/kmb: Enable support for fbcon (framebuffer console)
Enable support for fbcon (framebuffer console).
The user can initialize fbcon by loading kmb-drm with the parameter
console=1.

Signed-off-by: Edmund Dea <edmund.j.dea@intel.com>
Signed-off-by: Anitha Chrisanthus <anitha.chrisanthus@intel.com>
  • Loading branch information
ejdea-intel authored and zhoufuro committed Jun 3, 2021
1 parent f1e37b7 commit 01c1338e9611c7c8a65c84e0102298bd9f0732d0
Showing 1 changed file with 12 additions and 1 deletion.
@@ -5,6 +5,7 @@

#include <linux/clk.h>
#include <linux/module.h>
#include <linux/moduleparam.h>
#include <linux/spinlock.h>
#include <linux/console.h>
#include <linux/list.h>
@@ -18,6 +19,7 @@

#include <drm/drm_atomic_helper.h>
#include <drm/drm_drv.h>
#include <drm/drm_fb_helper.h>
#include <drm/drm_gem_cma_helper.h>
#include <drm/drm_gem_framebuffer_helper.h>
#include <drm/drm_irq.h>
@@ -28,7 +30,13 @@
#include "kmb_dsi.h"
#include "kmb_regs.h"

static int kmb_display_clk_enable(struct kmb_drm_private *kmb)
/* Module Parameters */
static bool console;
module_param(console, bool, 0400);
MODULE_PARM_DESC(console,
"Enable framebuffer console support (0=disable [default], 1=on)");

int kmb_display_clk_enable(struct kmb_drm_private *kmb)
{
int ret = 0;

@@ -547,6 +555,9 @@ static int kmb_probe(struct platform_device *pdev)
if (ret)
goto err_register;

if (console)
drm_fbdev_generic_setup(&kmb->drm, 32);

return 0;

err_register:

0 comments on commit 01c1338

Please sign in to comment.