fuze+: #define TARGET_EXTRA_THREADS because of the extra touchpad thread. Should...
[maemo-rb.git] / firmware / export / config / sansafuzeplus.h
bloba0d909de110d8b395edb9131e919e71e83e1e90d
1 /*
2 * This config file is for the Sandisk Sansa Fuze+
3 */
4 #define TARGET_TREE /* this target is using the target tree system */
6 /* For Rolo and boot loader */
7 #define MODEL_NUMBER 72
8 #define MODEL_NAME "Sandisk Sansa Fuze+"
10 #define HW_SAMPR_CAPS SAMPR_CAP_ALL
12 /* define this if you have recording possibility */
13 #define HAVE_RECORDING
15 #define REC_SAMPR_CAPS SAMPR_CAP_ALL
17 /* Default recording levels */
18 #define DEFAULT_REC_MIC_GAIN 23
19 #define DEFAULT_REC_LEFT_GAIN 23
20 #define DEFAULT_REC_RIGHT_GAIN 23
22 /* Define bitmask of input sources - recordable bitmask can be defined
23 explicitly if different */
24 #define INPUT_SRC_CAPS (SRC_CAP_MIC | SRC_CAP_FMRADIO)
26 /* define this if you have a bitmap LCD display */
27 #define HAVE_LCD_BITMAP
28 /* define this if you have a colour LCD */
29 #define HAVE_LCD_COLOR
31 #ifndef BOOTLOADER
32 #define HAVE_ALBUMART
34 /* define this to enable bitmap scaling */
35 #define HAVE_BMP_SCALING
37 /* define this to enable JPEG decoding */
38 #define HAVE_JPEG
40 /* Define this if a programmable hotkey is mapped */
41 #define HAVE_HOTKEY
43 /* define this if you have access to the quickscreen */
44 #define HAVE_QUICKSCREEN
46 /* define this if you have access to the pitchscreen */
47 #define HAVE_PITCHSCREEN
49 /* define this if you would like tagcache to build on this target */
50 #define HAVE_TAGCACHE
52 /* define this if the target has volume keys which can be used in the lists */
53 #define HAVE_VOLUME_IN_LIST
55 /* define this if you have LCD enable function */
56 #define HAVE_LCD_ENABLE
58 /* Define this if your LCD can be put to sleep. HAVE_LCD_ENABLE
59 should be defined as well.
60 #define HAVE_LCD_SLEEP
61 #define HAVE_LCD_SLEEP_SETTING
64 /* define this if you can flip your LCD
65 #define HAVE_LCD_FLIP
68 /* define this if you can invert the colours on your LCD
69 #define HAVE_LCD_INVERT
72 /* define this if you have a real-time clock */
73 #define CONFIG_RTC RTC_IMX233
75 /* define this if you have a real-time clock with alarm facilities */
76 #define HAVE_RTC_ALARM
78 #endif /* !BOOTLOADER */
80 /* define this if you have an i.MX23 codec */
81 #define HAVE_IMX233_CODEC
83 #define CONFIG_TUNER SI4700
85 /* There is no hardware tone control */
86 #define HAVE_SW_TONE_CONTROLS
88 #define CONFIG_KEYPAD SANSA_FUZEPLUS_PAD
90 /* Define this to enable morse code input */
91 #define HAVE_MORSE_INPUT
93 /* Define this if you do software codec */
94 #define CONFIG_CODEC SWCODEC
96 /* LCD dimensions */
97 #define LCD_WIDTH 240
98 #define LCD_HEIGHT 320
99 #define LCD_DEPTH 16 /* 65536 colours */
100 #define LCD_PIXELFORMAT RGB565 /* rgb565 */
102 /* Define this if you have a software controlled poweroff */
103 #define HAVE_SW_POWEROFF
105 /* Some Sansa Fuzes seem to be FAT16 formatted */
106 #define HAVE_FAT16SUPPORT
108 /* The number of bytes reserved for loadable codecs */
109 #define CODEC_SIZE 0x100000
111 /* The number of bytes reserved for loadable plugins */
112 #define PLUGIN_BUFFER_SIZE 0x80000
114 #define AB_REPEAT_ENABLE
116 /* Define this for LCD backlight available */
117 #define HAVE_BACKLIGHT
118 #define HAVE_BACKLIGHT_BRIGHTNESS
120 /* Main LCD backlight brightness range and defaults */
121 #define MIN_BRIGHTNESS_SETTING 0
122 #define MAX_BRIGHTNESS_SETTING 80
123 #define DEFAULT_BRIGHTNESS_SETTING 40
125 /* Which backlight fading type? */
126 #define CONFIG_BACKLIGHT_FADING BACKLIGHT_FADING_SW_SETTING
128 /* define this if you have a flash memory storage */
129 #define HAVE_FLASH_STORAGE
131 /* define this if the flash memory uses the SecureDigital Memory Card protocol */
132 #define CONFIG_STORAGE (STORAGE_SD | STORAGE_MMC)
133 #define NUM_DRIVES 2
134 #define HAVE_HOTSWAP
136 /* Extra threads: touchpad */
137 #define TARGET_EXTRA_THREADS 1
139 /* todo */
140 #define BATTERY_CAPACITY_DEFAULT 550 /* default battery capacity */
141 #define BATTERY_CAPACITY_MIN 550 /* min. capacity selectable */
142 #define BATTERY_CAPACITY_MAX 550 /* max. capacity selectable */
143 #define BATTERY_CAPACITY_INC 0 /* capacity increment */
144 #define BATTERY_TYPES_COUNT 1 /* only one type */
146 #define CONFIG_BATTERY_MEASURE VOLTAGE_MEASURE
148 /* Charging implemented in a target-specific algorithm */
149 #define CONFIG_CHARGING CHARGING_TARGET
151 /* define this if the unit can be powered or charged via USB */
152 #define HAVE_USB_POWER
154 /* Define this if you have an IMX233*/
155 #define CONFIG_CPU IMX233
157 /* Define this if you want to use the IMX233 i2c interface */
158 #define CONFIG_I2C I2C_IMX233
160 /* define current usage levels (based on battery bench) */
161 #define CURRENT_NORMAL 35
162 #define CURRENT_BACKLIGHT 30
163 #define CURRENT_RECORD CURRENT_NORMAL
165 /* maximum charging current */
166 #define CURRENT_MAX_CHG 200
168 /* Define this to the CPU frequency */
169 #define CPU_FREQ 454000000
171 /* Type of LCD */
172 #define CONFIG_LCD LCD_FUZEPLUS
174 /* Offset ( in the firmware file's header ) to the file CRC and data. These are
175 only used when loading the old format rockbox.e200 file */
176 #define FIRMWARE_OFFSET_FILE_CRC 0x0
177 #define FIRMWARE_OFFSET_FILE_DATA 0x8
179 /* USB On-the-go */
180 #define CONFIG_USBOTG USBOTG_ARC
182 /* enable these for the experimental usb stack */
183 #define HAVE_USBSTACK
184 //#define USB_HANDLED_BY_OF
185 #define USE_ROCKBOX_USB
186 #define USB_VENDOR_ID 0x0781
187 #define USB_PRODUCT_ID 0x74e1
188 #define HAVE_USB_HID_MOUSE
189 #define HAVE_BOOTLOADER_USB_MODE
191 /* The fuze+ actually interesting partition table does not use 512-byte sector
192 * (usually 2048 logical sector size) */
193 #define MAX_LOG_SECTOR_SIZE 2048
195 /* Define this if you have adjustable CPU frequency */
196 #define HAVE_ADJUSTABLE_CPU_FREQ
198 #define BOOTFILE_EXT "sansa"
199 #define BOOTFILE "rockbox." BOOTFILE_EXT
200 #define BOOTDIR "/.rockbox"
202 #define INCLUDE_TIMEOUT_API