[U-Boot] [PATCH 2/2] i.MX6: engicam: gpr_init can be called only for some architecture

Michael Trimarchi michael at amarulasolutions.com
Sat Jun 23 14:10:07 UTC 2018


Fix an invalid usage of the gpr_init function for the imx6ul
architecture

Signed-off-by: Michael Trimarchi <michael at amarulasolutions.com>
---
 board/engicam/common/spl.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/board/engicam/common/spl.c b/board/engicam/common/spl.c
index 470d96a..69d1c11 100644
--- a/board/engicam/common/spl.c
+++ b/board/engicam/common/spl.c
@@ -410,7 +410,8 @@ void board_init_f(ulong dummy)
 	/* setup AIPS and disable watchdog */
 	arch_cpu_init();
 
-	gpr_init();
+	if (!(is_mx6ul()))
+		gpr_init();
 
 	/* iomux */
 	SETUP_IOMUX_PADS(uart_pads);
-- 
2.7.4



More information about the U-Boot mailing list