Skip to content
Snippets Groups Projects
Commit 6f8387f1 authored by B, Ravi's avatar B, Ravi Committed by Marek Vasut
Browse files

dra7x: boot: add dfu bootmode support


This patch enables the DFU boot mode support
for dra7x platform.

Signed-off-by: default avatarRavi Babu <ravibabu@ti.com>
Reviewed-by: default avatarTom Rini <trini@konsulko.com>
parent 52f2acc5
No related branches found
No related tags found
No related merge requests found
...@@ -90,6 +90,11 @@ void save_omap_boot_params(void) ...@@ -90,6 +90,11 @@ void save_omap_boot_params(void)
case BOOT_DEVICE_CPGMAC: case BOOT_DEVICE_CPGMAC:
sys_boot_device = 1; sys_boot_device = 1;
break; break;
#endif
#if defined(BOOT_DEVICE_DFU) && !defined(CONFIG_SPL_DFU_SUPPORT)
case BOOT_DEVICE_DFU:
sys_boot_device = 1;
break;
#endif #endif
} }
......
...@@ -20,7 +20,7 @@ ...@@ -20,7 +20,7 @@
#define BOOT_DEVICE_QSPI_1 0x0A #define BOOT_DEVICE_QSPI_1 0x0A
#define BOOT_DEVICE_QSPI_4 0x0B #define BOOT_DEVICE_QSPI_4 0x0B
#define BOOT_DEVICE_UART 0x43 #define BOOT_DEVICE_UART 0x43
#define BOOT_DEVICE_USB 0x45 #define BOOT_DEVICE_DFU 0x45
#define MMC_BOOT_DEVICES_START BOOT_DEVICE_MMC1 #define MMC_BOOT_DEVICES_START BOOT_DEVICE_MMC1
#define MMC_BOOT_DEVICES_END BOOT_DEVICE_MMC2_2 #define MMC_BOOT_DEVICES_END BOOT_DEVICE_MMC2_2
......
...@@ -174,7 +174,7 @@ __weak void __noreturn jump_to_image_no_args(struct spl_image_info *spl_image) ...@@ -174,7 +174,7 @@ __weak void __noreturn jump_to_image_no_args(struct spl_image_info *spl_image)
# define CONFIG_SPL_LOAD_FIT_ADDRESS 0 # define CONFIG_SPL_LOAD_FIT_ADDRESS 0
#endif #endif
#ifdef CONFIG_SPL_RAM_DEVICE #if defined(CONFIG_SPL_RAM_DEVICE) || defined(CONFIG_SPL_DFU_SUPPORT)
static ulong spl_ram_load_read(struct spl_load_info *load, ulong sector, static ulong spl_ram_load_read(struct spl_load_info *load, ulong sector,
ulong count, void *buf) ulong count, void *buf)
{ {
...@@ -312,6 +312,9 @@ struct boot_device_name boot_name_table[] = { ...@@ -312,6 +312,9 @@ struct boot_device_name boot_name_table[] = {
#ifdef CONFIG_SPL_USB_SUPPORT #ifdef CONFIG_SPL_USB_SUPPORT
{ BOOT_DEVICE_USB, "USB" }, { BOOT_DEVICE_USB, "USB" },
#endif #endif
#ifdef CONFIG_SPL_DFU_SUPPORT
{ BOOT_DEVICE_DFU, "USB DFU" },
#endif
#ifdef CONFIG_SPL_SATA_SUPPORT #ifdef CONFIG_SPL_SATA_SUPPORT
{ BOOT_DEVICE_SATA, "SATA" }, { BOOT_DEVICE_SATA, "SATA" },
#endif #endif
...@@ -398,6 +401,11 @@ static int spl_load_image(u32 boot_device) ...@@ -398,6 +401,11 @@ static int spl_load_image(u32 boot_device)
case BOOT_DEVICE_USB: case BOOT_DEVICE_USB:
return spl_usb_load_image(); return spl_usb_load_image();
#endif #endif
#ifdef CONFIG_SPL_DFU_SUPPORT
case BOOT_DEVICE_DFU:
spl_dfu_cmd(0, "dfu_alt_info_ram", "ram", "0");
return spl_ram_load_image();
#endif
#ifdef CONFIG_SPL_SATA_SUPPORT #ifdef CONFIG_SPL_SATA_SUPPORT
case BOOT_DEVICE_SATA: case BOOT_DEVICE_SATA:
return spl_sata_load_image(); return spl_sata_load_image();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment