2 * This config file is for the Sandisk Sansa Clip
4 #define TARGET_TREE /* this target is using the target tree system */
6 /* For Rolo and boot loader */
7 #define MODEL_NUMBER 40
8 #define MODEL_NAME "Sandisk Sansa Clip"
9 #define FIRMWARE_OFFSET_FILE_DATA 8
10 #define FIRMWARE_OFFSET_FILE_CRC 0
12 #if 0 /* disabled since there is no driver (yet) */
14 #define HW_SAMPR_CAPS (SAMPR_CAP_44)
16 /* define this if you have recording possibility */
17 #define HAVE_RECORDING
19 #define REC_SAMPR_CAPS (SAMPR_CAP_22)
20 #define REC_FREQ_DEFAULT REC_FREQ_22 /* Default is not 44.1kHz */
21 #define REC_SAMPR_DEFAULT SAMPR_22
25 /* Define bitmask of input sources - recordable bitmask can be defined
26 explicitly if different */
27 #define INPUT_SRC_CAPS (SRC_CAP_MIC | SRC_CAP_FMRADIO)
29 /* define this if you have a bitmap LCD display */
30 #define HAVE_LCD_BITMAP
32 /* define this if you have a light associated with the buttons */
33 #define HAVE_BUTTON_LIGHT
35 /* define this if you have access to the quickscreen */
36 #define HAVE_QUICKSCREEN
38 /* define this if you have access to the pitchscreen */
39 #define HAVE_PITCHSCREEN
41 /* define this if you would like tagcache to build on this target */
48 #define LCD_PIXELFORMAT VERTICAL_PACKING
50 /* define this if you have LCD enable function */
51 #define HAVE_LCD_ENABLE
54 /* Define this if your LCD can be put to sleep.
55 * HAVE_LCD_ENABLE should be defined as well. */
56 //#define HAVE_LCD_SLEEP
57 //#define HAVE_LCD_SLEEP_SETTING
60 /* define this if you can flip your LCD */
63 /* define this if you can invert the pixels */
64 #define HAVE_LCD_INVERT
66 /* Define this if your LCD can set contrast */
67 #define HAVE_LCD_CONTRAST
69 #define MIN_CONTRAST_SETTING 0
70 #define MAX_CONTRAST_SETTING 50
71 #define DEFAULT_CONTRAST_SETTING 30
73 #define IRAM_LCDFRAMEBUFFER IDATA_ATTR /* put the lcd frame buffer in IRAM */
75 #define CONFIG_KEYPAD SANSA_CLIP_PAD
77 /* define this if the target has volume keys which can be used in the lists */
78 #define HAVE_VOLUME_IN_LIST
80 /* Define this if you do software codec */
81 #define CONFIG_CODEC SWCODEC
82 /* There is no hardware tone control */
83 #define HAVE_SW_TONE_CONTROLS
85 /* We're working on the assumption that the AS3525 has something
86 similar to the AS3514 for audio codec etc */
89 /* define this if you have a real-time clock */
91 #define CONFIG_RTC RTC_AS3514
94 /* Define this if you have a software controlled poweroff */
95 #define HAVE_SW_POWEROFF
97 #define HAVE_FAT16SUPPORT
99 /* The number of bytes reserved for loadable codecs */
100 #define CODEC_SIZE 0x48000 /* in IRAM */
102 /* The number of bytes reserved for loadable plugins */
103 #define PLUGIN_BUFFER_SIZE 0x60000
105 #define AB_REPEAT_ENABLE 1
108 #define CONFIG_TUNER SI4700 /* in fact SI4702 but let's hope it's compatible */
109 //#define HAVE_TUNER_PWR_CTRL
111 /* Define this for LCD backlight available */
112 #define HAVE_BACKLIGHT
114 /* define this if you have a flash memory storage */
115 #define HAVE_FLASH_STORAGE
117 /* define this if the flash memory uses the SecureDigital Memory Card protocol */
118 #define CONFIG_STORAGE STORAGE_SD
120 #define BATTERY_CAPACITY_DEFAULT 750 /* default battery capacity */
121 #define BATTERY_CAPACITY_MIN 750 /* min. capacity selectable */
122 #define BATTERY_CAPACITY_MAX 750 /* max. capacity selectable */
123 #define BATTERY_CAPACITY_INC 0 /* capacity increment */
124 #define BATTERY_TYPES_COUNT 1 /* only one type */
126 /* Hardware controlled charging? FIXME */
127 #define CONFIG_CHARGING CHARGING_SIMPLE
129 /* define this if the unit can be powered or charged via USB */
130 #define HAVE_USB_POWER
132 /** Non-simulator section **/
135 /* Define this if you have a AMS AS3525 SoC */
136 #define CONFIG_CPU AS3525
138 /* Define this if you want to use the AS3525 i2c interface */
139 #define CONFIG_I2C I2C_AS3525
141 /* define this if the hardware can be powered off while charging */
142 /* Sansa can't be powered off while charging */
143 /* #define HAVE_POWEROFF_WHILE_CHARGING */
145 /* The start address index for ROM builds */
146 #define ROM_START 0x00000000
148 /* Define this to the CPU frequency */
149 #define CPU_FREQ 250000000
152 #define CONFIG_LCD LCD_SSD1303
156 #if 0 /* disabled since there is no USB driver */
159 #define CONFIG_USBOTG USBOTG_ARC
161 /* enable these for the experimental usb stack */
162 #define HAVE_USBSTACK
163 #define USB_VENDOR_ID 0x0781
164 #define USB_PRODUCT_ID 0x7433
165 #endif /* BOOTLOADER */
169 /* Virtual LED (icon) */
170 #define CONFIG_LED LED_VIRTUAL
172 /* Define this if you have adjustable CPU frequency */
173 #define HAVE_ADJUSTABLE_CPU_FREQ
175 #define BOOTFILE_EXT "sansa"
176 #define BOOTFILE "rockbox." BOOTFILE_EXT
177 #define BOOTDIR "/.rockbox"
179 #define ICODE_ATTR_TREMOR_NOT_MDCT
181 #define INCLUDE_TIMEOUT_API
183 #endif /* SIMULATOR */
185 /** Port-specific settings **/
187 /* Main LCD backlight brightness range and defaults */
188 #define MIN_BRIGHTNESS_SETTING 1
189 #define MAX_BRIGHTNESS_SETTING 12
190 #define DEFAULT_BRIGHTNESS_SETTING 6
192 /* Default recording levels */
193 #define DEFAULT_REC_MIC_GAIN 23
194 #define DEFAULT_REC_LEFT_GAIN 23
195 #define DEFAULT_REC_RIGHT_GAIN 23