meta-nicole: Enable field mode

Enables the field mode by default.
This marks the BMC as production version and activates some production
specific functionalities.
For example, this makes the software manager to discard unverified
firmware images.

Tested:
 - The output of `fw_printenv` contains `fieldmode=true`.
 - `busctl get-property xyz.openbmc_project.Software.BMC.Updater \
          /xyz/openbmc_project/software \
          xyz.openbmc_project.Control.FieldMode FieldModeEnabled`
   returns `true`

(From meta-yadro rev: ca760a233b348efaf860e0691ea4b3f1c0db1ec1)

Change-Id: I9c6fbead319f3c990efba669c923dccb97110e16
Signed-off-by: Alexander Filippov <a.filippov@yadro.com>
Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
diff --git a/meta-yadro/meta-nicole/recipes-bsp/u-boot/files/0002-config-ast-common-set-fieldmode-to-true.patch b/meta-yadro/meta-nicole/recipes-bsp/u-boot/files/0002-config-ast-common-set-fieldmode-to-true.patch
new file mode 100644
index 0000000..a5c1bb2
--- /dev/null
+++ b/meta-yadro/meta-nicole/recipes-bsp/u-boot/files/0002-config-ast-common-set-fieldmode-to-true.patch
@@ -0,0 +1,27 @@
+From efc627f4a288ea2e7969407f50fc403bb0264df1 Mon Sep 17 00:00:00 2001
+From: Alexander Filippov <a.filippov@yadro.com>
+Date: Wed, 23 Oct 2019 15:51:25 +0300
+Subject: [PATCH] config/ast-common: set fieldmode to true
+
+Force enables field mode. Our system always in production.
+
+Signed-off-by: Alexander Filippov <a.filippov@yadro.com>
+---
+ include/configs/ast-common.h | 1 +
+ 1 file changed, 1 insertion(+)
+
+diff --git a/include/configs/ast-common.h b/include/configs/ast-common.h
+index a0243083bd..6285fa4037 100644
+--- a/include/configs/ast-common.h
++++ b/include/configs/ast-common.h
+@@ -117,6 +117,7 @@
+ #define ASPEED_ENV_SETTINGS \
+ 	"verify=yes\0"	\
+ 	"spi_dma=yes\0" \
++	"fieldmode=true\0" \
+ 	""
+ 
+ #endif	/* __AST_COMMON_CONFIG_H */
+-- 
+2.21.0
+
diff --git a/meta-yadro/meta-nicole/recipes-bsp/u-boot/u-boot-aspeed_%.bbappend b/meta-yadro/meta-nicole/recipes-bsp/u-boot/u-boot-aspeed_%.bbappend
index f0ff09e..bf7802a 100644
--- a/meta-yadro/meta-nicole/recipes-bsp/u-boot/u-boot-aspeed_%.bbappend
+++ b/meta-yadro/meta-nicole/recipes-bsp/u-boot/u-boot-aspeed_%.bbappend
@@ -2,4 +2,5 @@
 
 SRC_URI_append = " \
     file://0001-Add-system-reset-status-support.patch \
+    file://0002-config-ast-common-set-fieldmode-to-true.patch \
     "
diff --git a/meta-yadro/meta-nicole/recipes-bsp/u-boot/u-boot-fw-utils-aspeed_%.bbappend b/meta-yadro/meta-nicole/recipes-bsp/u-boot/u-boot-fw-utils-aspeed_%.bbappend
new file mode 120000
index 0000000..742334a
--- /dev/null
+++ b/meta-yadro/meta-nicole/recipes-bsp/u-boot/u-boot-fw-utils-aspeed_%.bbappend
@@ -0,0 +1 @@
+u-boot-aspeed_%.bbappend
\ No newline at end of file