diff mbox series

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

Message ID 1529763008-20426-2-git-send-email-michael@amarulasolutions.com
State Accepted
Commit 3058879982ec2ad0a53222dd3a518fb609ca7ae7
Delegated to: Stefano Babic
Headers show
Series [U-Boot,1/2] imx: imx6: Add comment to gpr_init function | expand

Commit Message

Michael Nazzareno Trimarchi June 23, 2018, 2:10 p.m. UTC
Fix an invalid usage of the gpr_init function for the imx6ul
architecture

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

Comments

Jagan Teki June 24, 2018, 5:34 p.m. UTC | #1
On Sat, Jun 23, 2018 at 7:40 PM, Michael Trimarchi
<michael@amarulasolutions.com> wrote:
> Fix an invalid usage of the gpr_init function for the imx6ul
> architecture
>
> Signed-off-by: Michael Trimarchi <michael@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();

Acked-by: Jagan Teki <jagan@amarulasolutions.com>
diff mbox series

Patch

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);