TARGET_TREE is not needed anymore
[maemo-rb.git] / firmware / export / config / sansaclipplus.h
blob0725431e8a7d783061a98e74bf9a5585824a6151
1 /*
2 * This config file is for the Sandisk Sansa Clip+
3 */
5 /* For Rolo and boot loader */
6 #define MODEL_NUMBER 66
7 #define MODEL_NAME "Sandisk Sansa Clip+"
8 #define FIRMWARE_OFFSET_FILE_DATA 8
9 #define FIRMWARE_OFFSET_FILE_CRC 0
12 #ifndef BOOTLOADER
13 #define HAVE_MULTIDRIVE
14 #define NUM_DRIVES 2
15 #define HAVE_HOTSWAP
16 #endif
18 #define HW_SAMPR_CAPS SAMPR_CAP_ALL
20 /* define this if you have recording possibility */
21 #define HAVE_RECORDING
23 #define REC_SAMPR_CAPS (SAMPR_CAP_48 | SAMPR_CAP_44 | SAMPR_CAP_32 | \
24 SAMPR_CAP_24 | SAMPR_CAP_22 | SAMPR_CAP_16 | \
25 SAMPR_CAP_12 | SAMPR_CAP_11 | SAMPR_CAP_8)
27 /* because the samplerates don't match at each point, we must be able to
28 * tell PCM which set of rates to use. not needed if recording rates are
29 * a simple subset of playback rates and are equal values. */
30 #define CONFIG_SAMPR_TYPES
32 /* Define bitmask of input sources - recordable bitmask can be defined
33 explicitly if different */
34 #define INPUT_SRC_CAPS (SRC_CAP_MIC | SRC_CAP_FMRADIO)
36 /* define this if you have a bitmap LCD display */
37 #define HAVE_LCD_BITMAP
39 /* define this if you have access to the quickscreen */
40 #define HAVE_QUICKSCREEN
42 /* define this if you have access to the pitchscreen */
43 #define HAVE_PITCHSCREEN
45 /* define this if you would like tagcache to build on this target */
46 #define HAVE_TAGCACHE
48 /* LCD dimensions */
49 #define LCD_WIDTH 128
50 #define LCD_HEIGHT 64
51 #define LCD_DEPTH 1
53 #define LCD_PIXELFORMAT VERTICAL_PACKING
54 #define HAVE_NEGATIVE_LCD /* bright on dark */
55 #define HAVE_LCD_SPLIT /* split display */
57 /* Display colours, for screenshots and sim (0xRRGGBB) */
58 #define LCD_DARKCOLOR 0x000000
59 #define LCD_BRIGHTCOLOR 0x000000
60 #define LCD_BL_DARKCOLOR 0x000000
61 #define LCD_BL_BRIGHTCOLOR 0x0de2e5
63 #define LCD_DARKCOLOR_2 0x000000
64 #define LCD_BRIGHTCOLOR_2 0x000000
65 #define LCD_BL_DARKCOLOR_2 0x000000
66 #define LCD_BL_BRIGHTCOLOR_2 0xffe60f
68 #define LCD_SPLIT_POS 16
69 #define LCD_SPLIT_LINES 2
71 /* define this if you have LCD enable function */
72 #define HAVE_LCD_ENABLE
74 #ifndef BOOTLOADER
75 /* Define this if your LCD can be put to sleep.
76 * HAVE_LCD_ENABLE should be defined as well. */
77 //#define HAVE_LCD_SLEEP
78 //#define HAVE_LCD_SLEEP_SETTING
79 #endif
81 /* define this if you can flip your LCD */
82 #define HAVE_LCD_FLIP
84 /* define this if you can invert the pixels */
85 #define HAVE_LCD_INVERT
87 /* Define this if your LCD can set contrast */
88 #define HAVE_LCD_CONTRAST
90 #define MIN_CONTRAST_SETTING 0
91 #define MAX_CONTRAST_SETTING 50
92 #define DEFAULT_CONTRAST_SETTING 30
94 #define IRAM_LCDFRAMEBUFFER IDATA_ATTR /* put the lcd frame buffer in IRAM */
96 #define CONFIG_KEYPAD SANSA_CLIP_PAD
98 /* define this if the target has volume keys which can be used in the lists */
99 #define HAVE_VOLUME_IN_LIST
101 /* Define this if you do software codec */
102 #define CONFIG_CODEC SWCODEC
103 /* There is no hardware tone control */
104 #define HAVE_SW_TONE_CONTROLS
106 /* AS3514 or newer */
107 #define HAVE_AS3514
108 #define HAVE_AS3543
110 #ifndef BOOTLOADER
111 /* define this if you have a real-time clock */
112 #define CONFIG_RTC RTC_AS3514
114 /* Define if the device can wake from an RTC alarm */
115 #define HAVE_RTC_ALARM
116 #endif
118 /* Define this if you have a software controlled poweroff */
119 #define HAVE_SW_POWEROFF
121 #define HAVE_FAT16SUPPORT
123 /* The number of bytes reserved for loadable codecs */
124 #define CODEC_SIZE (0x100000-0x8000)
126 /* The number of bytes reserved for loadable plugins */
127 #define PLUGIN_BUFFER_SIZE 0x80000
129 #define AB_REPEAT_ENABLE
131 /* FM Tuner */
132 #define CONFIG_TUNER (SI4700|RDA5802) /* in fact SI4702 */
133 //#define HAVE_TUNER_PWR_CTRL
135 /* Define this for LCD backlight available */
136 #define HAVE_BACKLIGHT
138 /* define this if you have a flash memory storage */
139 #define HAVE_FLASH_STORAGE
141 /* define this if the flash memory uses the SecureDigital Memory Card protocol */
142 #define CONFIG_STORAGE STORAGE_SD
144 #define BATTERY_CAPACITY_DEFAULT 290 /* default battery capacity */
145 #define BATTERY_CAPACITY_MIN 290 /* min. capacity selectable */
146 #define BATTERY_CAPACITY_MAX 290 /* max. capacity selectable */
147 #define BATTERY_CAPACITY_INC 0 /* capacity increment */
148 #define BATTERY_TYPES_COUNT 1 /* only one type */
150 #define CONFIG_BATTERY_MEASURE VOLTAGE_MEASURE
152 /* Charging implemented in a target-specific algorithm */
153 #define CONFIG_CHARGING CHARGING_TARGET
155 /* define this if the unit can be powered or charged via USB */
156 #define HAVE_USB_POWER
158 /** Non-simulator section **/
159 #ifndef SIMULATOR
161 /* Define this if you have a AMS AS3525v2 SoC */
162 #define CONFIG_CPU AS3525v2
164 /* Define this if you want to use the AS3525 i2c interface */
165 #define CONFIG_I2C I2C_AS3525
167 /* define this if the hardware can be powered off while charging */
168 /* Sansa can't be powered off while charging */
169 /* #define HAVE_POWEROFF_WHILE_CHARGING */
171 /* define current usage levels (based on battery bench) */
172 #define CURRENT_NORMAL 19
173 #define CURRENT_BACKLIGHT 15
174 #define CURRENT_RECORD CURRENT_NORMAL /* TODO */
176 /* maximum charging current */
177 #define CURRENT_MAX_CHG 150
179 /* Define this to the CPU frequency */
180 #define CPU_FREQ 240000000
182 /* Type of LCD */
183 #define CONFIG_LCD LCD_SSD1303
185 /* USB On-the-go */
186 #define CONFIG_USBOTG USBOTG_S3C6400X
188 /* enable these for the experimental usb stack */
189 #define HAVE_USBSTACK
190 #define USE_ROCKBOX_USB
191 #define USB_VENDOR_ID 0x0781
192 #define USB_PRODUCT_ID 0x74d1
195 /* Virtual LED (icon) */
196 #define CONFIG_LED LED_VIRTUAL
198 /* Define this if you have adjustable CPU frequency */
199 //#define HAVE_ADJUSTABLE_CPU_FREQ
201 #define BOOTFILE_EXT "sansa"
202 #define BOOTFILE "rockbox." BOOTFILE_EXT
203 #define BOOTDIR "/.rockbox"
205 #define ICODE_ATTR_TREMOR_NOT_MDCT
207 #define INCLUDE_TIMEOUT_API
209 #endif /* SIMULATOR */
211 /** Port-specific settings **/
213 /* Main LCD backlight brightness range and defaults */
214 #define MIN_BRIGHTNESS_SETTING 1
215 #define MAX_BRIGHTNESS_SETTING 12
216 #define DEFAULT_BRIGHTNESS_SETTING 6
218 /* Default recording levels */
219 #define DEFAULT_REC_MIC_GAIN 23
220 #define DEFAULT_REC_LEFT_GAIN 23
221 #define DEFAULT_REC_RIGHT_GAIN 23
223 /* Define this if a programmable hotkey is mapped */
224 //#define HAVE_HOTKEY