]> git.kernelconcepts.de Git - karo-tx-uboot.git/commitdiff
arm: mx6: cm-fx6: add splash screen support
authorNikita Kiryanov <nikita@compulab.co.il>
Wed, 14 Jan 2015 08:42:53 +0000 (10:42 +0200)
committerLothar Waßmann <LW@KARO-electronics.de>
Tue, 1 Sep 2015 10:57:33 +0000 (12:57 +0200)
Add support for splash screen.
The splash screen is loaded from the SPI flash and is displayed on the
HDMI display.

Signed-off-by: Nikita Kiryanov <nikita@compulab.co.il>
[grinberg@compulab.co.il: minor code and commit message updates]
Signed-off-by: Igor Grinberg <grinberg@compulab.co.il>
Cc: Stefano Babic <sbabic@denx.de>
Cc: Igor Grinberg <grinberg@compulab.co.il>
board/compulab/cm_fx6/cm_fx6.c
include/configs/cm_fx6.h

index b31e1f59b6b7f5dd665bbd984dfdcc32a28a0d1c..b5c3ea19d362dc2280b88910f9b6209e9392ae2a 100644 (file)
 #include <dm/platform_data/serial_mxc.h>
 #include "common.h"
 #include "../common/eeprom.h"
+#include "../common/common.h"
 
 DECLARE_GLOBAL_DATA_PTR;
 
+#ifdef CONFIG_SPLASH_SCREEN
+static struct splash_location cm_fx6_splash_locations[] = {
+       {
+               .name = "sf",
+               .storage = SPLASH_STORAGE_SF,
+               .offset = 0x100000,
+       },
+};
+
+int splash_screen_prepare(void)
+{
+       return cl_splash_screen_prepare(cm_fx6_splash_locations,
+                                       ARRAY_SIZE(cm_fx6_splash_locations));
+}
+#endif
+
 #ifdef CONFIG_IMX_HDMI
 static void cm_fx6_enable_hdmi(struct display_info_t const *dev)
 {
index 74e0a65a07cdc0f70e1b3e30b37ed0566ab6c0ab..ea64e8c017be8de85e43ad68881d0ac3b2a5f053 100644 (file)
 #define CONFIG_CONSOLE_MUX
 #define CONFIG_VIDEO_SW_CURSOR
 
+#define CONFIG_SPLASH_SCREEN
+#define CONFIG_CMD_BMP
+#define CONFIG_VIDEO_BMP_RLE8
+
 #define CONFIG_VIDEO_LOGO
 #define CONFIG_VIDEO_BMP_LOGO