Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

fbdev: mxsfb: implement FB_PRE_INIT_FB option

The FB_PRE_INIT_FB option keeps the kernel from reinitializing the display
and prevents flickering during the transition from a bootloader splash
screen to the kernel logo screen.

Make this option available for the mxsfb driver.

Signed-off-by: Melchior Franz <melchior.franz@ginzinger.com>
Signed-off-by: Martin Kepplinger <martin.kepplinger@ginzinger.com>
Signed-off-by: Manfred Schlaegl <manfred.schlaegl@ginzinger.com>
Cc: Shawn Guo <shawnguo@kernel.org>
Cc: Sascha Hauer <s.hauer@pengutronix.de>
Cc: Pengutronix Kernel Team <kernel@pengutronix.de>
Cc: Fabio Estevam <festevam@gmail.com>
Signed-off-by: Bartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>

authored by

Melchior Franz and committed by
Bartlomiej Zolnierkiewicz
767f17a7 df768610

+13 -1
+1 -1
drivers/video/fbdev/Kconfig
··· 2183 2183 2184 2184 config FB_PRE_INIT_FB 2185 2185 bool "Don't reinitialize, use bootloader's GDC/Display configuration" 2186 - depends on FB && FB_MB862XX_LIME 2186 + depends on FB && (FB_MB862XX_LIME || FB_MXS) 2187 2187 ---help--- 2188 2188 Select this option if display contents should be inherited as set by 2189 2189 the bootloader.
+12
drivers/video/fbdev/mxsfb.c
··· 181 181 const struct mxsfb_devdata *devdata; 182 182 u32 sync; 183 183 struct regulator *reg_lcd; 184 + int pre_init; 184 185 }; 185 186 186 187 #define mxsfb_is_v3(host) (host->devdata->ipversion == 3) ··· 419 418 return -ENOMEM; 420 419 421 420 fb_info->fix.line_length = line_size; 421 + 422 + if (host->pre_init) { 423 + mxsfb_enable_controller(fb_info); 424 + host->pre_init = 0; 425 + return 0; 426 + } 422 427 423 428 /* 424 429 * It seems, you can't re-program the controller if it is still running. ··· 938 931 if (IS_ERR(host->reg_lcd)) 939 932 host->reg_lcd = NULL; 940 933 934 + #if defined(CONFIG_FB_PRE_INIT_FB) 935 + host->pre_init = 1; 936 + #endif 937 + 941 938 fb_info->pseudo_palette = devm_kcalloc(&pdev->dev, 16, sizeof(u32), 942 939 GFP_KERNEL); 943 940 if (!fb_info->pseudo_palette) { ··· 974 963 mxsfb_enable_controller(fb_info); 975 964 } 976 965 966 + host->pre_init = 0; 977 967 dev_info(&pdev->dev, "initialized\n"); 978 968 979 969 return 0;