diff options
Diffstat (limited to 'firmware/system.c')
-rw-r--r-- | firmware/system.c | 22 |
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 */ | 1109 | extern void TIMER1(void); |
1110 | |||
1111 | void system_init(void) { | ||
1112 | 1110 | ||
1111 | void irq(void) | ||
1112 | { | ||
1113 | if (PP5020_CPU_INT_STAT & PP5020_TIMER1_MASK) | ||
1114 | TIMER1(); | ||
1113 | } | 1115 | } |
1114 | 1116 | ||
1115 | void system_reboot(void) { | 1117 | void 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 | ||
1129 | void system_reboot(void) | ||
1130 | { | ||
1117 | } | 1131 | } |
1118 | 1132 | ||
1119 | int system_memory_guard(int newmode) | 1133 | int system_memory_guard(int newmode) |