[PATCH 1/9] ARM: imx53: guard voipac vmx53 init function

Lucas Stach dev at lynxeye.de
Sun Jan 12 19:17:22 EST 2014


Otherwise we end up doing the VMX53 board init for
unrelated boards when using a multiimage build.

Signed-off-by: Lucas Stach <dev at lynxeye.de>
---
 arch/arm/boards/freescale-mx53-vmx53/board.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/arch/arm/boards/freescale-mx53-vmx53/board.c b/arch/arm/boards/freescale-mx53-vmx53/board.c
index b38db71..d0cc495 100644
--- a/arch/arm/boards/freescale-mx53-vmx53/board.c
+++ b/arch/arm/boards/freescale-mx53-vmx53/board.c
@@ -30,6 +30,9 @@ extern char flash_header_imx53_vmx53_end[];
 
 static int vmx53_late_init(void)
 {
+	if (!of_machine_is_compatible("voipac,imx53-dmm-668"))
+			return 0;
+
 	armlinux_set_architecture(MACH_TYPE_VMX53);
 
 	barebox_set_model("Voipac VMX53");
-- 
1.8.4.2




More information about the barebox mailing list