[U-Boot] [PATCH v1 06/14] board: imx6ull: Add disable PMIC_STBY_REQ

Igor Opaniuk igor.opaniuk at toradex.com
Wed Apr 3 08:26:10 UTC 2019


Reviewed-by: Igor Opaniuk <igor.opaniuk at toradex.com>

On Fri, Mar 29, 2019 at 1:41 PM Marcel Ziswiler <marcel at ziswiler.com> wrote:
>
> From: Philippe Schenker <philippe.schenker at toradex.com>
>
> Disable output driver of PAD CCM_PMIC_STBY_REQ. This prevents the
> SOC to request for a lower voltage during sleep. This is necessary
> because the voltage is changing too slow for the SOC to wake up
> properly.
>
> Signed-off-by: Philippe Schenker <philippe.schenker at toradex.com>
> Acked-by: Marcel Ziswiler <marcel.ziswiler at toradex.com>
>
> ---
>
>  board/toradex/colibri-imx6ull/colibri-imx6ull.c | 10 ++++++++++
>  1 file changed, 10 insertions(+)
>
> diff --git a/board/toradex/colibri-imx6ull/colibri-imx6ull.c b/board/toradex/colibri-imx6ull/colibri-imx6ull.c
> index b6f45edb86..f1d5cc6655 100644
> --- a/board/toradex/colibri-imx6ull/colibri-imx6ull.c
> +++ b/board/toradex/colibri-imx6ull/colibri-imx6ull.c
> @@ -50,6 +50,8 @@ DECLARE_GLOBAL_DATA_PTR;
>  #define LCD_PAD_CTRL    (PAD_CTL_HYS | PAD_CTL_PUS_100K_UP | \
>                 PAD_CTL_DSE_48ohm)
>
> +#define MX6_PAD_SNVS_PMIC_STBY_REQ_ADDR 0x2290040
> +
>  #define NAND_PAD_CTRL (PAD_CTL_DSE_48ohm | PAD_CTL_SRE_SLOW | PAD_CTL_HYS)
>
>  #define NAND_PAD_READY0_CTRL (PAD_CTL_DSE_48ohm | PAD_CTL_PUS_22K_UP)
> @@ -331,6 +333,14 @@ int board_late_init(void)
>                 env_set("variant", "-wifi");
>  #endif
>
> +       /*
> +        * Disable output driver of PAD CCM_PMIC_STBY_REQ. This prevents the
> +        * SOC to request for a lower voltage during sleep. This is necessary
> +        * because the voltage is changing too slow for the SOC to wake up
> +        * properly.
> +        */
> +       __raw_writel(0x8080, MX6_PAD_SNVS_PMIC_STBY_REQ_ADDR);
> +
>  #ifdef CONFIG_CMD_BMODE
>         add_board_boot_modes(board_boot_modes);
>  #endif
> --
> 2.20.1
>
> _______________________________________________
> U-Boot mailing list
> U-Boot at lists.denx.de
> https://lists.denx.de/listinfo/u-boot



-- 
Best regards - Freundliche GrĂ¼sse - Meilleures salutations

Senior Development Engineer,
Igor Opaniuk

Toradex AG
Altsagenstrasse 5 | 6048 Horw/Luzern | Switzerland | T: +41 41 500 48
00 (main line)


More information about the U-Boot mailing list