On 28/09/2016 03:40, Peng Fan wrote:
> From TO1.1, SNVS adds internal pull up control for POR_B,
> the register filed is GPBIT[1:0], after system boot up,
> it can be set to 2b'01 to disable internal pull up.
> It can save about 30uA power in SNVS mode.
> 
> Signed-off-by: Peng Fan <peng....@nxp.com>
> Cc: Stefano Babic <sba...@denx.de>
> ---
>  arch/arm/cpu/armv7/mx6/soc.c | 29 +++++++++++++++++++++--------
>  1 file changed, 21 insertions(+), 8 deletions(-)
> 
> diff --git a/arch/arm/cpu/armv7/mx6/soc.c b/arch/arm/cpu/armv7/mx6/soc.c
> index e23d3c6..e219a25 100644
> --- a/arch/arm/cpu/armv7/mx6/soc.c
> +++ b/arch/arm/cpu/armv7/mx6/soc.c
> @@ -362,14 +362,27 @@ int arch_cpu_init(void)
>                       set_ahb_rate(132000000);
>       }
>  
> -     if (is_mx6ul() && is_soc_rev(CHIP_REV_1_0) == 0) {
> -             /*
> -              * According to the design team's requirement on i.MX6UL,
> -              * the PMIC_STBY_REQ PAD should be configured as open
> -              * drain 100K (0x0000b8a0).
> -              * Only exists on TO1.0
> -              */
> -             writel(0x0000b8a0, IOMUXC_BASE_ADDR + 0x29c);
> +     if (is_mx6ul()) {
> +             if (is_soc_rev(CHIP_REV_1_0) == 0) {
> +                     /*
> +                      * According to the design team's requirement on
> +                      * i.MX6UL,the PMIC_STBY_REQ PAD should be configured
> +                      * as open drain 100K (0x0000b8a0).
> +                      * Only exists on TO1.0
> +                      */
> +                     writel(0x0000b8a0, IOMUXC_BASE_ADDR + 0x29c);
> +             } else {
> +                     /*
> +                      * From TO1.1, SNVS adds internal pull up control
> +                      * for POR_B, the register filed is GPBIT[1:0],
> +                      * after system boot up, it can be set to 2b'01
> +                      * to disable internal pull up.It can save about
> +                      * 30uA power in SNVS mode.
> +                      */
> +                     writel((readl(MX6UL_SNVS_LP_BASE_ADDR + 0x10) &
> +                            (~0x1400)) | 0x400,
> +                            MX6UL_SNVS_LP_BASE_ADDR + 0x10);
> +             }
>       }
>  
>       if (is_mx6ull()) {
> 

Applied to u-boot-imx, thanks !

Best regards,
Stefano Babic


-- 
=====================================================================
DENX Software Engineering GmbH,      Managing Director: Wolfgang Denk
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: +49-8142-66989-53 Fax: +49-8142-66989-80 Email: sba...@denx.de
=====================================================================
_______________________________________________
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot

Reply via email to