diff options
Diffstat (limited to 'configs/platform-chumby/patches/linux-2.6.28/force_video_mode_without_console.diff')
-rw-r--r-- | configs/platform-chumby/patches/linux-2.6.28/force_video_mode_without_console.diff | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/configs/platform-chumby/patches/linux-2.6.28/force_video_mode_without_console.diff b/configs/platform-chumby/patches/linux-2.6.28/force_video_mode_without_console.diff new file mode 100644 index 0000000..d8b73fe --- /dev/null +++ b/configs/platform-chumby/patches/linux-2.6.28/force_video_mode_without_console.diff @@ -0,0 +1,32 @@ +From: Juergen Beisert <jbe@pengutronix.de> +Subject: Force a videomode if there is noone who is requested one + +If the framebuffer console is disabled, there is noone who sets up a videomode. +This will keep the display dark. So, if there is no framebuffer console enabled +force the default videomode. + +Signed-off-by: Juergen Beisert <jbe@pengutronix.de> + +--- + drivers/video/stmfb.c | 8 ++++++++ + 1 file changed, 8 insertions(+) + +Index: linux-2.6.31/drivers/video/stmfb.c +=================================================================== +--- linux-2.6.31.orig/drivers/video/stmfb.c ++++ linux-2.6.31/drivers/video/stmfb.c +@@ -908,6 +908,14 @@ static int __devinit stmfb_probe(struct + goto failed_register; + } + ++#ifndef CONFIG_FRAMEBUFFER_CONSOLE ++ /* ++ * If there is no user than a userland application, force to setup a ++ * videomode, for the case the application forgets to do so ++ */ ++ stmfb_set_par(fb_info); ++#endif ++ + return 0; + + failed_register: |