summaryrefslogtreecommitdiff
path: root/firmware/export/config-fuze.h
diff options
context:
space:
mode:
authorDave Chapman <dave@dchapman.com>2008-11-01 10:29:23 +0000
committerDave Chapman <dave@dchapman.com>2008-11-01 10:29:23 +0000
commit74c75e5c047c772a5539554156f079d2a003fe4a (patch)
tree356c73c00c985c534864a4c9a6e8d3414b2a30fd /firmware/export/config-fuze.h
parent88806c0b1b3900b2cdcd8c28901bece2b05d4610 (diff)
downloadrockbox-74c75e5c047c772a5539554156f079d2a003fe4a.tar.gz
rockbox-74c75e5c047c772a5539554156f079d2a003fe4a.zip
Add Sansa Fuze to the build system, including a first (untested) attempt at an LCD driver. Lots of things are just copied from the e200v2, so this code needs testing, and then drivers properly merged if they prove to be the same.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@18957 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/export/config-fuze.h')
-rw-r--r--firmware/export/config-fuze.h205
1 files changed, 205 insertions, 0 deletions
diff --git a/firmware/export/config-fuze.h b/firmware/export/config-fuze.h
new file mode 100644
index 0000000000..d9aac46a14
--- /dev/null
+++ b/firmware/export/config-fuze.h
@@ -0,0 +1,205 @@
1/*
2 * This config file is for the Sandisk Sansa Fuze
3 */
4#define TARGET_TREE /* this target is using the target tree system */
5
6/* For Rolo and boot loader */
7#define MODEL_NUMBER 43
8#define MODEL_NAME "Sandisk Sansa Fuze"
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 if you have a light associated with the buttons */
33#define HAVE_BUTTON_LIGHT
34
35/* define this if you have access to the quickscreen */
36#define HAVE_QUICKSCREEN
37
38/* define this if you have access to the pitchscreen */
39#define HAVE_PITCHSCREEN
40
41/* define this if you would like tagcache to build on this target */
42#define HAVE_TAGCACHE
43
44/* LCD dimensions */
45#define LCD_WIDTH 220
46#define LCD_HEIGHT 176
47#define LCD_DEPTH 16 /* 65536 colours */
48#define LCD_PIXELFORMAT RGB565 /* rgb565 */
49
50#ifndef BOOTLOADER
51/* define this if you have LCD enable function */
52#define HAVE_LCD_ENABLE
53
54/* Define this if your LCD can be put to sleep. HAVE_LCD_ENABLE
55 should be defined as well. */
56#define HAVE_LCD_SLEEP
57#define HAVE_LCD_SLEEP_SETTING
58#endif
59
60/* define this if you can flip your LCD */
61#define HAVE_LCD_FLIP
62
63/* define this if you can invert the colours on your LCD */
64#define HAVE_LCD_INVERT
65
66/* #define IRAM_LCDFRAMEBUFFER IDATA_ATTR *//* put the lcd frame buffer in IRAM */
67
68#define CONFIG_KEYPAD SANSA_FUZE_PAD
69
70/* Define this if you do software codec */
71#define CONFIG_CODEC SWCODEC
72
73/* There is no hardware tone control */
74#define HAVE_SW_TONE_CONTROLS
75
76/* We're working on the assumption that the AS3525 has something
77 similar to the AS3514 for audio codec etc */
78#define HAVE_AS3514
79
80/* define this if you have a real-time clock */
81#ifndef BOOTLOADER
82#define CONFIG_RTC RTC_AS3525
83#endif
84
85/* Define this if you have a software controlled poweroff */
86#define HAVE_SW_POWEROFF
87
88/* Some Sansa E200s seem to be FAT16 formatted */
89#define HAVE_FAT16SUPPORT
90
91/* The number of bytes reserved for loadable codecs */
92#define CODEC_SIZE 0x100000
93
94/* The number of bytes reserved for loadable plugins */
95#define PLUGIN_BUFFER_SIZE 0x80000
96
97#define AB_REPEAT_ENABLE 1
98
99/* FM Tuner - suspected to be the SI4702, but use SI4700 for now */
100#define CONFIG_TUNER SI4700
101/* #define HAVE_TUNER_PWR_CTRL */
102
103/* Define this for LCD backlight available */
104#define HAVE_BACKLIGHT
105#define HAVE_BACKLIGHT_BRIGHTNESS
106
107/* define this if the unit uses a scrollwheel for navigation */
108#define HAVE_SCROLLWHEEL
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/* Hardware controlled charging? FIXME */
127#define CONFIG_CHARGING CHARGING_SIMPLE
128
129/* define this if the unit can be powered or charged via USB */
130#define HAVE_USB_POWER
131
132/** Non-simulator section **/
133#ifndef SIMULATOR
134
135/* Define this if you have an AMS AS3525*/
136#define CONFIG_CPU AS3525
137
138/* Define this if you want to use the AS2525 i2c interface */
139#define CONFIG_I2C I2C_AS3525
140
141/* define this if the hardware can be powered off while charging */
142/* Sansa can't be powered off while charging */
143/* #define HAVE_POWEROFF_WHILE_CHARGING */
144
145/* The start address index for ROM builds */
146#define ROM_START 0x00000000
147
148/* Define this to the CPU frequency */
149#define CPU_FREQ 75000000
150
151/* Type of LCD */
152#define CONFIG_LCD LCD_FUZE
153
154/* Offset ( in the firmware file's header ) to the file CRC and data. These are
155 only used when loading the old format rockbox.e200 file */
156#define FIRMWARE_OFFSET_FILE_CRC 0x0
157#define FIRMWARE_OFFSET_FILE_DATA 0x8
158
159#ifndef BOOTLOADER
160#define HAVE_MULTIVOLUME
161#define HAVE_HOTSWAP
162#endif
163
164/* #define USB_IPODSTYLE */
165
166/* USB On-the-go */
167#define CONFIG_USBOTG USBOTG_AS3525
168
169/* enable these for the experimental usb stack */
170//#define HAVE_USBSTACK
171#define USB_VENDOR_ID 0x0781
172#define USB_PRODUCT_ID 0x7423
173
174/* Virtual LED (icon) */
175#define CONFIG_LED LED_VIRTUAL
176
177/* Define this if you have adjustable CPU frequency */
178#define HAVE_ADJUSTABLE_CPU_FREQ
179
180#define BOOTFILE_EXT "sansa"
181#define BOOTFILE "rockbox." BOOTFILE_EXT
182#define BOOTDIR "/.rockbox"
183
184#define ICODE_ATTR_TREMOR_NOT_MDCT
185
186#define INCLUDE_TIMEOUT_API
187
188#endif /* SIMULATOR */
189
190/** Port-specific settings **/
191
192/* Main LCD backlight brightness range and defaults */
193#define MIN_BRIGHTNESS_SETTING 1
194#define MAX_BRIGHTNESS_SETTING 12
195#define DEFAULT_BRIGHTNESS_SETTING 6
196
197/* Default recording levels */
198#define DEFAULT_REC_MIC_GAIN 23
199#define DEFAULT_REC_LEFT_GAIN 23
200#define DEFAULT_REC_RIGHT_GAIN 23
201
202#ifdef E200R_INSTALLER
203#define IRAMORIG 0x40004000
204#endif
205