[PATCH] ARM: GuF Vincell: run code for LT variant aswell

Sascha Hauer s.hauer at pengutronix.de
Wed Apr 27 06:38:24 PDT 2016


The LT variant has a different compatible, yet we want to run the
code on this variant aswell. Add the corresponding test.

Signed-off-by: Sascha Hauer <s.hauer at pengutronix.de>
---
 arch/arm/boards/guf-vincell/board.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/arch/arm/boards/guf-vincell/board.c b/arch/arm/boards/guf-vincell/board.c
index ad47ee2..43c1952 100644
--- a/arch/arm/boards/guf-vincell/board.c
+++ b/arch/arm/boards/guf-vincell/board.c
@@ -40,7 +40,8 @@ static void vincell_fec_reset(void)
 
 static int vincell_devices_init(void)
 {
-	if (!of_machine_is_compatible("guf,imx53-vincell"))
+	if (!of_machine_is_compatible("guf,imx53-vincell") &&
+	    !of_machine_is_compatible("guf,imx53-vincell-lt"))
 		return 0;
 
 	writel(0, MX53_M4IF_BASE_ADDR + 0xc);
-- 
2.8.0.rc3




More information about the barebox mailing list