Re: [U-Boot] mx6ull evk reboots automatically

2017-11-23 Thread Fabio Estevam
Hi Ye Li,

On Thu, Nov 23, 2017 at 12:52 AM, Fabio Estevam  wrote:
> Hi Ye Li,
>
> On Thu, Nov 23, 2017 at 12:05 AM, Ye Li  wrote:
>
>>  The wdog3 is not disabled for i.mx6ull on mainline U-boot. Please fix it in 
>> imx_set_wdog_powerdown.
>>
>>if (is_mx6sx() || is_mx6ul() || is_mx6ull() || is_mx7())
>> writew(enable, >wmcr);
>
> Thanks for your suggestion.
>
> I tried the following change:
>
> --- a/arch/arm/mach-imx/init.c
> +++ b/arch/arm/mach-imx/init.c
> @@ -78,7 +78,7 @@ void imx_set_wdog_powerdown(bool enable)
> writew(enable, >wmcr);
> writew(enable, >wmcr);
>
> -   if (is_mx6sx() || is_mx6ul() || is_mx7())
> +   if (is_mx6sx() || is_mx6ul() || is_mx6ull() || is_mx7())
> writew(enable, >wmcr);
>  #ifdef CONFIG_MX7D
> writew(enable, >wmcr);
>
>
> but still got the kernel reboot.

I also had to fix the WDOG3_BASE_ADDR definition for mx6ull.

Just sent a series that fixes the issue.

Thanks
___
U-Boot mailing list
U-Boot@lists.denx.de
https://lists.denx.de/listinfo/u-boot


Re: [U-Boot] mx6ull evk reboots automatically

2017-11-22 Thread Fabio Estevam
Hi Ye Li,

On Thu, Nov 23, 2017 at 12:05 AM, Ye Li  wrote:

>  The wdog3 is not disabled for i.mx6ull on mainline U-boot. Please fix it in 
> imx_set_wdog_powerdown.
>
>if (is_mx6sx() || is_mx6ul() || is_mx6ull() || is_mx7())
> writew(enable, >wmcr);

Thanks for your suggestion.

I tried the following change:

--- a/arch/arm/mach-imx/init.c
+++ b/arch/arm/mach-imx/init.c
@@ -78,7 +78,7 @@ void imx_set_wdog_powerdown(bool enable)
writew(enable, >wmcr);
writew(enable, >wmcr);

-   if (is_mx6sx() || is_mx6ul() || is_mx7())
+   if (is_mx6sx() || is_mx6ul() || is_mx6ull() || is_mx7())
writew(enable, >wmcr);
 #ifdef CONFIG_MX7D
writew(enable, >wmcr);


but still got the kernel reboot.

Any ideas?

Thanks
___
U-Boot mailing list
U-Boot@lists.denx.de
https://lists.denx.de/listinfo/u-boot


Re: [U-Boot] mx6ull evk reboots automatically

2017-11-22 Thread Ye Li
Hi Fabio,

> -Original Message-
> From: U-Boot [mailto:u-boot-boun...@lists.denx.de] On Behalf Of Peng Fan
> Sent: Thursday, November 23, 2017 9:40 AM
> To: Fabio Estevam <feste...@gmail.com>
> Cc: U-Boot-Denx <u-boot@lists.denx.de>
> Subject: Re: [U-Boot] mx6ull evk reboots automatically
> 
> Hi Fabio,
> 
> > -Original Message-
> > From: Fabio Estevam [mailto:feste...@gmail.com]
> > Sent: Thursday, November 23, 2017 3:07 AM
> > To: Peng Fan <peng@nxp.com>
> > Cc: U-Boot-Denx <u-boot@lists.denx.de>
> > Subject: mx6ull evk reboots automatically
> >
> > Hi Peng,
> >
> > Booting a mainline U-Boot on a imx6ull evk with a mainline kernel
> > causes the board to reboot after about 5 seconds from reaching the Linux
> prompt.
> >
> > If I use the NXP U-Boot version this problem does not happen.
> >
> > Do you have any suggestion to fix this problem?
> 
> This maybe wdog related settings. You could try disable wdog in kernel or
> check Wdog settings in uboot. It maybe kernel configure wdog pins and trigger
> reset.

 The wdog3 is not disabled for i.mx6ull on mainline U-boot. Please fix it in 
imx_set_wdog_powerdown.

   if (is_mx6sx() || is_mx6ul() || is_mx6ull() || is_mx7())
writew(enable, >wmcr);

Best regards,
Ye Li

> 
> Regards,
> Peng.
> 
> >
> > Thanks,
> >
> > Fabio Estevam
> ___
> U-Boot mailing list
> U-Boot@lists.denx.de
> https://emea01.safelinks.protection.outlook.com/?url=https%3A%2F%2Flists.de
> nx.de%2Flistinfo%2Fu-
> boot=02%7C01%7Cye.li%40nxp.com%7C9b3b91b0a1694da6a8cf08d5321
> 31ce7%7C686ea1d3bc2b4c6fa92cd99c5c301635%7C0%7C0%7C6364699800380
> 79598=%2FWH73G3X8dfGDdng6EVae8oa9YxrYE7%2FjFC%2BX2h0piI%3
> D=0
___
U-Boot mailing list
U-Boot@lists.denx.de
https://lists.denx.de/listinfo/u-boot


Re: [U-Boot] mx6ull evk reboots automatically

2017-11-22 Thread Peng Fan
Hi Fabio,

> -Original Message-
> From: Fabio Estevam [mailto:feste...@gmail.com]
> Sent: Thursday, November 23, 2017 3:07 AM
> To: Peng Fan 
> Cc: U-Boot-Denx 
> Subject: mx6ull evk reboots automatically
> 
> Hi Peng,
> 
> Booting a mainline U-Boot on a imx6ull evk with a mainline kernel causes the
> board to reboot after about 5 seconds from reaching the Linux prompt.
> 
> If I use the NXP U-Boot version this problem does not happen.
> 
> Do you have any suggestion to fix this problem?

This maybe wdog related settings. You could try disable wdog in kernel or check
Wdog settings in uboot. It maybe kernel configure wdog pins and trigger reset.

Regards,
Peng.

> 
> Thanks,
> 
> Fabio Estevam
___
U-Boot mailing list
U-Boot@lists.denx.de
https://lists.denx.de/listinfo/u-boot


[U-Boot] mx6ull evk reboots automatically

2017-11-22 Thread Fabio Estevam
Hi Peng,

Booting a mainline U-Boot on a imx6ull evk with a mainline kernel
causes the board to reboot after
about 5 seconds from reaching the Linux prompt.

If I use the NXP U-Boot version this problem does not happen.

Do you have any suggestion to fix this problem?

Thanks,

Fabio Estevam
___
U-Boot mailing list
U-Boot@lists.denx.de
https://lists.denx.de/listinfo/u-boot