]> git.ipfire.org Git - people/ms/u-boot.git/blobdiff - include/splash.h
Convert CONFIG_SYS_DV_CLKMODE et al to Kconfig
[people/ms/u-boot.git] / include / splash.h
index 7ae7a686888c8e94b4051e38789ee3b48adce098..228aff441b87f46c3747d5376773b559898ebea5 100644 (file)
 enum splash_storage {
        SPLASH_STORAGE_NAND,
        SPLASH_STORAGE_SF,
+       SPLASH_STORAGE_MMC,
+       SPLASH_STORAGE_USB,
+       SPLASH_STORAGE_SATA,
+};
+
+enum splash_flags {
+       SPLASH_STORAGE_RAW, /* Stored in raw memory */
+       SPLASH_STORAGE_FS,  /* Stored within a file system */
+       SPLASH_STORAGE_FIT, /* Stored inside a FIT image */
 };
 
 struct splash_location {
        char *name;
        enum splash_storage storage;
+       enum splash_flags flags;
        u32 offset;     /* offset from start of storage */
+       char *devpart;  /* Use the load command dev:part conventions */
+       char *mtdpart;  /* MTD partition for ubi part */
+       char *ubivol;   /* UBI volume-name for ubifsmount */
 };
 
+#ifdef CONFIG_SPLASH_SOURCE
 int splash_source_load(struct splash_location *locations, uint size);
+#else
+static inline int splash_source_load(struct splash_location *locations,
+                                    uint size)
+{
+       return 0;
+}
+#endif
+
 int splash_screen_prepare(void);
 
 #ifdef CONFIG_SPLASH_SCREEN_ALIGN