]> git.sur5r.net Git - u-boot/blobdiff - board/pcs440ep/pcs440ep.c
MX5: Make IPU display output and pixel format configurable
[u-boot] / board / pcs440ep / pcs440ep.c
index a61e9451aa4165a1ed78f20b2c7b99ffa8a7c59b..5a3ec584451bbd502cdce86a69f50a3bf95e8f58 100644 (file)
@@ -22,7 +22,7 @@
  */
 
 #include <common.h>
-#include <ppc4xx.h>
+#include <asm/ppc4xx.h>
 #include <malloc.h>
 #include <command.h>
 #include <crc.h>
@@ -509,12 +509,13 @@ int misc_init_r (void)
 
 int checkboard(void)
 {
-       char *s = getenv("serial#");
+       char buf[64];
+       int i = getenv_f("serial#", buf, sizeof(buf));
 
        printf("Board: PCS440EP");
-       if (s != NULL) {
+       if (i > 0) {
                puts(", serial# ");
-               puts(s);
+               puts(buf);
        }
        putc('\n');