diff options
| author | Simon Glass <[email protected]> | 2018-11-29 15:08:52 -0700 |
|---|---|---|
| committer | Anatolij Gustschin <[email protected]> | 2018-12-03 19:09:44 +0100 |
| commit | 06696ebe674de7f65d4f5046a8639b358c6b358c (patch) | |
| tree | 50631d977226b27f04dfeb9dbf777afd03d8e0ea /include | |
| parent | 8f5bfb7615e82ffccebf79530b08034f81e56268 (diff) | |
video: Allow driver to specify the line length
At present line_length is always calculated in video_post_probe(). But
some hardware may use a different line length, e.g. with a 1366-wide
display.
Allow the driver to set this value if needed.
Signed-off-by: Simon Glass <[email protected]>
Reviewed-by: Anatolij Gustschin <[email protected]>
Diffstat (limited to 'include')
| -rw-r--r-- | include/video.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/include/video.h b/include/video.h index 3f9139eea44..1d57b48b173 100644 --- a/include/video.h +++ b/include/video.h @@ -61,7 +61,9 @@ enum video_log2_bpp { * @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 + * @line_length: Length of each frame buffer line, in bytes. This can be + * set by the driver, but if not, the uclass will set it after + * probing * @colour_fg: Foreground colour (pixel value) * @colour_bg: Background colour (pixel value) * @flush_dcache: true to enable flushing of the data cache after |
