From 826f35f9b57c4581ff69d55c3bade9c3814e29bb Mon Sep 17 00:00:00 2001 From: Simon Glass Date: Thu, 14 Jan 2016 18:10:48 -0700 Subject: video: Allow selection of the driver and font size Provide a way for the video console driver to be selected. This is controlled by the video driver's private data. This can be set up when the driver is probed so that it is ready for the video_post_probe() method. The font size is provided as well. The console driver may or may not support this depending on its capability. Signed-off-by: Simon Glass Signed-off-by: Anatolij Gustschin --- include/video.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'include/video.h') diff --git a/include/video.h b/include/video.h index fa643ca5ab..0e265dede9 100644 --- a/include/video.h +++ b/include/video.h @@ -51,6 +51,9 @@ enum video_log2_bpp { * @ysize: Number of pixels rows (e.g.. 768) * @tor: Display rotation (0=none, 1=90 degrees clockwise, etc.) * @bpix: Encoded bits per pixel + * @vidconsole_drv_name: Driver to use for the text console, NULL to + * select automatically + * @font_size: Font size in pixels (0 to use a default value) * @fb: Frame buffer * @fb_size: Frame buffer size * @line_length: Length of each frame buffer line, in bytes @@ -66,6 +69,8 @@ struct video_priv { ushort ysize; ushort rot; enum video_log2_bpp bpix; + const char *vidconsole_drv_name; + int font_size; /* * Things that are private to the uclass: don't use these in the -- cgit v1.2.1