TARGET_TREE is not needed anymore
[maemo-rb.git] / firmware / export / config / sansaclipzip.h
blob2ddf4173c3907248199a5f6bc99578c53dc7dee5
1 /*
2 * This config file is for the Sandisk Sansa Clip Zip
3 */
5 /* For Rolo and boot loader */
6 #define MODEL_NUMBER 79
7 #define MODEL_NAME "Sandisk Sansa Zip"
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 HAVE_RDS_CAP
38 /* define this if you have a bitmap LCD display */
39 #define HAVE_LCD_BITMAP
40 /* define this if you have a colour LCD */
41 #define HAVE_LCD_COLOR
43 /* define this if you want album art for this target */
44 #define HAVE_ALBUMART
46 /* define this to enable bitmap scaling */
47 #define HAVE_BMP_SCALING
49 /* define this to enable JPEG decoding */
50 #define HAVE_JPEG
52 /* define this if you have access to the quickscreen */
53 #define HAVE_QUICKSCREEN
55 /* define this if you have access to the pitchscreen */
56 #define HAVE_PITCHSCREEN
58 /* define this if you would like tagcache to build on this target */
59 #define HAVE_TAGCACHE
61 /* LCD dimensions */
62 #define LCD_WIDTH 96
63 #define LCD_HEIGHT 96
64 #define LCD_DEPTH 16 /* 65536 colours */
65 #define LCD_PIXELFORMAT RGB565
67 /* define this if you have LCD enable function */
68 #define HAVE_LCD_ENABLE
70 #ifndef BOOTLOADER
71 /* Define this if your LCD can be put to sleep.
72 * HAVE_LCD_ENABLE should be defined as well. */
73 //#define HAVE_LCD_SLEEP
74 //#define HAVE_LCD_SLEEP_SETTING
75 #endif
77 /* define this if you can flip your LCD */
78 //#define HAVE_LCD_FLIP
80 /* define this if you can invert the pixels */
81 //#define HAVE_LCD_INVERT
83 /* Define this if your LCD can set contrast */
84 //#define HAVE_LCD_CONTRAST
86 //#define MIN_CONTRAST_SETTING 0
87 //#define MAX_CONTRAST_SETTING 50
88 //#define DEFAULT_CONTRAST_SETTING 30
90 //#define IRAM_LCDFRAMEBUFFER IDATA_ATTR /* put the lcd frame buffer in IRAM */
92 #define CONFIG_KEYPAD SANSA_CLIP_PAD
94 /* define this if the target has volume keys which can be used in the lists */
95 #define HAVE_VOLUME_IN_LIST
97 /* Define this if you do software codec */
98 #define CONFIG_CODEC SWCODEC
99 /* There is no hardware tone control */
100 #define HAVE_SW_TONE_CONTROLS
102 /* AS3514 or newer */
103 #define HAVE_AS3514
104 #define HAVE_AS3543
106 #ifndef BOOTLOADER
107 /* define this if you have a real-time clock */
108 #define CONFIG_RTC RTC_AS3514
110 /* Define if the device can wake from an RTC alarm */
111 #define HAVE_RTC_ALARM
112 #endif
114 /* Define this if you have a software controlled poweroff */
115 #define HAVE_SW_POWEROFF
117 #define HAVE_FAT16SUPPORT
119 /* The number of bytes reserved for loadable codecs */
120 #define CODEC_SIZE (0x100000-0x8000)
122 /* The number of bytes reserved for loadable plugins */
123 #define PLUGIN_BUFFER_SIZE 0x80000
125 #define AB_REPEAT_ENABLE
127 /* FM Tuner */
128 #define CONFIG_TUNER SI4700 /* in fact SI4702 */
129 //#define HAVE_TUNER_PWR_CTRL
131 /* Define this for LCD backlight available */
132 #define HAVE_BACKLIGHT
134 #define HAVE_BACKLIGHT_BRIGHTNESS
136 /* define this if you have a flash memory storage */
137 #define HAVE_FLASH_STORAGE
139 /* define this if the flash memory uses the SecureDigital Memory Card protocol */
140 #define CONFIG_STORAGE STORAGE_SD
142 /* Define this if target has an additional number of threads specific to it */
143 #define TARGET_EXTRA_THREADS 1 /* RDS thread */
145 #define BATTERY_CAPACITY_DEFAULT 300 /* default battery capacity */
146 #define BATTERY_CAPACITY_MIN 300 /* min. capacity selectable */
147 #define BATTERY_CAPACITY_MAX 300 /* max. capacity selectable */
148 #define BATTERY_CAPACITY_INC 0 /* capacity increment */
149 #define BATTERY_TYPES_COUNT 1 /* only one type */
151 #define CONFIG_BATTERY_MEASURE VOLTAGE_MEASURE
153 /* Charging implemented in a target-specific algorithm */
154 #define CONFIG_CHARGING CHARGING_TARGET
156 /* define this if the unit can be powered or charged via USB */
157 #define HAVE_USB_POWER
159 /** Non-simulator section **/
160 #ifndef SIMULATOR
162 /* Define this if you have a AMS AS3525v2 SoC */
163 #define CONFIG_CPU AS3525v2
165 /* Define this if you want to use the AS3525 i2c interface */
166 #define CONFIG_I2C I2C_AS3525
168 /* define this if the hardware can be powered off while charging */
169 /* Sansa can't be powered off while charging */
170 /* #define HAVE_POWEROFF_WHILE_CHARGING */
172 /* define current usage levels (based on battery bench) */
173 #define CURRENT_NORMAL 19 /* TODO copied from clipplus */
174 #define CURRENT_BACKLIGHT 15 /* TODO copied from clipplus */
175 #define CURRENT_RECORD CURRENT_NORMAL /* TODO */
177 /* maximum charging current */
178 #define CURRENT_MAX_CHG 150
180 /* Define this to the CPU frequency */
181 #define CPU_FREQ 240000000
183 /* Type of LCD */
184 #define CONFIG_LCD LCD_CLIPZIP
186 /* USB On-the-go */
187 #define CONFIG_USBOTG USBOTG_S3C6400X
189 /* enable these for the experimental usb stack */
190 #define HAVE_USBSTACK
191 #define USE_ROCKBOX_USB
192 #define USB_VENDOR_ID 0x0781
193 #define USB_PRODUCT_ID 0x74e5
196 /* Virtual LED (icon) */
197 #define CONFIG_LED LED_VIRTUAL
199 /* Define this if you have adjustable CPU frequency */
200 //#define HAVE_ADJUSTABLE_CPU_FREQ
202 #define BOOTFILE_EXT "sansa"
203 #define BOOTFILE "rockbox." BOOTFILE_EXT
204 #define BOOTDIR "/.rockbox"
206 #define ICODE_ATTR_TREMOR_NOT_MDCT
208 #define INCLUDE_TIMEOUT_API
210 #endif /* SIMULATOR */
212 /** Port-specific settings **/
214 /* Main LCD backlight brightness range and defaults */
215 #define MIN_BRIGHTNESS_SETTING 0
216 #define MAX_BRIGHTNESS_SETTING 9
217 #define DEFAULT_BRIGHTNESS_SETTING 6
219 /* Default recording levels */
220 #define DEFAULT_REC_MIC_GAIN 23
221 #define DEFAULT_REC_LEFT_GAIN 23
222 #define DEFAULT_REC_RIGHT_GAIN 23
224 /* Define this if a programmable hotkey is mapped */
225 //#define HAVE_HOTKEY