as3525v2: disable adjustable CPU frequency
[kugel-rb.git] / firmware / export / config / sansaclipv2.h
blob8780395bcb3a7011bfc295d80608e5eb9431b083
1 /*
2 * This config file is for the Sandisk Sansa Clip v2
3 */
4 #define TARGET_TREE /* this target is using the target tree system */
6 /* For Rolo and boot loader */
7 #define MODEL_NUMBER 60
8 #define MODEL_NAME "Sandisk Sansa Clipv2"
9 #define FIRMWARE_OFFSET_FILE_DATA 8
10 #define FIRMWARE_OFFSET_FILE_CRC 0
12 #define HW_SAMPR_CAPS SAMPR_CAP_ALL
14 /* define this if you have recording possibility */
15 #define HAVE_RECORDING
17 #define REC_SAMPR_CAPS SAMPR_CAP_ALL
19 /* Define bitmask of input sources - recordable bitmask can be defined
20 explicitly if different */
21 #define INPUT_SRC_CAPS (SRC_CAP_MIC | SRC_CAP_FMRADIO)
23 /* define this if you have a bitmap LCD display */
24 #define HAVE_LCD_BITMAP
26 /* define this if you have a light associated with the buttons */
27 #define HAVE_BUTTON_LIGHT
29 /* define this if you have access to the quickscreen */
30 #define HAVE_QUICKSCREEN
32 /* define this if you have access to the pitchscreen */
33 #define HAVE_PITCHSCREEN
35 /* define this if you would like tagcache to build on this target */
36 #define HAVE_TAGCACHE
38 /* LCD dimensions */
39 #define LCD_WIDTH 128
40 #define LCD_HEIGHT 64
41 #define LCD_DEPTH 1
43 #define LCD_PIXELFORMAT VERTICAL_PACKING
44 #define HAVE_NEGATIVE_LCD /* bright on dark */
45 #define HAVE_LCD_SPLIT /* split display */
47 /* Display colours, for screenshots and sim (0xRRGGBB) */
48 #define LCD_DARKCOLOR 0x000000
49 #define LCD_BRIGHTCOLOR 0x000000
50 #define LCD_BL_DARKCOLOR 0x000000
51 #define LCD_BL_BRIGHTCOLOR 0x0de2e5
53 #define LCD_DARKCOLOR_2 0x000000
54 #define LCD_BRIGHTCOLOR_2 0x000000
55 #define LCD_BL_DARKCOLOR_2 0x000000
56 #define LCD_BL_BRIGHTCOLOR_2 0xffe60f
58 #define LCD_SPLIT_POS 16
59 #define LCD_SPLIT_LINES 2
61 /* define this if you have LCD enable function */
62 #define HAVE_LCD_ENABLE
64 #ifndef BOOTLOADER
65 /* Define this if your LCD can be put to sleep.
66 * HAVE_LCD_ENABLE should be defined as well. */
67 //#define HAVE_LCD_SLEEP
68 //#define HAVE_LCD_SLEEP_SETTING
69 #endif
71 /* define this if you can flip your LCD */
72 #define HAVE_LCD_FLIP
74 /* define this if you can invert the pixels */
75 #define HAVE_LCD_INVERT
77 /* Define this if your LCD can set contrast */
78 #define HAVE_LCD_CONTRAST
80 #define MIN_CONTRAST_SETTING 0
81 #define MAX_CONTRAST_SETTING 50
82 #define DEFAULT_CONTRAST_SETTING 30
84 #define IRAM_LCDFRAMEBUFFER IDATA_ATTR /* put the lcd frame buffer in IRAM */
86 #define CONFIG_KEYPAD SANSA_CLIP_PAD
88 /* define this if the target has volume keys which can be used in the lists */
89 #define HAVE_VOLUME_IN_LIST
91 /* Define this if you do software codec */
92 #define CONFIG_CODEC SWCODEC
93 /* There is no hardware tone control */
94 #define HAVE_SW_TONE_CONTROLS
96 /* AS3514 or newer */
97 #define HAVE_AS3514
98 #define HAVE_AS3543
100 /* define this if you have a real-time clock */
101 #ifndef BOOTLOADER
102 #define CONFIG_RTC RTC_AS3514
103 #endif
105 /* Define this if you have a software controlled poweroff */
106 #define HAVE_SW_POWEROFF
108 #define HAVE_FAT16SUPPORT
110 /* The number of bytes reserved for loadable codecs */
111 #define CODEC_SIZE (0x100000-0x8000)
113 /* The number of bytes reserved for loadable plugins */
114 #define PLUGIN_BUFFER_SIZE 0x80000
116 #define AB_REPEAT_ENABLE 1
118 /* FM Tuner */
119 #define CONFIG_TUNER SI4700 /* in fact SI4702 */
120 //#define HAVE_TUNER_PWR_CTRL
122 /* Define this for LCD backlight available */
123 #define HAVE_BACKLIGHT
125 /* define this if you have a flash memory storage */
126 #define HAVE_FLASH_STORAGE
128 /* define this if the flash memory uses the SecureDigital Memory Card protocol */
129 #define CONFIG_STORAGE STORAGE_SD
131 #define BATTERY_CAPACITY_DEFAULT 380 /* default battery capacity */
132 #define BATTERY_CAPACITY_MIN 380 /* min. capacity selectable */
133 #define BATTERY_CAPACITY_MAX 380 /* max. capacity selectable */
134 #define BATTERY_CAPACITY_INC 0 /* capacity increment */
135 #define BATTERY_TYPES_COUNT 1 /* only one type */
137 /* Charging implemented in a target-specific algorithm */
138 #define CONFIG_CHARGING CHARGING_TARGET
140 /* define this if the unit can be powered or charged via USB */
141 #define HAVE_USB_POWER
143 /** Non-simulator section **/
144 #ifndef SIMULATOR
146 /* Define this if you have a AMS AS3525v2 SoC */
147 #define CONFIG_CPU AS3525v2
149 /* Define this if you want to use the AS3525 i2c interface */
150 #define CONFIG_I2C I2C_AS3525 /* FIXME : looks similar to AS353x interface */
152 /* define this if the hardware can be powered off while charging */
153 /* Sansa can't be powered off while charging */
154 /* #define HAVE_POWEROFF_WHILE_CHARGING */
156 /* The start address index for ROM builds */
157 #define ROM_START 0x00000000
159 /* Define this to the CPU frequency */
160 #define CPU_FREQ 240000000
162 /* Type of LCD */
163 #define CONFIG_LCD LCD_SSD1303
165 #ifndef BOOTLOADER
167 #define USB_HANDLED_BY_OF
169 /* USB On-the-go */
170 #define CONFIG_USBOTG USBOTG_AS3525
172 /* enable these for the experimental usb stack */
173 #define HAVE_USBSTACK
174 #define USB_VENDOR_ID 0x0781
175 #define USB_PRODUCT_ID 0x7435
176 #endif /* BOOTLOADER */
178 /* Virtual LED (icon) */
179 #define CONFIG_LED LED_VIRTUAL
181 /* Define this if you have adjustable CPU frequency */
182 //#define HAVE_ADJUSTABLE_CPU_FREQ
184 #define BOOTFILE_EXT "sansa"
185 #define BOOTFILE "rockbox." BOOTFILE_EXT
186 #define BOOTDIR "/.rockbox"
188 #define ICODE_ATTR_TREMOR_NOT_MDCT
190 #define INCLUDE_TIMEOUT_API
192 #endif /* SIMULATOR */
194 /** Port-specific settings **/
196 /* Main LCD backlight brightness range and defaults */
197 #define MIN_BRIGHTNESS_SETTING 1
198 #define MAX_BRIGHTNESS_SETTING 12
199 #define DEFAULT_BRIGHTNESS_SETTING 6
201 /* Default recording levels */
202 #define DEFAULT_REC_MIC_GAIN 23
203 #define DEFAULT_REC_LEFT_GAIN 23
204 #define DEFAULT_REC_RIGHT_GAIN 23
206 /* Define this if a programmable hotkey is mapped */
207 //#define HAVE_HOTKEY