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>
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 @@
* @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 @@
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