From df8f64d3a4d927a6880040c70ab2fee93f4c901c Mon Sep 17 00:00:00 2001 From: Mark Arigo Date: Fri, 19 Jun 2009 03:41:52 +0000 Subject: Philips SA9200: 1) reset all devices in system_init, 2) revert an earlier change in the sd driver, 3) properly detect the charger, 4) add lcd register defines. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21347 a1c6a512-1295-4272-9138-f99709370657 --- firmware/target/arm/system-pp502x.c | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'firmware/target/arm/system-pp502x.c') 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; -- cgit v1.2.3