]> git.karo-electronics.de Git - karo-tx-uboot.git/blobdiff - board/compulab/cm_fx6/cm_fx6.c
arm: mx6: cm-fx6: add splash screen support
[karo-tx-uboot.git] / board / compulab / cm_fx6 / cm_fx6.c
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)
 {