summaryrefslogtreecommitdiff
path: root/firmware/export/config.h
diff options
context:
space:
mode:
authorThomas Jarosch <tomj@simonv.com>2011-02-08 20:05:25 +0000
committerThomas Jarosch <tomj@simonv.com>2011-02-08 20:05:25 +0000
commit5f037ac015e6d76d030a163753db5ff58cdff49b (patch)
treef5eb7dcdc0e0c3e373227e45061c1d99a14a0819 /firmware/export/config.h
parent4d129044390a087b6193b6ce63e035b2550b3ce4 (diff)
downloadrockbox-5f037ac015e6d76d030a163753db5ff58cdff49b.tar.gz
rockbox-5f037ac015e6d76d030a163753db5ff58cdff49b.zip
Initial maemo platform support
Adds Nokia N900, N810 and N800 support. Features: - Introduce maemo specific platform defines - Play audio in silent mode - Stop playback on incoming calls - Battery level readout - Bluetooth headset support - Save CPU by disabling screen updates if the display is off or the app doesn't have input focus - N900: GStreamer audio backend Kudos to kugel for the code review. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29248 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/export/config.h')
-rw-r--r--firmware/export/config.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/firmware/export/config.h b/firmware/export/config.h
index d59b259fb9..3063e1f06d 100644
--- a/firmware/export/config.h
+++ b/firmware/export/config.h
@@ -83,6 +83,9 @@
83#define PLATFORM_HOSTED (1<<1) 83#define PLATFORM_HOSTED (1<<1)
84#define PLATFORM_ANDROID (1<<2) 84#define PLATFORM_ANDROID (1<<2)
85#define PLATFORM_SDL (1<<3) 85#define PLATFORM_SDL (1<<3)
86#define PLATFORM_MAEMO4 (1<<4)
87#define PLATFORM_MAEMO5 (1<<5)
88#define PLATFORM_MAEMO (PLATFORM_MAEMO4|PLATFORM_MAEMO5)
86 89
87/* CONFIG_KEYPAD */ 90/* CONFIG_KEYPAD */
88#define PLAYER_PAD 1 91#define PLAYER_PAD 1
@@ -500,7 +503,12 @@ Lyre prototype 1 */
500#endif 503#endif
501 504
502/* define for all cpus from ARM family */ 505/* define for all cpus from ARM family */
503#if (CONFIG_CPU == IMX31L) 506#if (CONFIG_PLATFORM & PLATFORM_MAEMO5) && defined(MAEMO_ARM_BUILD)
507#define CPU_ARM
508#define ARM_ARCH 7 /* ARMv7 */
509
510#elif (CONFIG_CPU == IMX31L) \
511 || ((CONFIG_PLATFORM & PLATFORM_MAEMO4) && defined(MAEMO_ARM_BUILD))
504#define CPU_ARM 512#define CPU_ARM
505#define ARM_ARCH 6 /* ARMv6 */ 513#define ARM_ARCH 6 /* ARMv6 */
506 514