TARGET_TREE is not needed anymore
[maemo-rb.git] / firmware / export / config / sansafuze.h
blobdb46b1584b01d33c829ca28c6a2855b1217da187
1 /*
2 * This config file is for the Sandisk Sansa Fuze
3 */
5 /* For Rolo and boot loader */
6 #define MODEL_NUMBER 43
7 #define MODEL_NAME "Sandisk Sansa Fuze"
9 #define HW_SAMPR_CAPS SAMPR_CAP_ALL
11 /* define this if you have recording possibility */
12 #define HAVE_RECORDING
14 #define REC_SAMPR_CAPS (SAMPR_CAP_48 | SAMPR_CAP_44 | SAMPR_CAP_32 | \
15 SAMPR_CAP_24 | SAMPR_CAP_22 | SAMPR_CAP_16 | \
16 SAMPR_CAP_12 | SAMPR_CAP_11 | SAMPR_CAP_8)
18 /* because the samplerates don't match at each point, we must be able to
19 * tell PCM which set of rates to use. not needed if recording rates are
20 * a simple subset of playback rates and are equal values. */
21 #define CONFIG_SAMPR_TYPES
23 /* Default recording levels */
24 #define DEFAULT_REC_MIC_GAIN 23
25 #define DEFAULT_REC_LEFT_GAIN 23
26 #define DEFAULT_REC_RIGHT_GAIN 23
28 /* Define bitmask of input sources - recordable bitmask can be defined
29 explicitly if different */
30 #define INPUT_SRC_CAPS (SRC_CAP_MIC | SRC_CAP_FMRADIO)
32 /* define this if you have a bitmap LCD display */
33 #define HAVE_LCD_BITMAP
34 /* define this if you have a colour LCD */
35 #define HAVE_LCD_COLOR
37 #ifndef BOOTLOADER/* define this if you want album art for this target */
38 #define HAVE_ALBUMART
40 /* define this to enable bitmap scaling */
41 #define HAVE_BMP_SCALING
43 /* define this to enable JPEG decoding */
44 #define HAVE_JPEG
46 /* define this if you have a light associated with the buttons */
47 #define HAVE_BUTTON_LIGHT
49 /* define this if you have access to the quickscreen */
50 #define HAVE_QUICKSCREEN
52 /* define this if you have access to the pitchscreen */
53 #define HAVE_PITCHSCREEN
55 /* define this if you would like tagcache to build on this target */
56 #define HAVE_TAGCACHE
58 /* define this if you have LCD enable function */
59 #define HAVE_LCD_ENABLE
61 /* Define this if your LCD can be put to sleep. HAVE_LCD_ENABLE
62 should be defined as well.
63 #define HAVE_LCD_SLEEP
64 #define HAVE_LCD_SLEEP_SETTING
67 /* define this if you can flip your LCD */
68 #define HAVE_LCD_FLIP
70 /* define this if you can invert the colours on your LCD */
71 #define HAVE_LCD_INVERT
73 /* define this if you have a real-time clock */
74 #define CONFIG_RTC RTC_AS3514
76 /* There is no hardware tone control */
77 #define HAVE_SW_TONE_CONTROLS
79 #endif /* !BOOTLOADER */
81 /* put the lcd frame buffer in IRAM */
82 #define IRAM_LCDFRAMEBUFFER IBSS_ATTR
84 #define CONFIG_KEYPAD SANSA_FUZE_PAD
86 /* Define this to have CPU boosted while scrolling in the UI */
87 #define HAVE_GUI_BOOST
89 /* Define this to enable morse code input */
90 #define HAVE_MORSE_INPUT
92 /* Define this if you do software codec */
93 #define CONFIG_CODEC SWCODEC
96 /* LCD dimensions */
97 #define LCD_WIDTH 220
98 #define LCD_HEIGHT 176
99 #define LCD_DEPTH 16 /* 65536 colours */
100 #define LCD_PIXELFORMAT RGB565 /* rgb565 */
103 /* We're working on the assumption that the AS3525 has something
104 similar to the AS3514 for audio codec etc */
105 #define HAVE_AS3514
107 /* Define this if you have a software controlled poweroff */
108 #define HAVE_SW_POWEROFF
110 /* Some Sansa Fuzes seem to be FAT16 formatted */
111 #define HAVE_FAT16SUPPORT
113 /* The number of bytes reserved for loadable codecs */
114 #define CODEC_SIZE 0x100000
116 /* The number of bytes reserved for loadable plugins */
117 #define PLUGIN_BUFFER_SIZE 0x80000
119 #define AB_REPEAT_ENABLE
121 /* FM Tuner - suspected to be the SI4702 */
122 #define CONFIG_TUNER SI4700
123 /* #define HAVE_TUNER_PWR_CTRL */
125 /* Define this for LCD backlight available */
126 #define HAVE_BACKLIGHT
127 #define HAVE_BACKLIGHT_BRIGHTNESS
129 /* Main LCD backlight brightness range and defaults */
130 #define MIN_BRIGHTNESS_SETTING 1
131 #define MAX_BRIGHTNESS_SETTING 12
132 #define DEFAULT_BRIGHTNESS_SETTING 6
134 /* Which backlight fading type? */
135 #define CONFIG_BACKLIGHT_FADING BACKLIGHT_FADING_SW_SETTING
137 /* define this if the unit uses a scrollwheel for navigation */
138 #define HAVE_SCROLLWHEEL
139 /* define to activate advanced wheel acceleration code */
140 #define HAVE_WHEEL_ACCELERATION
141 /* define from which rotation speed [degree/sec] on the acceleration starts */
142 #define WHEEL_ACCEL_START 540
143 /* define type of acceleration (1 = ^2, 2 = ^3, 3 = ^4) */
144 #define WHEEL_ACCELERATION 1
146 /* define this if you have a flash memory storage */
147 #define HAVE_FLASH_STORAGE
149 /* define this if the flash memory uses the SecureDigital Memory Card protocol */
150 #define CONFIG_STORAGE STORAGE_SD
152 #define BATTERY_CAPACITY_DEFAULT 550 /* default battery capacity */
153 #define BATTERY_CAPACITY_MIN 550 /* min. capacity selectable */
154 #define BATTERY_CAPACITY_MAX 550 /* max. capacity selectable */
155 #define BATTERY_CAPACITY_INC 0 /* capacity increment */
156 #define BATTERY_TYPES_COUNT 1 /* only one type */
158 #define CONFIG_BATTERY_MEASURE VOLTAGE_MEASURE
160 /* Charging implemented in a target-specific algorithm */
161 #define CONFIG_CHARGING CHARGING_TARGET
163 /* define this if the unit can be powered or charged via USB */
164 #define HAVE_USB_POWER
166 /* Define this if you have an AMS AS3525*/
167 #define CONFIG_CPU AS3525
169 /* Define how much SD sectors are reserved for OF */
170 #define AMS_OF_SIZE 0xF000
172 /* Define this if you want to use the AS2525 i2c interface */
173 #define CONFIG_I2C I2C_AS3525
175 /* define current usage levels (based on battery bench) */
176 #define CURRENT_NORMAL 35
177 #define CURRENT_BACKLIGHT 30
178 #define CURRENT_RECORD CURRENT_NORMAL
180 /* maximum charging current */
181 #define CURRENT_MAX_CHG 200
183 /* Define this to the CPU frequency */
184 #define CPU_FREQ 248000000
186 /* Type of LCD */
187 #define CONFIG_LCD LCD_FUZE
189 /* Offset ( in the firmware file's header ) to the file CRC and data. These are
190 only used when loading the old format rockbox.e200 file */
191 #define FIRMWARE_OFFSET_FILE_CRC 0x0
192 #define FIRMWARE_OFFSET_FILE_DATA 0x8
194 #ifndef BOOTLOADER
195 #define HAVE_MULTIDRIVE
196 #define NUM_DRIVES 2
197 #define HAVE_HOTSWAP
198 #endif
200 /* USB On-the-go */
201 #define CONFIG_USBOTG USBOTG_AS3525
203 /* enable these for the experimental usb stack */
204 #define HAVE_USBSTACK
205 //#define USB_HANDLED_BY_OF
206 #define USE_ROCKBOX_USB
207 #define USB_VENDOR_ID 0x0781
208 #define USB_PRODUCT_ID 0x74c1
209 #define HAVE_USB_HID_MOUSE
211 /* Define this if you have adjustable CPU frequency */
212 #define HAVE_ADJUSTABLE_CPU_FREQ
214 #define BOOTFILE_EXT "sansa"
215 #define BOOTFILE "rockbox." BOOTFILE_EXT
216 #define BOOTDIR "/.rockbox"
218 #define ICODE_ATTR_TREMOR_NOT_MDCT
220 #define INCLUDE_TIMEOUT_API
222 /* Define this if a programmable hotkey is mapped */
223 #define HAVE_HOTKEY