meta-facebook: meta-tiogapass: switch u-boot to 2019.04

Switching the u-boot branch from the 2016.07-aspeed-openbmc
to the 2019.04-aspeed-openbmc

Added the config file to modify the defconfig file from
the uboot-machine.

Removing the files related to the 2016.07-aspeed branch.

Tested: Tested in Tiogapass platform and Verified
        the U-boot logs.

Signed-off-by: Logananth Sundararaj <logananth_s@hcl.com>
Change-Id: I5caadacdc1232fc180db79abe2f11c959feca018
diff --git a/meta-facebook/meta-tiogapass/conf/machine/tiogapass.conf b/meta-facebook/meta-tiogapass/conf/machine/tiogapass.conf
index 0c78afc..55773fc 100644
--- a/meta-facebook/meta-tiogapass/conf/machine/tiogapass.conf
+++ b/meta-facebook/meta-tiogapass/conf/machine/tiogapass.conf
@@ -1,11 +1,12 @@
 KMACHINE = "aspeed"
 KERNEL_DEVICETREE = "${KMACHINE}-bmc-facebook-${MACHINE}.dtb"
 
-PREFERRED_PROVIDER_virtual/bootloader = "u-boot-aspeed"
-PREFERRED_PROVIDER_u-boot = "u-boot-aspeed"
-PREFERRED_PROVIDER_u-boot-fw-utils = "u-boot-fw-utils-aspeed"
+PREFERRED_PROVIDER_virtual/bootloader = "u-boot-aspeed-sdk"
+PREFERRED_PROVIDER_u-boot = "u-boot-aspeed-sdk"
+PREFERRED_PROVIDER_u-boot-fw-utils = "u-boot-fw-utils-aspeed-sdk"
 
-UBOOT_MACHINE = "ast_g5_ncsi_config"
+UBOOT_DEVICETREE = "ast2500-evb"
+UBOOT_MACHINE = "evb-ast2500_defconfig"
 
 require conf/machine/include/facebook-compute-singlehost.inc
 require conf/machine/include/ast2500.inc
diff --git a/meta-facebook/meta-tiogapass/recipes-bsp/u-boot/u-boot-aspeed-sdk/tiogapass.cfg b/meta-facebook/meta-tiogapass/recipes-bsp/u-boot/u-boot-aspeed-sdk/tiogapass.cfg
new file mode 100644
index 0000000..6cc537e
--- /dev/null
+++ b/meta-facebook/meta-tiogapass/recipes-bsp/u-boot/u-boot-aspeed-sdk/tiogapass.cfg
@@ -0,0 +1,5 @@
+CONFIG_USE_BOOTARGS=y
+CONFIG_BOOTARGS="console=ttyS4,57600n8 root=/dev/ram rw"
+CONFIG_USE_BOOTCOMMAND=y
+CONFIG_BOOTCOMMAND="bootm 20080000"
+CONFIG_BAUDRATE=57600
diff --git a/meta-facebook/meta-tiogapass/recipes-bsp/u-boot/u-boot-aspeed-sdk_%.bbappend b/meta-facebook/meta-tiogapass/recipes-bsp/u-boot/u-boot-aspeed-sdk_%.bbappend
new file mode 100644
index 0000000..8089fdc
--- /dev/null
+++ b/meta-facebook/meta-tiogapass/recipes-bsp/u-boot/u-boot-aspeed-sdk_%.bbappend
@@ -0,0 +1,2 @@
+FILESEXTRAPATHS:prepend := "${THISDIR}/${PN}:"
+SRC_URI += "file://tiogapass.cfg"
diff --git a/meta-facebook/meta-tiogapass/recipes-bsp/u-boot/u-boot-aspeed/0001-configs-ast-common-use-57600-baud-rate-to-match-Tiog.patch b/meta-facebook/meta-tiogapass/recipes-bsp/u-boot/u-boot-aspeed/0001-configs-ast-common-use-57600-baud-rate-to-match-Tiog.patch
deleted file mode 100644
index 4bec6c8..0000000
--- a/meta-facebook/meta-tiogapass/recipes-bsp/u-boot/u-boot-aspeed/0001-configs-ast-common-use-57600-baud-rate-to-match-Tiog.patch
+++ /dev/null
@@ -1,39 +0,0 @@
-From 44cdd36855728059e58dcad52b42d825bb1cc2af Mon Sep 17 00:00:00 2001
-From: Paul Fertser <fercerpav@gmail.com>
-Date: Fri, 25 Sep 2020 18:36:45 +0300
-Subject: [PATCH] configs/ast-common: use 57600 baud rate to match Tioga Pass
- EFI firmware
-
-This is a Tioga Pass specific patch, only for
-meta-facebook/meta-tiogapass layer.
-
-Signed-off-by: Paul Fertser <fercerpav@gmail.com>
----
- include/configs/ast-common.h | 4 ++--
- 1 file changed, 2 insertions(+), 2 deletions(-)
-
-diff --git a/include/configs/ast-common.h b/include/configs/ast-common.h
-index a0243083bd..f0f2ae08b6 100644
---- a/include/configs/ast-common.h
-+++ b/include/configs/ast-common.h
-@@ -56,7 +56,7 @@
- #define CONFIG_SYS_LOADS_BAUD_CHANGE
- #define CONFIG_SERIAL1				1
- #define CONFIG_CONS_INDEX			1
--#define CONFIG_BAUDRATE				115200
-+#define CONFIG_BAUDRATE				57600
- 
- /*
-  * BOOTP options
-@@ -96,7 +96,7 @@
- #define CONFIG_CMD_MTDPARTS
- #endif
- 
--#define CONFIG_BOOTARGS			"console=ttyS4,115200n8 root=/dev/ram rw"
-+#define CONFIG_BOOTARGS			"console=ttyS4,57600n8 root=/dev/ram rw"
- 
- #define CONFIG_AST_SPI_NOR    /* AST SPI NOR Flash */
- #define CONFIG_FMC_CS			1
--- 
-2.17.1
-
diff --git a/meta-facebook/meta-tiogapass/recipes-bsp/u-boot/u-boot-aspeed_%.bbappend b/meta-facebook/meta-tiogapass/recipes-bsp/u-boot/u-boot-aspeed_%.bbappend
deleted file mode 100644
index db85451..0000000
--- a/meta-facebook/meta-tiogapass/recipes-bsp/u-boot/u-boot-aspeed_%.bbappend
+++ /dev/null
@@ -1,2 +0,0 @@
-FILESEXTRAPATHS:prepend := "${THISDIR}/${PN}:"
-SRC_URI += "file://0001-configs-ast-common-use-57600-baud-rate-to-match-Tiog.patch"
diff --git a/meta-facebook/meta-tiogapass/recipes-bsp/u-boot/u-boot-fw-utils-aspeed-sdk_%.bbappend b/meta-facebook/meta-tiogapass/recipes-bsp/u-boot/u-boot-fw-utils-aspeed-sdk_%.bbappend
new file mode 100644
index 0000000..0cca3de
--- /dev/null
+++ b/meta-facebook/meta-tiogapass/recipes-bsp/u-boot/u-boot-fw-utils-aspeed-sdk_%.bbappend
@@ -0,0 +1,2 @@
+FILESEXTRAPATHS:prepend := "${THISDIR}/u-boot-aspeed-sdk:"
+SRC_URI += "file://tiogapass.cfg"
diff --git a/meta-facebook/meta-tiogapass/recipes-bsp/u-boot/u-boot-fw-utils-aspeed_%.bbappend b/meta-facebook/meta-tiogapass/recipes-bsp/u-boot/u-boot-fw-utils-aspeed_%.bbappend
deleted file mode 100644
index d66a385..0000000
--- a/meta-facebook/meta-tiogapass/recipes-bsp/u-boot/u-boot-fw-utils-aspeed_%.bbappend
+++ /dev/null
@@ -1,2 +0,0 @@
-FILESEXTRAPATHS:prepend := "${THISDIR}/u-boot-aspeed:"
-SRC_URI += "file://0001-configs-ast-common-use-57600-baud-rate-to-match-Tiog.patch"