From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ravi Babu Date: Tue, 14 Jun 2016 16:32:22 +0530 Subject: [U-Boot] [RFC PATCH v1 4/6] dra7x: spl: dfu: adding SPL-DFU support for dra7x platform In-Reply-To: <1465902144-30934-1-git-send-email-ravibabu@ti.com> References: <1465902144-30934-1-git-send-email-ravibabu@ti.com> Message-ID: <1465902144-30934-5-git-send-email-ravibabu@ti.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Adding SPL-DFU support for dra7x platform. The DFU support for dra7x includes QSPI, MMC/SD and eMMC memory devices. The SPL-DFU memory devices can be selected through meunconfig->Boot Images. --- board/ti/dra7xx/evm.c | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/board/ti/dra7xx/evm.c b/board/ti/dra7xx/evm.c index c5f7190..bd1f5be 100644 --- a/board/ti/dra7xx/evm.c +++ b/board/ti/dra7xx/evm.c @@ -29,6 +29,7 @@ #include #include #include +#include #include "mux_data.h" #include "../common/board_detect.h" @@ -706,6 +707,22 @@ int spl_start_uboot(void) } #endif +#ifdef CONFIG_SPL_DFU +int spl_run_dfu(void) +{ + int os_boot = 0; +#ifdef CONFIG_SPL_DFU_SF + spl_dfu_cmd(0, "dfu_alt_info_qspi", "sf", "0:0:64000000:0"); +#endif +#ifdef CONFIG_SPL_DFU_RAM + spl_dfu_cmd(0, "dfu_alt_info_ram", "ram", "0"); + spl_dfu_ram_load_image(); + os_boot = 1; +#endif + return os_boot; +} +#endif + #ifdef CONFIG_DRIVER_TI_CPSW extern u32 *const omap_si_rev; -- 1.7.9.5