Fix splash screen display

The attached patch file consists of 2 small patches.
[PATCH 0/1] Invert the order for calling the weak function "splash_screen_prepare" and checking for the "splashimage" environment variable. This allows us to display the bitmap in bmp_logo_bitmap without having to neither copy it nor specify the "splashimage" environment variable. The user can implement its own "splash_screen_prepare" in which he/she sets the "splashimage" environment variable to &bmp_logo_bitmap. This is a kind of "hack" and there should be a way for the user to specify that he/she wants to display the embedded bmp in the bmp_logo_bitmap array and, in this case, there is no need for the "splashimage" environment variable - eIther a config option or some other way to express that this is the intent of the user.
[PATCH 1/1] Fix the test for CONFIG_CMD_BMP to CONFIG_BMP in order to display the logo image. In fact, CONFIG_BMP is set to y when CONFIG_CMD_BMP is set so there should be no compatibility issues. The user should not have to make the "bmp" cmd available in the u-boot CLI in order to use the splash screen.
.Best regards
participants (1)
-
EDM Rubino