summaryrefslogtreecommitdiff
path: root/firmware/system.c
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/system.c')
-rw-r--r--firmware/system.c22
1 files changed, 18 insertions, 4 deletions
diff --git a/firmware/system.c b/firmware/system.c
index 5e8a7cd4d7..6ef35e8505 100644
--- a/firmware/system.c
+++ b/firmware/system.c
@@ -1106,14 +1106,28 @@ int system_memory_guard(int newmode)
1106} 1106}
1107#elif CONFIG_CPU==PP5020 1107#elif CONFIG_CPU==PP5020
1108 1108
1109/* TODO: Implement system.c */ 1109extern void TIMER1(void);
1110
1111void system_init(void) {
1112 1110
1111void irq(void)
1112{
1113 if (PP5020_CPU_INT_STAT & PP5020_TIMER1_MASK)
1114 TIMER1();
1113} 1115}
1114 1116
1115void system_reboot(void) { 1117void system_init(void)
1118{
1119 /* disable all irqs */
1120 outl(-1, 0x60001138);
1121 outl(-1, 0x60001128);
1122 outl(-1, 0x6000111c);
1123
1124 outl(-1, 0x60001038);
1125 outl(-1, 0x60001028);
1126 outl(-1, 0x6000101c);
1127}
1116 1128
1129void system_reboot(void)
1130{
1117} 1131}
1118 1132
1119int system_memory_guard(int newmode) 1133int system_memory_guard(int newmode)