i.MX6: engicam: gpr_init can be called only for some architecture
authorMichael Trimarchi <michael@amarulasolutions.com>
Sat, 23 Jun 2018 14:10:07 +0000 (16:10 +0200)
committerStefano Babic <sbabic@denx.de>
Mon, 23 Jul 2018 08:51:14 +0000 (10:51 +0200)
Fix an invalid usage of the gpr_init function for the imx6ul
architecture

Signed-off-by: Michael Trimarchi <michael@amarulasolutions.com>
Acked-by: Jagan Teki <jagan@amarulasolutions.com>
board/engicam/common/spl.c

index 1a1fe6c66a45d1b277af567f044a05b465163222..4d293c8032dc6bbb17895c2751915db729fb1c40 100644 (file)
@@ -414,7 +414,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);