X-Git-Url: https://git.karo-electronics.de/?a=blobdiff_plain;f=include%2Fsplash.h;h=1b98ac40eec97a22a38170013fa72778c3a0055d;hb=5cacbd752fcc05e93773c329ce2f1ad9e237c0d9;hp=89ee7b22ec2b324f4c29f37018242a91a42259a7;hpb=778c3cbd857f4abe54773f399204dd86ffe6516c;p=karo-tx-uboot.git diff --git a/include/splash.h b/include/splash.h index 89ee7b22ec..1b98ac40ee 100644 --- a/include/splash.h +++ b/include/splash.h @@ -21,8 +21,20 @@ #ifndef _SPLASH_H_ #define _SPLASH_H_ +#include +enum splash_storage { + SPLASH_STORAGE_NAND, + SPLASH_STORAGE_SF, +}; +struct splash_location { + char *name; + enum splash_storage storage; + u32 offset; /* offset from start of storage */ +}; + +int splash_source_load(struct splash_location *locations, uint size); int splash_screen_prepare(void); #ifdef CONFIG_SPLASH_SCREEN_ALIGN @@ -31,6 +43,15 @@ void splash_get_pos(int *x, int *y); static inline void splash_get_pos(int *x, int *y) { } #endif +#if defined(CONFIG_SPLASH_SCREEN) && defined(CONFIG_LCD) +int lcd_splash(ulong addr); +#else +static inline int lcd_splash(ulong addr) +{ + return -ENOSYS; +} +#endif + #define BMP_ALIGN_CENTER 0x7FFF #endif