summaryrefslogtreecommitdiff
path: root/firmware/target/arm/system-pp502x.c
diff options
context:
space:
mode:
authorMark Arigo <markarigo@gmail.com>2009-03-14 02:47:14 +0000
committerMark Arigo <markarigo@gmail.com>2009-03-14 02:47:14 +0000
commitb642129be493309179ddc0a659301667613c188e (patch)
treede8ae15454856790f59b1518156de646fb033ae4 /firmware/target/arm/system-pp502x.c
parentf8877bf42d4f88c5ebb92a52bd09ed59ef696514 (diff)
Philips SA9200 fixes: (1) boost in the bootloader like the e200 and c200, (2) use the right GPIOs and inits in the SD driver, and (3) add charger detection.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@20323 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/target/arm/system-pp502x.c')
-rw-r--r--firmware/target/arm/system-pp502x.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/firmware/target/arm/system-pp502x.c b/firmware/target/arm/system-pp502x.c
index 05d418bd88..5fb6b20c4c 100644
--- a/firmware/target/arm/system-pp502x.c
+++ b/firmware/target/arm/system-pp502x.c
@@ -209,7 +209,8 @@ static void init_cache(void)
#endif /* !BOOTLOADER */
/* We need this for Sansas since we boost the cpu in their bootloader */
-#if !defined(BOOTLOADER) || defined(SANSA_E200) || defined(SANSA_C200)
+#if !defined(BOOTLOADER) || defined(SANSA_E200) || defined(SANSA_C200) || \
+ defined(PHILIPS_SA9200)
void scale_suspend_core(bool suspend) ICODE_ATTR;
void scale_suspend_core(bool suspend)
{
@@ -353,7 +354,7 @@ static void pp_set_cpu_frequency(long frequency)
corelock_unlock(&cpufreq_cl);
#endif
}
-#endif /* !BOOTLOADER || SANSA_E200 || SANSA_C200 */
+#endif /* !BOOTLOADER || SANSA_E200 || SANSA_C200 || PHILIPS_SA9200 */
void system_init(void)
{
@@ -485,7 +486,7 @@ void system_init(void)
#else /* BOOTLOADER */
if (CURRENT_CORE == CPU)
{
-#if defined(SANSA_C200) || defined (SANSA_E200)
+#if defined(SANSA_C200) || defined(SANSA_E200) || defined(PHILIPS_SA9200)
pp_set_cpu_frequency(CPUFREQ_MAX);
#endif
}