]> git.baikalelectronics.ru Git - uboot.git/commit
video: Correctly handle multiple framebuffers
authorSimon Glass <sjg@chromium.org>
Fri, 3 Jul 2020 03:12:32 +0000 (21:12 -0600)
committerBin Meng <bmeng.cn@gmail.com>
Thu, 9 Jul 2020 04:33:24 +0000 (12:33 +0800)
commit78fe2808deb167d976566c058e6017422c5371db
tree7012ed7f292b85a10ac8c16e550bc09da1a69471
parent282e757ec449112a58ac45e279e2d7888af0f41e
video: Correctly handle multiple framebuffers

At present video_bottom is set to the bottom of each framebuffer when it
is allocated. This is not correct, since it should hold the bottom of the
entire area available for framebuffers.

Fix this by adding a private address in the uclass which keeps track of
the next available spot for a framebuffer.

Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Anatolij Gustschin <agust@denx.de>
Tested-by: Bin Meng <bmeng.cn@gmail.com>
drivers/video/video-uclass.c