armv8/ls2085a: Add support for reset request

Add support for reset_cpu() by asserting RESET_REQ_B.

Signed-off-by: pankaj chauhan <pankaj.chauhan@freescale.com>
Signed-off-by: York Sun <yorksun@freescale.com>
This commit is contained in:
pankaj chauhan 2015-03-20 19:28:09 -07:00 committed by York Sun
parent 207774b213
commit 05d2e21be5
2 changed files with 11 additions and 7 deletions

View file

@ -419,3 +419,14 @@ int timer_init(void)
return 0;
}
void reset_cpu(ulong addr)
{
u32 __iomem *rstcr = (u32 *)CONFIG_SYS_FSL_RST_ADDR;
u32 val;
/* Raise RESET_REQ_B */
val = in_le32(rstcr);
val |= 0x02;
out_le32(rstcr, val);
}

View file

@ -55,13 +55,6 @@ int dram_init(void)
return 0;
}
/*
* Board specific reset that is system reset.
*/
void reset_cpu(ulong addr)
{
}
#if defined(CONFIG_ARCH_MISC_INIT)
int arch_misc_init(void)
{