summaryrefslogtreecommitdiff
path: root/firmware/export
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/export')
-rw-r--r--firmware/export/config-view.h207
-rw-r--r--firmware/export/config.h11
-rw-r--r--firmware/export/cpu.h3
-rw-r--r--firmware/export/pp6100.h31
4 files changed, 249 insertions, 3 deletions
diff --git a/firmware/export/config-view.h b/firmware/export/config-view.h
new file mode 100644
index 0000000000..81706844d2
--- /dev/null
+++ b/firmware/export/config-view.h
@@ -0,0 +1,207 @@
1/*
2 * This config file is for the Sandisk Sansa View
3 */
4#define TARGET_TREE /* this target is using the target tree system */
5
6/* For Rolo and boot loader */
7#define MODEL_NUMBER 63
8#define MODEL_NAME "Sandisk View"
9
10#define HW_SAMPR_CAPS (SAMPR_CAP_44)
11
12/* define this if you have recording possibility */
13/* #define HAVE_RECORDING */
14
15#define REC_SAMPR_CAPS (SAMPR_CAP_22)
16#define REC_FREQ_DEFAULT REC_FREQ_22 /* Default is not 44.1kHz */
17#define REC_SAMPR_DEFAULT SAMPR_22
18
19/* Define bitmask of input sources - recordable bitmask can be defined
20 explicitly if different */
21#define INPUT_SRC_CAPS (SRC_CAP_MIC | SRC_CAP_FMRADIO)
22
23/* define this if you have a bitmap LCD display */
24#define HAVE_LCD_BITMAP
25
26/* define this if you have a colour LCD */
27#define HAVE_LCD_COLOR
28
29/* define this if you want album art for this target */
30#define HAVE_ALBUMART
31
32/* define this to enable bitmap scaling */
33#define HAVE_BMP_SCALING
34
35/* define this to enable JPEG decoding */
36#define HAVE_JPEG
37
38/* define this if you have a light associated with the buttons */
39#define HAVE_BUTTON_LIGHT
40
41/* define this if you have access to the quickscreen */
42#define HAVE_QUICKSCREEN
43
44/* define this if you have access to the pitchscreen */
45#define HAVE_PITCHSCREEN
46
47/* define this if you would like tagcache to build on this target */
48#define HAVE_TAGCACHE
49
50/* LCD dimensions */
51#define LCD_WIDTH 240
52#define LCD_HEIGHT 320
53#define LCD_DEPTH 16 /* 65536 colours */
54#define LCD_PIXELFORMAT RGB565 /* rgb565 */
55
56#ifndef BOOTLOADER
57/* define this if you have LCD enable function */
58/* #define HAVE_LCD_ENABLE */
59
60/* Define this if your LCD can be put to sleep. HAVE_LCD_ENABLE
61 should be defined as well. */
62/* #define HAVE_LCD_SLEEP */
63/* #define HAVE_LCD_SLEEP_SETTING */
64#endif
65
66/* define this if you can flip your LCD */
67#define HAVE_LCD_FLIP
68
69/* define this if you can invert the colours on your LCD */
70#define HAVE_LCD_INVERT
71
72/* #define IRAM_LCDFRAMEBUFFER IDATA_ATTR *//* put the lcd frame buffer in IRAM */
73
74/* The only difference is that the power/hold is on the left instead of right on Fuze */
75#define CONFIG_KEYPAD SANSA_FUZE_PAD
76
77/* Define this if you do software codec */
78#define CONFIG_CODEC SWCODEC
79/* There is no hardware tone control */
80#define HAVE_SW_TONE_CONTROLS
81
82/* define this if you have a real-time clock */
83#ifndef BOOTLOADER
84/* #define CONFIG_RTC RTC_ */
85#endif
86
87/* Define this if you have a software controlled poweroff */
88#define HAVE_SW_POWEROFF
89
90/* Required for MicroSD cards */
91#define HAVE_FAT16SUPPORT
92
93/* The number of bytes reserved for loadable codecs */
94#define CODEC_SIZE 0x100000
95
96/* The number of bytes reserved for loadable plugins */
97#define PLUGIN_BUFFER_SIZE 0x80000
98
99#define AB_REPEAT_ENABLE 1
100
101/* Define this for LCD backlight available */
102#define HAVE_BACKLIGHT
103/* #define HAVE_BACKLIGHT_BRIGHTNESS */
104
105/* define this if the unit uses a scrollwheel for navigation */
106#define HAVE_SCROLLWHEEL
107/* define to activate advanced wheel acceleration code */
108#define HAVE_WHEEL_ACCELERATION
109/* define from which rotation speed [degree/sec] on the acceleration starts */
110#define WHEEL_ACCEL_START 540
111/* define type of acceleration (1 = ^2, 2 = ^3, 3 = ^4) */
112#define WHEEL_ACCELERATION 1
113
114/* define this if you have a flash memory storage */
115#define HAVE_FLASH_STORAGE
116
117/* define this if the flash memory uses the SecureDigital Memory Card protocol */
118#define CONFIG_STORAGE STORAGE_SD
119
120#define BATTERY_CAPACITY_DEFAULT 750 /* default battery capacity */
121#define BATTERY_CAPACITY_MIN 750 /* min. capacity selectable */
122#define BATTERY_CAPACITY_MAX 750 /* max. capacity selectable */
123#define BATTERY_CAPACITY_INC 0 /* capacity increment */
124#define BATTERY_TYPES_COUNT 1 /* only one type */
125
126/* Charging implemented in a target-specific algorithm */
127#define CONFIG_CHARGING CHARGING_SIMPLE
128#define HAVE_POWEROFF_WHILE_CHARGING
129
130/* define current usage levels */
131#define CURRENT_NORMAL 30 /* Toni's measurements in Nov 2008 */
132#define CURRENT_BACKLIGHT 40 /* Screen is about 20, blue LEDs are another 20, so 40 if both */
133#define CURRENT_RECORD 30 /* flash player, so this is just unboosted current*/
134
135/* define this if the unit can be powered or charged via USB */
136#define HAVE_USB_POWER
137
138/** Non-simulator section **/
139#ifndef SIMULATOR
140
141/* Define this if you have a PortalPlayer PP5024 */
142#define CONFIG_CPU PP6100
143
144/* Define this if you want to use the PP5024 i2c interface */
145#define CONFIG_I2C I2C_PP5024
146
147/* define this if the hardware can be powered off while charging */
148/* Sansa can't be powered off while charging */
149/* #define HAVE_POWEROFF_WHILE_CHARGING */
150
151/* The start address index for ROM builds */
152#define ROM_START 0x00000000
153
154/* Define this to the CPU frequency */
155#define CPU_FREQ 250000000
156
157/* Type of LCD TODO: hopefully the same as the x5 but check this*/
158#define CONFIG_LCD LCD_VIEW
159
160/* Offset ( in the firmware file's header ) to the file CRC and data. These are
161 only used when loading the old format rockbox.e200 file
162 Required for bootloader/common.c to compile */
163#define FIRMWARE_OFFSET_FILE_CRC 0x0
164#define FIRMWARE_OFFSET_FILE_DATA 0x8
165
166#ifndef BOOTLOADER
167#define HAVE_MULTIVOLUME
168#define HAVE_HOTSWAP
169#endif
170
171/* USB On-the-go */
172/* #define CONFIG_USBOTG USBOTG_ARC */
173
174/* enable these for the experimental usb stack */
175#define HAVE_USBSTACK
176#define USE_ROCKBOX_USB
177#define USB_VENDOR_ID 0x0781
178#define USB_PRODUCT_ID 0x74b1
179
180/* Virtual LED (icon) */
181#define CONFIG_LED LED_VIRTUAL
182
183/* Define this if you have adjustable CPU frequency */
184/* #define HAVE_ADJUSTABLE_CPU_FREQ */
185
186#define MI4_FORMAT
187#define BOOTFILE_EXT "mi4"
188#define BOOTFILE "rockbox." BOOTFILE_EXT
189#define BOOTDIR "/.rockbox"
190
191#define ICODE_ATTR_TREMOR_NOT_MDCT
192
193#define INCLUDE_TIMEOUT_API
194
195#endif /* SIMULATOR */
196
197/** Port-specific settings **/
198
199/* Main LCD backlight brightness range and defaults */
200#define MIN_BRIGHTNESS_SETTING 1
201#define MAX_BRIGHTNESS_SETTING 12
202#define DEFAULT_BRIGHTNESS_SETTING 6
203
204/* Default recording levels */
205#define DEFAULT_REC_MIC_GAIN 23
206#define DEFAULT_REC_LEFT_GAIN 23
207#define DEFAULT_REC_RIGHT_GAIN 23
diff --git a/firmware/export/config.h b/firmware/export/config.h
index 22d7090f96..aa3f4f8d40 100644
--- a/firmware/export/config.h
+++ b/firmware/export/config.h
@@ -57,6 +57,7 @@
57#define PP5020 5020 57#define PP5020 5020
58#define PP5022 5022 58#define PP5022 5022
59#define PP5024 5024 59#define PP5024 5024
60#define PP6100 6100
60#define PNX0101 101 61#define PNX0101 101
61#define S3C2440 2440 62#define S3C2440 2440
62#define DSC25 25 63#define DSC25 25
@@ -188,7 +189,8 @@
188#define LCD_FUZE 32 /* as used by the Sansa Fuze */ 189#define LCD_FUZE 32 /* as used by the Sansa Fuze */
189#define LCD_LYRE_PROTO1 33 /* as used by the Lyre */ 190#define LCD_LYRE_PROTO1 33 /* as used by the Lyre */
190#define LCD_YH925 34 /* as used by Samsung YH-925 (similar to the H10 20GB) */ 191#define LCD_YH925 34 /* as used by Samsung YH-925 (similar to the H10 20GB) */
191 192#define LCD_VIEW 35 /* as used by the Sansa View */
193
192/* LCD_PIXELFORMAT */ 194/* LCD_PIXELFORMAT */
193#define HORIZONTAL_PACKING 1 195#define HORIZONTAL_PACKING 1
194#define VERTICAL_PACKING 2 196#define VERTICAL_PACKING 2
@@ -368,6 +370,8 @@ Lyre prototype 1*/
368#include "config-fuze.h" 370#include "config-fuze.h"
369#elif defined(SANSA_C200V2) 371#elif defined(SANSA_C200V2)
370#include "config-c200v2.h" 372#include "config-c200v2.h"
373#elif defined(SANSA_VIEW)
374#include "config-view.h"
371#elif defined(LYRE_PROTO1) 375#elif defined(LYRE_PROTO1)
372#include "config-lyre_proto1.h" 376#include "config-lyre_proto1.h"
373#elif defined(SAMSUNG_YH820) 377#elif defined(SAMSUNG_YH820)
@@ -576,7 +580,8 @@ Lyre prototype 1*/
576/* define for all cpus from PP family */ 580/* define for all cpus from PP family */
577#if (CONFIG_CPU == PP5002) 581#if (CONFIG_CPU == PP5002)
578#define CPU_PP 582#define CPU_PP
579#elif (CONFIG_CPU == PP5020) || (CONFIG_CPU == PP5022) || (CONFIG_CPU == PP5024) 583#elif (CONFIG_CPU == PP5020) || (CONFIG_CPU == PP5022) \
584 || (CONFIG_CPU == PP5024) || (CONFIG_CPU == PP6100)
580#define CPU_PP 585#define CPU_PP
581#define CPU_PP502x 586#define CPU_PP502x
582#endif 587#endif
@@ -682,7 +687,7 @@ Lyre prototype 1*/
682 687
683/* Change this if you want to build a single-core firmware for a multicore 688/* Change this if you want to build a single-core firmware for a multicore
684 * target for debugging */ 689 * target for debugging */
685#if defined(BOOTLOADER) 690#if defined(BOOTLOADER) || (CONFIG_CPU == PP6100)
686#define FORCE_SINGLE_CORE 691#define FORCE_SINGLE_CORE
687#endif 692#endif
688 693
diff --git a/firmware/export/cpu.h b/firmware/export/cpu.h
index 4623f57004..6041b388b4 100644
--- a/firmware/export/cpu.h
+++ b/firmware/export/cpu.h
@@ -38,6 +38,9 @@
38#if CONFIG_CPU == PP5024 38#if CONFIG_CPU == PP5024
39#include "pp5024.h" 39#include "pp5024.h"
40#endif 40#endif
41#if CONFIG_CPU == PP6100
42#include "pp6100.h"
43#endif
41#if CONFIG_CPU == PNX0101 44#if CONFIG_CPU == PNX0101
42#include "pnx0101.h" 45#include "pnx0101.h"
43#endif 46#endif
diff --git a/firmware/export/pp6100.h b/firmware/export/pp6100.h
new file mode 100644
index 0000000000..0894affdd2
--- /dev/null
+++ b/firmware/export/pp6100.h
@@ -0,0 +1,31 @@
1#ifndef __PP6100_H__
2#define __PP6100_H__
3/***************************************************************************
4 * __________ __ ___.
5 * Open \______ \ ____ ____ | | _\_ |__ _______ ___
6 * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
7 * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
8 * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
9 * \/ \/ \/ \/ \/
10 * $Id$
11 *
12 * Copyright (C) 2009 by Robert Keevil
13 *
14 * This program is free software; you can redistribute it and/or
15 * modify it under the terms of the GNU General Public License
16 * as published by the Free Software Foundation; either version 2
17 * of the License, or (at your option) any later version.
18 *
19 * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
20 * KIND, either express or implied.
21 *
22 ****************************************************************************/
23
24/* We believe this is quite similar to the 5020 and for now we just use that
25 completely and redefine any minor differences */
26#include "pp5020.h"
27
28#undef DRAM_START
29#define DRAM_START 0x10f00000
30
31#endif