env: Move env_set() to env.h
[oweals/u-boot.git] / board / freescale / mx6ullevk / mx6ullevk.c
index 66b08f823e3fabcae29f4814317495fa24e8ef1c..e1193478026273e3bbcc2090ca95906693892c92 100644 (file)
@@ -1,7 +1,6 @@
+// SPDX-License-Identifier: GPL-2.0+
 /*
  * Copyright (C) 2016 Freescale Semiconductor, Inc.
- *
- * SPDX-License-Identifier:    GPL-2.0+
  */
 
 #include <asm/arch/clock.h>
@@ -15,7 +14,8 @@
 #include <asm/mach-imx/boot_mode.h>
 #include <asm/io.h>
 #include <common.h>
-#include <fsl_esdhc.h>
+#include <env.h>
+#include <fsl_esdhc_imx.h>
 #include <linux/sizes.h>
 #include <mmc.h>
 
@@ -84,8 +84,8 @@ int board_late_init(void)
 #endif
 
 #ifdef CONFIG_ENV_VARS_UBOOT_RUNTIME_CONFIG
-       setenv("board_name", "EVK");
-       setenv("board_rev", "14X14");
+       env_set("board_name", "EVK");
+       env_set("board_rev", "14X14");
 #endif
 
        return 0;