diff options
author | Simon Glass <sjg@chromium.org> | 2016-01-14 18:10:48 -0700 |
---|---|---|
committer | Anatolij Gustschin <agust@denx.de> | 2016-01-30 10:57:20 +0100 |
commit | 826f35f9b57c4581ff69d55c3bade9c3814e29bb (patch) | |
tree | 8f6d5105e09e133b5e4c3195921900f274c356d5 /include/video.h | |
parent | 0f4d2f8e79f128de006c9b116be84f3e4dbba210 (diff) | |
download | u-boot-imx-826f35f9b57c4581ff69d55c3bade9c3814e29bb.zip u-boot-imx-826f35f9b57c4581ff69d55c3bade9c3814e29bb.tar.gz u-boot-imx-826f35f9b57c4581ff69d55c3bade9c3814e29bb.tar.bz2 |
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 <sjg@chromium.org>
Signed-off-by: Anatolij Gustschin <agust@denx.de>
Diffstat (limited to 'include/video.h')
-rw-r--r-- | include/video.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/video.h b/include/video.h index fa643ca..0e265de 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 |