u-boot-aspeed: Add distro feature to enable SPI master mode
The ast2500 shares the RGMII1 pin and the hw strap pins
for SPI interface mode selection ( pin[12:13] ).
In some systems, the RGMII/NCSI interface will use the pin.
It makes the SPI interface mode setting is not correct.
This patch adds a distro feature to enable the SPI master
mode by default.
Signed-off-by: Chanh Nguyen <chanh@os.amperecomputing.com>
Change-Id: I93e5dd5e86870601169974aa1aab4b5480a45ef1
diff --git a/meta-phosphor/aspeed-layer/recipes-bsp/u-boot/u-boot-aspeed.inc b/meta-phosphor/aspeed-layer/recipes-bsp/u-boot/u-boot-aspeed.inc
index 69b50d6..5a0b7e6 100644
--- a/meta-phosphor/aspeed-layer/recipes-bsp/u-boot/u-boot-aspeed.inc
+++ b/meta-phosphor/aspeed-layer/recipes-bsp/u-boot/u-boot-aspeed.inc
@@ -15,7 +15,9 @@
SRC_URI:append:aspeed:df-aspeednic-use-mac2 = " \
file://0002-board-aspeed-aspeednic-Use-MAC2-for-networking.patch \
"
-
+SRC_URI:append:aspeed:df-aspeed-spi-master = " \
+ file://0006-aspeed-Enable-SPI-master-mode-by-default.patch \
+ "
do_patch[depends] += "os-release:do_populate_sysroot"
python do_patch:append:aspeed:df-obmc-ubi-fs () {