diff options
author | Simon Glass | 2018-11-29 15:08:52 -0700 |
---|---|---|
committer | Anatolij Gustschin | 2018-12-03 19:09:44 +0100 |
commit | 06696ebe674de7f65d4f5046a8639b358c6b358c (patch) | |
tree | 50631d977226b27f04dfeb9dbf777afd03d8e0ea /drivers/pci/pci_rom.c | |
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 <sjg@chromium.org>
Reviewed-by: Anatolij Gustschin <agust@denx.de>
Diffstat (limited to 'drivers/pci/pci_rom.c')
-rw-r--r-- | drivers/pci/pci_rom.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/pci/pci_rom.c b/drivers/pci/pci_rom.c index eaacd4066e8..7d9b75c2c45 100644 --- a/drivers/pci/pci_rom.c +++ b/drivers/pci/pci_rom.c @@ -331,6 +331,7 @@ int vbe_setup_video_priv(struct vesa_mode_info *vesa, return log_msg_ret("No x resolution", -ENXIO); uc_priv->xsize = vesa->x_resolution; uc_priv->ysize = vesa->y_resolution; + uc_priv->line_length = vesa->bytes_per_scanline; switch (vesa->bits_per_pixel) { case 32: case 24: |