ARM: at91: spl: Add boot device for boot from QSPI
[oweals/u-boot.git] / arch / arm / mach-omap2 / boot-common.c
index 700e6c2f7985e77053cecd98c797eb17d7d59c9f..26245aa1694e47283c2acdeac8e322ed06fe1b76 100644 (file)
@@ -10,6 +10,7 @@
 
 #include <common.h>
 #include <ahci.h>
+#include <environment.h>
 #include <spl.h>
 #include <asm/omap_common.h>
 #include <asm/arch/omap.h>
@@ -240,8 +241,8 @@ void arch_preboot_os(void)
 int fb_set_reboot_flag(void)
 {
        printf("Setting reboot to fastboot flag ...\n");
-       setenv("dofastboot", "1");
-       saveenv();
+       env_set("dofastboot", "1");
+       env_save();
        return 0;
 }
 #endif