]> git.sur5r.net Git - u-boot/blobdiff - board/micronas/vct/vct.c
i.MX6: mx6qsabrelite: indent with tabs
[u-boot] / board / micronas / vct / vct.c
index d320e0b5f0d898b1d11094d2eea2270e7b6a8629..a8eef370e0ea88e56fdf5ee10ad72983a32f7938 100644 (file)
@@ -21,6 +21,7 @@
 
 #include <common.h>
 #include <command.h>
+#include <netdev.h>
 #include <asm/mipsregs.h>
 #include "vct.h"
 
@@ -79,8 +80,9 @@ phys_size_t initdram(int board_type)
 
 int checkboard(void)
 {
+       char buf[64];
+       int i = getenv_f("serial#", buf, sizeof(buf));
        u32 config0 = read_c0_prid();
-       char *s = getenv("serial#");
 
        if ((config0 & 0xff0000) == PRID_COMP_LEGACY
            && (config0 & 0xff00) == PRID_IMP_LX4280) {
@@ -107,11 +109,20 @@ int checkboard(void)
        }
 
        printf("Board: Micronas VCT " BOARD_NAME BOARD_NAME_ADD);
-       if (s != NULL) {
+       if (i > 0) {
                puts(", serial# ");
-               puts(s);
+               puts(buf);
        }
        putc('\n');
 
        return 0;
 }
+
+int board_eth_init(bd_t *bis)
+{
+       int rc = 0;
+#ifdef CONFIG_SMC911X
+       rc = smc911x_initialize(0, CONFIG_SMC911X_BASE);
+#endif
+       return rc;
+}