[U-Boot] [PATCH 26/26] RFC: sunxi: Enable SPL FIT support

Simon Glass sjg at chromium.org
Thu Jan 28 17:39:46 CET 2016


Enable SPL FIT support for the Linksprite pcDuino3 as an example of how this
feature is used.

This is only for demonstration purposes and is not to be applied.
Signed-off-by: Simon Glass <sjg at chromium.org>
---

 arch/arm/cpu/armv7/sunxi/board.c      | 5 +++++
 configs/Linksprite_pcDuino3_defconfig | 3 +++
 2 files changed, 8 insertions(+)

diff --git a/arch/arm/cpu/armv7/sunxi/board.c b/arch/arm/cpu/armv7/sunxi/board.c
index eb5f4b6..407adb5 100644
--- a/arch/arm/cpu/armv7/sunxi/board.c
+++ b/arch/arm/cpu/armv7/sunxi/board.c
@@ -103,6 +103,11 @@ static int gpio_init(void)
 	return 0;
 }
 
+int board_fit_config_name_match(const char *name)
+{
+	return strcmp(name, "sun7i-a20-pcduino3");
+}
+
 int spl_board_load_image(void)
 {
 	debug("Returning to FEL sp=%x, lr=%x\n", fel_stash.sp, fel_stash.lr);
diff --git a/configs/Linksprite_pcDuino3_defconfig b/configs/Linksprite_pcDuino3_defconfig
index 0b7ee98..74d11a0 100644
--- a/configs/Linksprite_pcDuino3_defconfig
+++ b/configs/Linksprite_pcDuino3_defconfig
@@ -14,3 +14,6 @@ CONFIG_OF_BOARD_SETUP=y
 CONFIG_CMD_GPIO=y
 CONFIG_ETH_DESIGNWARE=y
 CONFIG_USB_EHCI_HCD=y
+CONFIG_FIT=y
+CONFIG_SPL_LOAD_FIT=y
+CONFIG_OF_LIST="sun7i-a20-pcduino3 sun7i-a20-bananapro"
-- 
2.7.0.rc3.207.g0ac5344



More information about the U-Boot mailing list