Define HAVE_AS3514 for the other V2 targets (it was already defined for the e200v2)
[kugel-rb.git] / firmware / export / config-clip.h
blob231702564a936a691f35408f50af7addc8a7bbc3
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 40
8 #define MODEL_NAME "Sandisk Sansa Clip"
9 #define FIRMWARE_OFFSET_FILE_DATA 0
10 #define FIRMWARE_OFFSET_FILE_CRC 0
12 #if 0
13 #define HW_SAMPR_CAPS (SAMPR_CAP_44)
15 /* define this if you have recording possibility */
16 #define HAVE_RECORDING
18 #define REC_SAMPR_CAPS (SAMPR_CAP_22)
19 #define REC_FREQ_DEFAULT REC_FREQ_22 /* Default is not 44.1kHz */
20 #define REC_SAMPR_DEFAULT SAMPR_22
23 /* Define bitmask of input sources - recordable bitmask can be defined
24 explicitly if different */
25 #define INPUT_SRC_CAPS (SRC_CAP_MIC | SRC_CAP_FMRADIO)
26 #endif
28 /* define this if you have a bitmap LCD display */
29 #define HAVE_LCD_BITMAP
31 /* define this if you have a light associated with the buttons */
32 #define HAVE_BUTTON_LIGHT
34 /* define this if you have access to the quickscreen */
35 //#define HAVE_QUICKSCREEN
37 /* define this if you have access to the pitchscreen */
38 //#define HAVE_PITCHSCREEN
40 /* define this if you would like tagcache to build on this target */
41 //#define HAVE_TAGCACHE
43 /* LCD dimensions */
44 #define LCD_WIDTH 128
45 #define LCD_HEIGHT 64
46 #define LCD_DEPTH 1
47 #define LCD_PIXELFORMAT VERTICAL_PACKING
49 /* define this if you have LCD enable function */
50 #define HAVE_LCD_ENABLE
52 #ifndef BOOTLOADER
53 /* Define this if your LCD can be put to sleep.
54 * HAVE_LCD_ENABLE should be defined as well. */
55 //#define HAVE_LCD_SLEEP
56 //#define HAVE_LCD_SLEEP_SETTING
57 #endif
59 /* define this if you can flip your LCD */
60 #define HAVE_LCD_FLIP
62 /* #define IRAM_LCDFRAMEBUFFER IDATA_ATTR *//* put the lcd frame buffer in IRAM */
64 #define CONFIG_KEYPAD SANSA_CLIP_PAD
66 /* Define this if you do software codec */
67 #define CONFIG_CODEC SWCODEC
68 /* There is no hardware tone control */
69 #define HAVE_SW_TONE_CONTROLS
71 /* We're working on the assumption that the AS3525 has something
72 similar to the AS3514 for audio codec etc */
73 #define HAVE_AS3514
75 /* define this if you have a real-time clock */
76 #ifndef BOOTLOADER
77 #define CONFIG_RTC RTC_AS3525
78 #endif
80 /* Define this if you have a software controlled poweroff */
81 #define HAVE_SW_POWEROFF
83 #define HAVE_FAT16SUPPORT
85 /* The number of bytes reserved for loadable codecs */
86 #define CODEC_SIZE 0x100000
88 /* The number of bytes reserved for loadable plugins */
89 #define PLUGIN_BUFFER_SIZE 0x80000
91 #define AB_REPEAT_ENABLE 1
93 /* FM Tuner */
94 //#define CONFIG_TUNER
95 //#define HAVE_TUNER_PWR_CTRL
97 /* Define this for LCD backlight available */
98 #define HAVE_BACKLIGHT
99 //#define HAVE_BACKLIGHT_BRIGHTNESS /* TODO */
101 /* define this if you have a flash memory storage */
102 #define HAVE_FLASH_STORAGE
104 /* define this if the flash memory uses the SecureDigital Memory Card protocol */
105 #define CONFIG_STORAGE STORAGE_SD
107 #define BATTERY_CAPACITY_DEFAULT 750 /* default battery capacity */
108 #define BATTERY_CAPACITY_MIN 750 /* min. capacity selectable */
109 #define BATTERY_CAPACITY_MAX 750 /* max. capacity selectable */
110 #define BATTERY_CAPACITY_INC 0 /* capacity increment */
111 #define BATTERY_TYPES_COUNT 1 /* only one type */
113 /* Hardware controlled charging? FIXME */
114 #define CONFIG_CHARGING CHARGING_SIMPLE
116 /* define this if the unit can be powered or charged via USB */
117 #define HAVE_USB_POWER
119 /** Non-simulator section **/
120 #ifndef SIMULATOR
122 /* Define this if you have a AMS AS3525 SoC */
123 #define CONFIG_CPU AS3525
125 /* Define this if you want to use the AS3525 i2c interface */
126 #define CONFIG_I2C I2C_AS3525
128 /* define this if the hardware can be powered off while charging */
129 /* Sansa can't be powered off while charging */
130 /* #define HAVE_POWEROFF_WHILE_CHARGING */
132 /* The start address index for ROM builds */
133 #define ROM_START 0x00000000
135 /* Define this to the CPU frequency */
136 #define CPU_FREQ 250000000
138 /* Type of LCD */
139 #define CONFIG_LCD LCD_SSD1303
141 #ifndef BOOTLOADER
142 #define HAVE_MULTIVOLUME
143 #define HAVE_HOTSWAP
145 /* USB On-the-go */
146 #define CONFIG_USBOTG USBOTG_ARC
148 /* enable these for the experimental usb stack */
149 #define HAVE_USBSTACK
150 #define USB_VENDOR_ID 0x0781
151 #define USB_PRODUCT_ID 0x7433
152 #endif /* BOOTLOADER */
154 /* Virtual LED (icon) */
155 #define CONFIG_LED LED_VIRTUAL
157 /* Define this if you have adjustable CPU frequency */
158 #define HAVE_ADJUSTABLE_CPU_FREQ
160 #define BOOTFILE_EXT "sansa"
161 #define BOOTFILE "rockbox." BOOTFILE_EXT
162 #define BOOTDIR "/.rockbox"
164 #define ICODE_ATTR_TREMOR_NOT_MDCT
166 #define INCLUDE_TIMEOUT_API
168 #endif /* SIMULATOR */
170 /** Port-specific settings **/
172 /* Main LCD backlight brightness range and defaults */
173 #define MIN_BRIGHTNESS_SETTING 1
174 #define MAX_BRIGHTNESS_SETTING 12
175 #define DEFAULT_BRIGHTNESS_SETTING 6
177 /* Default recording levels */
178 #define DEFAULT_REC_MIC_GAIN 23
179 #define DEFAULT_REC_LEFT_GAIN 23
180 #define DEFAULT_REC_RIGHT_GAIN 23