summaryrefslogtreecommitdiff
path: root/firmware/export
diff options
context:
space:
mode:
authorThomas Jarosch <tomj@simonv.com>2011-02-27 23:42:37 +0000
committerThomas Jarosch <tomj@simonv.com>2011-02-27 23:42:37 +0000
commit6e9e6a7571275f1942630e0383d3fdf912178c8d (patch)
tree74545da1553abed88ef536f0281ab1acbee96576 /firmware/export
parent87f7dcf38ed521fcea5561e2a0b7954617f96e66 (diff)
downloadrockbox-6e9e6a7571275f1942630e0383d3fdf912178c8d.tar.gz
rockbox-6e9e6a7571275f1942630e0383d3fdf912178c8d.zip
RaaA: Add initial Pandora support
More information: www.openpandora.org Possible things to implement: - Special button mappings - Battery monitoring - ALSA audio backend - Automate creation of "pnd" (=binary) file git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29451 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/export')
-rw-r--r--firmware/export/config.h6
-rw-r--r--firmware/export/config/pandora.h96
-rw-r--r--firmware/export/debug.h2
3 files changed, 102 insertions, 2 deletions
diff --git a/firmware/export/config.h b/firmware/export/config.h
index 1783cc137d..d00958a71d 100644
--- a/firmware/export/config.h
+++ b/firmware/export/config.h
@@ -86,6 +86,7 @@
86#define PLATFORM_MAEMO4 (1<<4) 86#define PLATFORM_MAEMO4 (1<<4)
87#define PLATFORM_MAEMO5 (1<<5) 87#define PLATFORM_MAEMO5 (1<<5)
88#define PLATFORM_MAEMO (PLATFORM_MAEMO4|PLATFORM_MAEMO5) 88#define PLATFORM_MAEMO (PLATFORM_MAEMO4|PLATFORM_MAEMO5)
89#define PLATFORM_PANDORA (1<<6)
89 90
90/* CONFIG_KEYPAD */ 91/* CONFIG_KEYPAD */
91#define PLAYER_PAD 1 92#define PLAYER_PAD 1
@@ -448,6 +449,8 @@ Lyre prototype 1 */
448#include "config/nokian8xx.h" 449#include "config/nokian8xx.h"
449#elif defined(NOKIAN900) 450#elif defined(NOKIAN900)
450#include "config/nokian900.h" 451#include "config/nokian900.h"
452#elif defined(PANDORA)
453#include "config/pandora.h"
451#else 454#else
452/* no known platform */ 455/* no known platform */
453#endif 456#endif
@@ -511,7 +514,8 @@ Lyre prototype 1 */
511#endif 514#endif
512 515
513/* define for all cpus from ARM family */ 516/* define for all cpus from ARM family */
514#if (CONFIG_PLATFORM & PLATFORM_MAEMO5) && defined(MAEMO_ARM_BUILD) 517#if ((CONFIG_PLATFORM & PLATFORM_MAEMO5) && defined(MAEMO_ARM_BUILD)) \
518 || (CONFIG_PLATFORM & PLATFORM_PANDORA)
515#define CPU_ARM 519#define CPU_ARM
516#define ARM_ARCH 7 /* ARMv7 */ 520#define ARM_ARCH 7 /* ARMv7 */
517 521
diff --git a/firmware/export/config/pandora.h b/firmware/export/config/pandora.h
new file mode 100644
index 0000000000..81dd75b975
--- /dev/null
+++ b/firmware/export/config/pandora.h
@@ -0,0 +1,96 @@
1/*
2 * This config file is for Rockbox as an application on the Nokia N8xx
3 */
4#define TARGET_TREE /* this target is using the target tree system */
5
6/* We don't run on hardware directly */
7#define CONFIG_PLATFORM (PLATFORM_HOSTED|PLATFORM_PANDORA)
8
9/* For Rolo and boot loader */
10#define MODEL_NUMBER 100
11
12#define MODEL_NAME "Rockbox"
13
14#define USB_NONE
15
16/* define this if you have a bitmap LCD display */
17#define HAVE_LCD_BITMAP
18
19/* define this if you have a colour LCD */
20#define HAVE_LCD_COLOR
21
22/* define this if you want album art for this target */
23#define HAVE_ALBUMART
24
25/* define this to enable bitmap scaling */
26#define HAVE_BMP_SCALING
27
28/* define this to enable JPEG decoding */
29#define HAVE_JPEG
30
31/* define this if you have access to the quickscreen */
32#define HAVE_QUICKSCREEN
33/* define this if you have access to the pitchscreen */
34#define HAVE_PITCHSCREEN
35
36/* define this if you would like tagcache to build on this target */
37#define HAVE_TAGCACHE
38
39/* LCD dimensions */
40#define LCD_WIDTH 800
41#define LCD_HEIGHT 480
42#define LCD_DEPTH 16
43#define LCD_PIXELFORMAT 565
44
45/* define this to indicate your device's keypad */
46#define HAVE_TOUCHSCREEN
47#define HAVE_BUTTON_DATA
48
49/* define this if you have RTC RAM available for settings */
50//#define HAVE_RTC_RAM
51
52/* The number of bytes reserved for loadable codecs */
53#define CODEC_SIZE 0x100000
54
55/* The number of bytes reserved for loadable plugins */
56#define PLUGIN_BUFFER_SIZE 0x80000
57
58#define AB_REPEAT_ENABLE
59
60/* Define this if you do software codec */
61#define CONFIG_CODEC SWCODEC
62
63/* Work around debug macro expansion of strncmp in scratchbox */
64#define _HAVE_STRING_ARCH_strncmp
65
66#define HAVE_SCROLLWHEEL
67#define CONFIG_KEYPAD SDL_PAD
68
69/* Use SDL audio/pcm in a SDL app build */
70#define HAVE_SDL
71#define HAVE_SDL_AUDIO
72
73#define HAVE_SW_TONE_CONTROLS
74
75/* Define current usage levels. */
76#define CURRENT_NORMAL 88 /* 18 hours from a 1600 mAh battery */
77#define CURRENT_BACKLIGHT 30 /* TBD */
78#define CURRENT_RECORD 0 /* no recording yet */
79
80/* Define this to the CPU frequency */
81/*
82#define CPU_FREQ 48000000
83*/
84
85/* Offset ( in the firmware file's header ) to the file CRC */
86#define FIRMWARE_OFFSET_FILE_CRC 0
87
88/* Offset ( in the firmware file's header ) to the real data */
89#define FIRMWARE_OFFSET_FILE_DATA 8
90
91#define CONFIG_LCD LCD_COWOND2
92
93/* Define this if a programmable hotkey is mapped */
94//#define HAVE_HOTKEY
95
96#define BOOTDIR "/.rockbox"
diff --git a/firmware/export/debug.h b/firmware/export/debug.h
index 99cdf42c05..b5458af487 100644
--- a/firmware/export/debug.h
+++ b/firmware/export/debug.h
@@ -34,7 +34,7 @@ extern void ldebugf(const char* file, int line, const char *fmt, ...)
34 34
35/* */ 35/* */
36#if defined(SIMULATOR) && !defined(__PCTOOL__) \ 36#if defined(SIMULATOR) && !defined(__PCTOOL__) \
37 || ((CONFIG_PLATFORM & (PLATFORM_ANDROID|PLATFORM_MAEMO)) && defined(DEBUG)) 37 || ((CONFIG_PLATFORM & (PLATFORM_ANDROID|PLATFORM_MAEMO|PLATFORM_PANDORA)) && defined(DEBUG))
38#define DEBUGF debugf 38#define DEBUGF debugf
39#define LDEBUGF(...) ldebugf(__FILE__, __LINE__, __VA_ARGS__) 39#define LDEBUGF(...) ldebugf(__FILE__, __LINE__, __VA_ARGS__)
40#else 40#else