mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-12-08 12:45:26 -05:00
rk27xx: disable watchdog on startup
Some versions of nand loader enable watchdog which resets player just after reaching main menu. Change-Id: Ia008bccb40570ab102c0558cd2768f125ae826d7
This commit is contained in:
parent
93c462f9d5
commit
fa5d22584a
1 changed files with 3 additions and 0 deletions
|
|
@ -117,6 +117,9 @@ void fiq_dummy(void)
|
||||||
|
|
||||||
void system_init(void)
|
void system_init(void)
|
||||||
{
|
{
|
||||||
|
/* disable WDT just in case nand loader activated it */
|
||||||
|
WDTCON &= ~(1<<3);
|
||||||
|
|
||||||
#ifndef BOOTLOADER
|
#ifndef BOOTLOADER
|
||||||
/* SDRAM tweaks */
|
/* SDRAM tweaks */
|
||||||
MCSDR_MODE = (2<<4)|3; /* CAS=2, burst=8 */
|
MCSDR_MODE = (2<<4)|3; /* CAS=2, burst=8 */
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue