[U-Boot] [RFC PATCH v2 4/5] dra7x: boot: add dfu bootmode support

Tom Rini trini at konsulko.com
Fri Jul 22 15:41:57 CEST 2016


On Thu, Jul 21, 2016 at 08:23:16PM +0530, Ravi Babu wrote:

> This patch enables the DFU boot mode support
> for dra7x platform.
> 
> Signed-off-by: Ravi Babu <ravibabu at ti.com>
> ---
>  arch/arm/cpu/armv7/omap-common/boot-common.c |    5 +++++
>  arch/arm/include/asm/arch-omap5/spl.h        |    2 +-
>  common/spl/spl.c                             |   10 +++++++++-
>  3 files changed, 15 insertions(+), 2 deletions(-)
> 
> diff --git a/arch/arm/cpu/armv7/omap-common/boot-common.c b/arch/arm/cpu/armv7/omap-common/boot-common.c
> index 60c367a..385310b 100644
> --- a/arch/arm/cpu/armv7/omap-common/boot-common.c
> +++ b/arch/arm/cpu/armv7/omap-common/boot-common.c
> @@ -91,6 +91,11 @@ void save_omap_boot_params(void)
>  			sys_boot_device = 1;
>  			break;
>  #endif
> +#if defined(BOOT_DEVICE_DFU) && !defined(CONFIG_SPL_DFU_SUPPORT)
> +		case BOOT_DEVICE_DFU:
> +			sys_boot_device = 1;
> +			break;
> +#endif
>  	}
>  
>  	if (sys_boot_device) {
> diff --git a/arch/arm/include/asm/arch-omap5/spl.h b/arch/arm/include/asm/arch-omap5/spl.h
> index 468ff5a..3582880 100644
> --- a/arch/arm/include/asm/arch-omap5/spl.h
> +++ b/arch/arm/include/asm/arch-omap5/spl.h
> @@ -20,7 +20,7 @@
>  #define BOOT_DEVICE_QSPI_1	0x0A
>  #define BOOT_DEVICE_QSPI_4	0x0B
>  #define BOOT_DEVICE_UART	0x43
> -#define BOOT_DEVICE_USB		0x45
> +#define BOOT_DEVICE_DFU		0x45

So you're breaking regular USB gadget support with this change, on these
platforms, yes?

-- 
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20160722/9c25869d/attachment.sig>


More information about the U-Boot mailing list