summaryrefslogtreecommitdiff
path: root/firmware/export
diff options
context:
space:
mode:
authorDaniel Ankers <dan@weirdo.org.uk>2006-11-22 00:41:30 +0000
committerDaniel Ankers <dan@weirdo.org.uk>2006-11-22 00:41:30 +0000
commit242cbd5cd73542c79020a4ce9a8e83ee0391bc72 (patch)
treea1a66ed8d4eb65db38daedfe701138aa0bde726d /firmware/export
parent336cb6898ef55ea6480a0b5547d30bb5029c79ef (diff)
downloadrockbox-242cbd5cd73542c79020a4ce9a8e83ee0391bc72.zip
rockbox-242cbd5cd73542c79020a4ce9a8e83ee0391bc72.tar.gz
rockbox-242cbd5cd73542c79020a4ce9a8e83ee0391bc72.tar.bz2
rockbox-242cbd5cd73542c79020a4ce9a8e83ee0391bc72.tar.xz
Change if CONFIG_CPU==PP50XX to ifdef CPU_PP where appropriate
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11569 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/export')
-rw-r--r--firmware/export/config.h3
-rw-r--r--firmware/export/kernel.h2
-rw-r--r--firmware/export/timer.h2
3 files changed, 3 insertions, 4 deletions
diff --git a/firmware/export/config.h b/firmware/export/config.h
index 74c7e92..95e3399 100644
--- a/firmware/export/config.h
+++ b/firmware/export/config.h
@@ -275,8 +275,7 @@
#if !defined(SIMULATOR) && /* Not for simulators */ \
(((CONFIG_CPU == SH7034) && !defined(PLUGIN)) || /* SH1 archos: core only */ \
defined(CPU_COLDFIRE) || /* Coldfire: core, plugins, codecs */ \
- (CONFIG_CPU == PP5020) || /* iPod and H10: core, plugins, codecs */ \
- (CONFIG_CPU == PP5002) || /* iPod: core, plugins, codecs */ \
+ defined(CPU_PP) || /* PortalPlayer: core, plugins, codecs */ \
(CONFIG_CPU == PNX0101))
#define ICODE_ATTR __attribute__ ((section(".icode")))
#define ICONST_ATTR __attribute__ ((section(".irodata")))
diff --git a/firmware/export/kernel.h b/firmware/export/kernel.h
index 32c052a..2474c6d 100644
--- a/firmware/export/kernel.h
+++ b/firmware/export/kernel.h
@@ -70,7 +70,7 @@ struct mutex
};
/* global tick variable */
-#if ((CONFIG_CPU == PP5002) || (CONFIG_CPU == PP5020)) && defined(BOOTLOADER)
+#if defined(CPU_PP) && defined(BOOTLOADER)
/* We don't enable interrupts in the iPod bootloader, so we need to fake
the current_tick variable */
#define current_tick (signed)(USEC_TIMER/10000)
diff --git a/firmware/export/timer.h b/firmware/export/timer.h
index 2fb7c64..f32a8a1 100644
--- a/firmware/export/timer.h
+++ b/firmware/export/timer.h
@@ -26,7 +26,7 @@
#ifndef SIMULATOR
-#if CONFIG_CPU == PP5020 || CONFIG_CPU == PP5002
+#if defined(CPU_PP)
/* Portalplayer chips use a microsecond timer. */
#define TIMER_FREQ 1000000
#elif defined(CPU_COLDFIRE)