summaryrefslogtreecommitdiffstats
path: root/include/video_console.h
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2016-01-14 18:10:39 -0700
committerAnatolij Gustschin <agust@denx.de>2016-01-30 10:55:15 +0100
commitc5b77d01d1eb0943a8241665313577b8b51203ae (patch)
treeed476cd65c8f0d95ea66de47406c3426e5ec4b72 /include/video_console.h
parent5508f10ac9c5cb49f41284b383ba18637f5c7f77 (diff)
downloadblackbird-obmc-uboot-c5b77d01d1eb0943a8241665313577b8b51203ae.tar.gz
blackbird-obmc-uboot-c5b77d01d1eb0943a8241665313577b8b51203ae.zip
video: Provide a left margin for the text console
Allow the left margin to be set so that text does not have to be right up against the left side. On some panels this makes it hard to read. Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'include/video_console.h')
-rw-r--r--include/video_console.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/video_console.h b/include/video_console.h
index eeba368d63..cbbf1345f8 100644
--- a/include/video_console.h
+++ b/include/video_console.h
@@ -27,6 +27,7 @@
* @y_charsize: Character height in pixels
* @tab_width_frac: Tab width in fractional units
* @xsize_frac: Width of the display in fractional units
+ * @xstart_frac: Left margin for the text console in fractional units
*/
struct vidconsole_priv {
struct stdio_dev sdev;
@@ -38,6 +39,7 @@ struct vidconsole_priv {
int y_charsize;
int tab_width_frac;
int xsize_frac;
+ int xstart_frac;
};
/**
OpenPOWER on IntegriCloud