]> git.sur5r.net Git - u-boot/blobdiff - common/cmd_bmp.c
Update make target for ARM supported boards.
[u-boot] / common / cmd_bmp.c
index c1d4c0b90a66366a61e58cfcb4c981a361050911..daa54e77692f2936047dde1612bee1a9cfc0a357 100644 (file)
@@ -28,6 +28,7 @@
 #include <common.h>
 #include <bmp_layout.h>
 #include <command.h>
+#include <asm/byteorder.h>
 
 #if (CONFIG_COMMANDS & CFG_CMD_BMP)
 
@@ -123,14 +124,15 @@ static int bmp_info(ulong addr)
  */
 static int bmp_display(ulong addr, int x, int y)
 {
-#ifdef CONFIG_LCD
-    extern int lcd_display_bitmap (ulong, int, int);
+#if defined(CONFIG_LCD)
+       extern int lcd_display_bitmap (ulong, int, int);
 
        return (lcd_display_bitmap (addr, x, y));
-#endif
-#ifdef CONFIG_VIDEO
+#elif defined(CONFIG_VIDEO)
        extern int video_display_bitmap (ulong, int, int);
        return (video_display_bitmap (addr, x, y));
+#else
+# error bmp_display() requires CONFIG_LCD or CONFIG_VIDEO
 #endif
 }