summaryrefslogtreecommitdiff
path: root/firmware/target/arm/system-pp502x.c
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/target/arm/system-pp502x.c')
-rw-r--r--firmware/target/arm/system-pp502x.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/firmware/target/arm/system-pp502x.c b/firmware/target/arm/system-pp502x.c
index 12ae7a9d3b..4735cd8d83 100644
--- a/firmware/target/arm/system-pp502x.c
+++ b/firmware/target/arm/system-pp502x.c
@@ -126,6 +126,10 @@ void __attribute__((interrupt("IRQ"))) irq_handler(void)
}
/* end MROBE_100 */
#elif defined(PHILIPS_SA9200)
+ else if (CPU_HI_INT_STAT & GPIO0_MASK) {
+ if (GPIOD_INT_STAT & 0x02)
+ button_int();
+ }
else if (CPU_HI_INT_STAT & GPIO1_MASK) {
if (GPIOF_INT_STAT & 0x80)
usb_insert_int();
@@ -421,6 +425,12 @@ void system_init(void)
DEV_RS2 = 0xffffffff;
DEV_RS = 0x00000000;
DEV_RS2 = 0x00000000;
+#elif defined(PHILIPS_SA9200)
+ /* reset all allowed devices */
+ DEV_RS = 0x3ffffef8;
+ DEV_RS2 = 0xffffffff;
+ DEV_RS = 0x00000000;
+ DEV_RS2 = 0x00000000;
#elif defined(IPOD_4G)
/* set minimum startup configuration */
DEV_EN = 0xc2020124;