]> git.sur5r.net Git - u-boot/blobdiff - board/freescale/t4qds/spl.c
env: Add an enum for environment state
[u-boot] / board / freescale / t4qds / spl.c
index 9ecdaedda333844a9fa01483260cf4ac025bc8cd..750f1554939be95c8604745e7d4f2c0c750bdbee 100644 (file)
@@ -5,6 +5,7 @@
 
 #include <common.h>
 #include <console.h>
+#include <environment.h>
 #include <asm/spl.h>
 #include <malloc.h>
 #include <ns16550.h>
@@ -129,7 +130,7 @@ void board_init_r(gd_t *gd, ulong dest_addr)
 #endif
 
        gd->env_addr  = (ulong)(CONFIG_ENV_ADDR);
-       gd->env_valid = 1;
+       gd->env_valid = ENV_VALID;
 
        i2c_init_all();