[PATCH 2/2] OMAP4: fix omap4_bootsource regression

Jean-Christophe PLAGNIOL-VILLARD plagnioj at jcrosoft.com
Sun Nov 24 12:51:05 EST 2013


On 20:58 Sat 23 Nov     , Vicente Bergas wrote:
> ---
>  arch/arm/mach-omap/omap4_generic.c | 10 ++++------
>  1 file changed, 4 insertions(+), 6 deletions(-)
> 
> diff --git a/arch/arm/mach-omap/omap4_generic.c b/arch/arm/mach-omap/omap4_generic.c
> index 64b0024..6da5cae 100644
> --- a/arch/arm/mach-omap/omap4_generic.c
> +++ b/arch/arm/mach-omap/omap4_generic.c
> @@ -499,20 +499,18 @@ static int omap_vector_init(void)
>  	return 0;
>  }
>  
> -#define OMAP4_TRACING_VECTOR3 0x4030d048
> -
>  static int omap4_bootsource(void)
>  {
> -	enum bootsource src = BOOTSOURCE_UNKNOWN;
> +	enum bootsource src;
init at unknown is good

Best Regards,
J.
>  
>  	switch (omap_bootinfo[2] & 0xFF) {
> -	case 0x03:
> +	case OMAP44XX_SAR_BOOT_NAND:
>  		src = BOOTSOURCE_NAND;
>  		break;
> -	case 0x05:
> +	case OMAP44XX_SAR_BOOT_MMC1:
>  		src = BOOTSOURCE_MMC;
>  		break;
> -	case 0x20:
> +	case OMAP44XX_SAR_BOOT_USB_1:
>  		src = BOOTSOURCE_USB;
>  		break;
>  	default:
> -- 
> 1.8.4.2
> 
> 
> _______________________________________________
> barebox mailing list
> barebox at lists.infradead.org
> http://lists.infradead.org/mailman/listinfo/barebox



More information about the barebox mailing list