aboutsummaryrefslogtreecommitdiff
path: root/drivers/video/sandbox_sdl.c
diff options
context:
space:
mode:
authorSimon Glass2021-11-19 13:24:03 -0700
committerAnatolij Gustschin2021-12-26 23:32:46 +0100
commit84e63abfff67b82253add1c05cfdd9700fada021 (patch)
treed01c1d08af4a6ccc48626c88f55d04e8d36d2393 /drivers/video/sandbox_sdl.c
parent2c8ee30b9708f8d43b7d971568614d7a192ccf31 (diff)
video: Support showing the U-Boot logo
Show the U-Boot logo by default. This is only 7KB in size so seems like a useful default for boards that enable a display. If SPLASH_SCREEN is enabled, it is not enabled by default, so as not to conflict with that feature. Also disable it for tests, since we don't want to complicate the output. Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'drivers/video/sandbox_sdl.c')
-rw-r--r--drivers/video/sandbox_sdl.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/video/sandbox_sdl.c b/drivers/video/sandbox_sdl.c
index 2afe66fab1a..9081c7da62e 100644
--- a/drivers/video/sandbox_sdl.c
+++ b/drivers/video/sandbox_sdl.c
@@ -82,12 +82,14 @@ static void set_bpp(struct udevice *dev, enum video_log2_bpp l2bpp)
int sandbox_sdl_set_bpp(struct udevice *dev, enum video_log2_bpp l2bpp)
{
+ struct video_uc_plat *uc_plat = dev_get_uclass_plat(dev);
int ret;
if (device_active(dev))
return -EINVAL;
sandbox_sdl_remove_display();
+ uc_plat->hide_logo = true;
set_bpp(dev, l2bpp);
ret = device_probe(dev);