Hi
How can I reset the Secure DRA829V? The following code works for Non-Secure Boot board but does not work for Secure boot board.
#define WKUP_CTRL_MMR_BASEADDR 0x43000000
#define WKUP_CTRL_MMR_SIZE 0x0001d010
void test_reset()
{
uint32_t val;
uintptr_t pReg = mmap_device_io(WKUP_CTRL_MMR_SIZE, WKUP_CTRL_MMR_BASEADDR);
if(pReg == MAP_DEVICE_FAILED)
{
perror("mmap_device_io");
return ;
}
out32(pReg + 0x19008, 0x68EF3490);
out32(pReg + 0x1900c, 0xD172BC5A);
out32(pReg + 0x1817C, 0x60000);
out32(pReg + 0x19008, 0);
out32(pReg + 0x1900c, 0);
munmap_device_io(pReg, WKUP_CTRL_MMR_SIZE);
}