forked from len0rd/rockbox
S5L8702: Read WDT_BASE from SoC definitions
Tested on ipod6g (normal + bootloader). No functional change, no binary size change, the only difference is using r3 instead of r1 for the WDT_BASE address value. Change-Id: I2ce2b7d987671cb4fcbbcdde574437b21a534da0
This commit is contained in:
parent
eb57d42879
commit
037172d5c2
1 changed files with 3 additions and 3 deletions
|
@ -247,9 +247,9 @@ void system_reboot(void)
|
||||||
{
|
{
|
||||||
/* Reset the SoC */
|
/* Reset the SoC */
|
||||||
asm volatile("msr CPSR_c, #0xd3 \n"
|
asm volatile("msr CPSR_c, #0xd3 \n"
|
||||||
"mov r0, #0x100000 \n"
|
"mov r0, #0x100000 \n");
|
||||||
"mov r1, #0x3c800000 \n"
|
|
||||||
"str r0, [r1] \n");
|
asm volatile("str r0, [%0] \n" : : "r"(WDT_BASE));
|
||||||
|
|
||||||
/* Wait for reboot to kick in */
|
/* Wait for reboot to kick in */
|
||||||
while(1);
|
while(1);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue