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)
commit7812bbdc373236516b6efa13d879d35d43ca7d01
tree7012ed7f292b85a10ac8c16e550bc09da1a69471
parentbe7418f35e80b3d836034a11866d47cdf3ba82ea
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