mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-12-09 13:15:18 -05:00
Bring the iPod Nano 2G shutdown FTL panics back.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23126 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
461903d80e
commit
6b17295926
2 changed files with 16 additions and 3 deletions
|
|
@ -23,7 +23,7 @@
|
|||
#include "system.h"
|
||||
#include "panic.h"
|
||||
#ifdef IPOD_NANO2G
|
||||
#include "ftl-target.h"
|
||||
#include "storage.h"
|
||||
#endif
|
||||
|
||||
#define default_interrupt(name) \
|
||||
|
|
@ -150,6 +150,15 @@ void fiq_handler(void)
|
|||
}
|
||||
|
||||
|
||||
static void gpio_init(void)
|
||||
{
|
||||
}
|
||||
|
||||
static void clock_init(void)
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
void system_init(void)
|
||||
{
|
||||
}
|
||||
|
|
@ -157,7 +166,9 @@ void system_init(void)
|
|||
void system_reboot(void)
|
||||
{
|
||||
#ifdef IPOD_NANO2G
|
||||
if (ftl_sync() != 0) panicf("Failed to unmount flash!");
|
||||
#ifdef HAVE_STORAGE_FLUSH
|
||||
storage_flush();
|
||||
#endif
|
||||
|
||||
/* Reset the SoC */
|
||||
asm volatile("msr CPSR_c, #0xd3 \n"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue