Enable HID support, clean up usb-drv-as3525.c a bit, add a workaround for weird Linux...
[kugel-rb.git] / firmware / export / config / sansaclip.h
blobe0f1e2bd4e2199a930094d26edeb9e9e0b3ba91d
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 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 IBSS_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 /* We're working on the assumption that the AS3525 has something
97 similar to the AS3514 for audio codec etc */
98 #define HAVE_AS3514
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 0x48000 /* in IRAM */
113 /* The number of bytes reserved for loadable plugins */
114 #define PLUGIN_BUFFER_SIZE 0x10000
116 #define AB_REPEAT_ENABLE 1
118 /* FM Tuner */
119 #define CONFIG_TUNER SI4700 /* in fact SI4702 but let's hope it's compatible */
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 330 /* default battery capacity */
132 #define BATTERY_CAPACITY_MIN 330 /* min. capacity selectable */
133 #define BATTERY_CAPACITY_MAX 330 /* 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 /* Define this if you have a AMS AS3525 SoC */
144 #define CONFIG_CPU AS3525
146 /* Define how much SD sectors are reserved for OF */
147 #define AMS_OF_SIZE 0x5000
149 /* Define this if you want to use the AS3525 i2c interface */
150 #define CONFIG_I2C I2C_AS3525
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 /* define current usage levels (based on battery bench) */
157 #define CURRENT_NORMAL 42
158 #define CURRENT_BACKLIGHT 13
159 #define CURRENT_RECORD CURRENT_NORMAL
161 /* Define this to the CPU frequency */
162 #define CPU_FREQ 248000000
164 /* Type of LCD */
165 #define CONFIG_LCD LCD_SSD1303
167 #define CONFIG_USBOTG USBOTG_AS3525
169 /* enable these for the experimental usb stack */
170 #define HAVE_USBSTACK
171 //#define USB_HANDLED_BY_OF
172 #define USE_ROCKBOX_USB
173 #define USB_VENDOR_ID 0x0781
174 #define USB_PRODUCT_ID 0x7433
175 #define HAVE_USB_HID_MOUSE
177 /* Define this if you have adjustable CPU frequency */
178 #define HAVE_ADJUSTABLE_CPU_FREQ
180 #define BOOTFILE_EXT "sansa"
181 #define BOOTFILE "rockbox." BOOTFILE_EXT
182 #define BOOTDIR "/.rockbox"
184 #define ICODE_ATTR_TREMOR_NOT_MDCT
186 #define INCLUDE_TIMEOUT_API
188 /** Port-specific settings **/
190 /* Main LCD backlight brightness range and defaults */
191 #define MIN_BRIGHTNESS_SETTING 1
192 #define MAX_BRIGHTNESS_SETTING 12
193 #define DEFAULT_BRIGHTNESS_SETTING 6
195 /* Default recording levels */
196 #define DEFAULT_REC_MIC_GAIN 23
197 #define DEFAULT_REC_LEFT_GAIN 23
198 #define DEFAULT_REC_RIGHT_GAIN 23
200 /* Define this if a programmable hotkey is mapped */
201 //#define HAVE_HOTKEY