From: Linus Walleij Date: Wed, 27 Nov 2013 09:33:32 +0000 (+0100) Subject: ARM: versatile: pass correct machine type for Versatile AB X-Git-Url: http://git.dujemihanovic.xyz/?a=commitdiff_plain;h=a25feb7a6d2ac3351ee00c59a58a0dcfb9a13c9d;p=u-boot.git ARM: versatile: pass correct machine type for Versatile AB When U-Boot is configured for Versatile AB, it will still pass the machine ID of Versatile PB to the kernel. After this simple fix the system boots correctly. Cc: Stefano Babic Cc: Marek Vasut Signed-off-by: Linus Walleij Acked-by: Marek Vasut Acked-by: Stefano Babic --- diff --git a/board/armltd/versatile/versatile.c b/board/armltd/versatile/versatile.c index 30a3b904db..4e2d3421d8 100644 --- a/board/armltd/versatile/versatile.c +++ b/board/armltd/versatile/versatile.c @@ -52,7 +52,11 @@ int board_early_init_f (void) int board_init (void) { /* arch number of Versatile Board */ +#ifdef CONFIG_ARCH_VERSATILE_AB + gd->bd->bi_arch_number = MACH_TYPE_VERSATILE_AB; +#else gd->bd->bi_arch_number = MACH_TYPE_VERSATILE_PB; +#endif /* adress of boot parameters */ gd->bd->bi_boot_params = 0x00000100;