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.
Solved! Go to Solution.
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
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!
Register address is same as on i.MX6. It is written in RM of i.MX7 on page 956.
Michal
HI,Mike Susen,
Thanks,I had seen the page 956, and found the LPCR Address:
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!
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
HI,Mike,
Thanks.