summaryrefslogtreecommitdiff
path: root/firmware/target
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/target')
-rw-r--r--firmware/target/arm/tcc780x/system-tcc780x.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/firmware/target/arm/tcc780x/system-tcc780x.c b/firmware/target/arm/tcc780x/system-tcc780x.c
index 54cd3ffcb6..7e07ed7171 100644
--- a/firmware/target/arm/tcc780x/system-tcc780x.c
+++ b/firmware/target/arm/tcc780x/system-tcc780x.c
@@ -275,7 +275,14 @@ void system_init(void)
void system_reboot(void)
{
- SWRESET = -1;
+ disable_interrupt(IRQ_FIQ_DISABLED);
+
+#ifdef HAVE_ADJUSTABLE_CPU_FREQ
+ set_cpu_frequency(CPUFREQ_DEFAULT);
+#endif
+
+ /* TODO: implement reboot (eg. jump to boot ROM?) */
+ while (1);
}
int system_memory_guard(int newmode)