uboot shutdown

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

uboot shutdown

Jump to solution
3,882 Views
xrztech_wen
Contributor II

Dear All,

     I'm working on imx7d,android M6.0.1. now I meet one problem ,can anyone help me ?

     By default,the uboot source code about imx7d didnot support the shutdown,so I want to add this feature.

     On the mx6sl,it had shutdown funtion:

#define SNVS_LPCR 0x38
static void mx6_snvs_poweroff(void)
{
    u32 value;
    void __iomem *mx6_snvs_base = MX6_IO_ADDRESS(MX6Q_SNVS_BASE_ADDR);

    value = readl(mx6_snvs_base + SNVS_LPCR);
    /* set TOP and DP_EN bit */
    writel(value | 0x60, mx6_snvs_base + SNVS_LPCR);
}

     so,I want to write one shutdown funtion follow this method,but I didnot know the register address in imx7d,can anyone tell me how to get the register address in uboot ?

Thanks very much!

BTW,

  1.the uboot version is 2015/04.

Labels (2)
Tags (1)
1 Solution
2,653 Views
mike_susen
NXP Employee
NXP Employee

Here you have complete definition tree

#define AIPS1_ARB_BASE_ADDR          0x02000000
#define ATZ1_BASE_ADDR               AIPS1_ARB_BASE_ADDR
#define AIPS1_OFF_BASE_ADDR          (ATZ1_BASE_ADDR + 0x80000)
#define MX6Q_SNVS_BASE_ADDR          (AIPS1_OFF_BASE_ADDR + 0x4C000)

Michal

View solution in original post

6 Replies
2,653 Views
mike_susen
NXP Employee
NXP Employee

Hi wen,

look at this document https://community.nxp.com/docs/DOC-93964 

Michal

0 Kudos
2,653 Views
xrztech_wen
Contributor II

Hi,Mike Susen,

   Thanks very much for your help.

   I had saw this document,but it was for i.MX6,and the uboot version is 2009.08.

   Now the u-boot version is 2015.04,and I cannot find this funtions in this version,so I think this patch is didnot fix me,can you help me to find another method?

  Thanks very much!

0 Kudos
2,653 Views
mike_susen
NXP Employee
NXP Employee

Register address is same as on i.MX6. It is written in RM of i.MX7 on page 956.

Michal

0 Kudos
2,653 Views
xrztech_wen
Contributor II

 HI,Mike Susen,

     Thanks,I had seen the page 956, and found the LPCR Address:

     QQ图片20161103095609.png

     but, I want to know the SNVS base Address,like "MX6Q_SNVS_BASE_ADDR",I want to add one define like this:

          #define MX7D_SNVS_BASE_ADDR  0xXXXX

    Then,I can use this address to poweroff,so can you tell me where to find this address?

    Thanks very much!

0 Kudos
2,654 Views
mike_susen
NXP Employee
NXP Employee

Here you have complete definition tree

#define AIPS1_ARB_BASE_ADDR          0x02000000
#define ATZ1_BASE_ADDR               AIPS1_ARB_BASE_ADDR
#define AIPS1_OFF_BASE_ADDR          (ATZ1_BASE_ADDR + 0x80000)
#define MX6Q_SNVS_BASE_ADDR          (AIPS1_OFF_BASE_ADDR + 0x4C000)

Michal

2,653 Views
xrztech_wen
Contributor II

 HI,Mike,

      Thanks.

0 Kudos