as3525v2: Move codec into iram freeing 1MB for the audio buffer and also a small...
[kugel-rb.git] / firmware / export / config / sansaclipplus.h
blobed8c7bb685d3ca2b8fd14fe354e65125d4b359ae
1 /*
2 * This config file is for the Sandisk Sansa Clip+
3 */
4 #define TARGET_TREE /* this target is using the target tree system */
6 /* For Rolo and boot loader */
7 #define MODEL_NUMBER 66
8 #define MODEL_NAME "Sandisk Sansa Clip+"
9 #define FIRMWARE_OFFSET_FILE_DATA 8
10 #define FIRMWARE_OFFSET_FILE_CRC 0
13 #ifndef BOOTLOADER
14 #define HAVE_MULTIDRIVE
15 #define NUM_DRIVES 2
16 #define HAVE_HOTSWAP
17 #endif
19 #define HW_SAMPR_CAPS SAMPR_CAP_ALL
21 /* define this if you have recording possibility */
22 #define HAVE_RECORDING
24 #define REC_SAMPR_CAPS SAMPR_CAP_ALL
26 /* Define bitmask of input sources - recordable bitmask can be defined
27 explicitly if different */
28 #define INPUT_SRC_CAPS (SRC_CAP_MIC | SRC_CAP_FMRADIO)
30 /* define this if you have a bitmap LCD display */
31 #define HAVE_LCD_BITMAP
33 /* define this if you have access to the quickscreen */
34 #define HAVE_QUICKSCREEN
36 /* define this if you have access to the pitchscreen */
37 #define HAVE_PITCHSCREEN
39 /* define this if you would like tagcache to build on this target */
40 #define HAVE_TAGCACHE
42 /* LCD dimensions */
43 #define LCD_WIDTH 128
44 #define LCD_HEIGHT 64
45 #define LCD_DEPTH 1
47 #define LCD_PIXELFORMAT VERTICAL_PACKING
48 #define HAVE_NEGATIVE_LCD /* bright on dark */
49 #define HAVE_LCD_SPLIT /* split display */
51 /* Display colours, for screenshots and sim (0xRRGGBB) */
52 #define LCD_DARKCOLOR 0x000000
53 #define LCD_BRIGHTCOLOR 0x000000
54 #define LCD_BL_DARKCOLOR 0x000000
55 #define LCD_BL_BRIGHTCOLOR 0x0de2e5
57 #define LCD_DARKCOLOR_2 0x000000
58 #define LCD_BRIGHTCOLOR_2 0x000000
59 #define LCD_BL_DARKCOLOR_2 0x000000
60 #define LCD_BL_BRIGHTCOLOR_2 0xffe60f
62 #define LCD_SPLIT_POS 16
63 #define LCD_SPLIT_LINES 2
65 /* define this if you have LCD enable function */
66 #define HAVE_LCD_ENABLE
68 #ifndef BOOTLOADER
69 /* Define this if your LCD can be put to sleep.
70 * HAVE_LCD_ENABLE should be defined as well. */
71 //#define HAVE_LCD_SLEEP
72 //#define HAVE_LCD_SLEEP_SETTING
73 #endif
75 /* define this if you can flip your LCD */
76 #define HAVE_LCD_FLIP
78 /* define this if you can invert the pixels */
79 #define HAVE_LCD_INVERT
81 /* Define this if your LCD can set contrast */
82 #define HAVE_LCD_CONTRAST
84 #define MIN_CONTRAST_SETTING 0
85 #define MAX_CONTRAST_SETTING 50
86 #define DEFAULT_CONTRAST_SETTING 30
88 #define IRAM_LCDFRAMEBUFFER IDATA_ATTR /* put the lcd frame buffer in IRAM */
90 #define CONFIG_KEYPAD SANSA_CLIP_PAD
92 /* define this if the target has volume keys which can be used in the lists */
93 #define HAVE_VOLUME_IN_LIST
95 /* Define this if you do software codec */
96 #define CONFIG_CODEC SWCODEC
97 /* There is no hardware tone control */
98 #define HAVE_SW_TONE_CONTROLS
100 /* AS3514 or newer */
101 #define HAVE_AS3514
102 #define HAVE_AS3543
104 /* define this if you have a real-time clock */
105 #ifndef BOOTLOADER
106 #define CONFIG_RTC RTC_AS3514
107 #endif
109 /* Define this if you have a software controlled poweroff */
110 #define HAVE_SW_POWEROFF
112 #define HAVE_FAT16SUPPORT
114 /* The number of bytes reserved for loadable codecs */
115 #define CODEC_SIZE (0x100000-0x8000)
117 /* The number of bytes reserved for loadable plugins */
118 #define PLUGIN_BUFFER_SIZE 0x80000
120 #define AB_REPEAT_ENABLE 1
122 /* FM Tuner */
123 #define CONFIG_TUNER SI4700 /* in fact SI4702 */
124 //#define HAVE_TUNER_PWR_CTRL
126 /* Define this for LCD backlight available */
127 #define HAVE_BACKLIGHT
129 /* define this if you have a flash memory storage */
130 #define HAVE_FLASH_STORAGE
132 /* define this if the flash memory uses the SecureDigital Memory Card protocol */
133 #define CONFIG_STORAGE STORAGE_SD
135 #define BATTERY_CAPACITY_DEFAULT 380 /* default battery capacity */
136 #define BATTERY_CAPACITY_MIN 380 /* min. capacity selectable */
137 #define BATTERY_CAPACITY_MAX 380 /* max. capacity selectable */
138 #define BATTERY_CAPACITY_INC 0 /* capacity increment */
139 #define BATTERY_TYPES_COUNT 1 /* only one type */
141 /* Charging implemented in a target-specific algorithm */
142 #define CONFIG_CHARGING CHARGING_TARGET
144 /* define this if the unit can be powered or charged via USB */
145 #define HAVE_USB_POWER
147 /** Non-simulator section **/
148 #ifndef SIMULATOR
150 /* Define this if you have a AMS AS3525v2 SoC */
151 #define CONFIG_CPU AS3525v2
153 /* Define this if you want to use the AS3525 i2c interface */
154 #define CONFIG_I2C I2C_AS3525 /* FIXME : looks similar to AS353x interface */
156 /* define this if the hardware can be powered off while charging */
157 /* Sansa can't be powered off while charging */
158 /* #define HAVE_POWEROFF_WHILE_CHARGING */
160 /* The start address index for ROM builds */
161 #define ROM_START 0x00000000
163 /* Define this to the CPU frequency */
164 #define CPU_FREQ 240000000
166 /* Type of LCD */
167 #define CONFIG_LCD LCD_SSD1303
169 #ifndef BOOTLOADER
171 #define USB_HANDLED_BY_OF
173 #if 0 /* disabled since there is no USB driver */
175 /* USB On-the-go */
176 #define CONFIG_USBOTG USBOTG_ARC
178 /* enable these for the experimental usb stack */
179 #define HAVE_USBSTACK
180 #define USB_VENDOR_ID 0x0781
181 #define USB_PRODUCT_ID 0x74d1
182 #endif /* BOOTLOADER */
184 #endif
187 /* Virtual LED (icon) */
188 #define CONFIG_LED LED_VIRTUAL
190 /* Define this if you have adjustable CPU frequency */
191 #define HAVE_ADJUSTABLE_CPU_FREQ
193 #define BOOTFILE_EXT "sansa"
194 #define BOOTFILE "rockbox." BOOTFILE_EXT
195 #define BOOTDIR "/.rockbox"
197 #define ICODE_ATTR_TREMOR_NOT_MDCT
199 #define INCLUDE_TIMEOUT_API
201 #endif /* SIMULATOR */
203 /** Port-specific settings **/
205 /* Main LCD backlight brightness range and defaults */
206 #define MIN_BRIGHTNESS_SETTING 1
207 #define MAX_BRIGHTNESS_SETTING 12
208 #define DEFAULT_BRIGHTNESS_SETTING 6
210 /* Default recording levels */
211 #define DEFAULT_REC_MIC_GAIN 23
212 #define DEFAULT_REC_LEFT_GAIN 23
213 #define DEFAULT_REC_RIGHT_GAIN 23
215 /* Define this if a programmable hotkey is mapped */
216 //#define HAVE_HOTKEY