Update battery capacities of the sansa clip and sansa fuze.
[kugel-rb.git] / firmware / export / config-fuze.h
blob4cef71ed58368a12f5d34c4ac583d868ba2edab1
1 /*
2 * This config file is for the Sandisk Sansa Fuze
3 */
4 #define TARGET_TREE /* this target is using the target tree system */
6 /* For Rolo and boot loader */
7 #define MODEL_NUMBER 43
8 #define MODEL_NAME "Sandisk Sansa Fuze"
10 #define HW_SAMPR_CAPS (SAMPR_CAP_44)
12 #if 0
13 /* define this if you have recording possibility */
14 #define HAVE_RECORDING
16 #define REC_SAMPR_CAPS (SAMPR_CAP_22)
17 #define REC_FREQ_DEFAULT REC_FREQ_22 /* Default is not 44.1kHz */
18 #define REC_SAMPR_DEFAULT SAMPR_22
20 /* Default recording levels */
21 #define DEFAULT_REC_MIC_GAIN 23
22 #define DEFAULT_REC_LEFT_GAIN 23
23 #define DEFAULT_REC_RIGHT_GAIN 23
25 /* Define bitmask of input sources - recordable bitmask can be defined
26 explicitly if different */
27 #endif
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
32 /* define this if you have a colour LCD */
33 #define HAVE_LCD_COLOR
35 #ifndef BOOTLOADER/* define this if you want album art for this target */
36 #define HAVE_ALBUMART
38 /* define this if you have a light associated with the buttons */
39 #define HAVE_BUTTON_LIGHT
41 /* define this if you have access to the quickscreen */
42 #define HAVE_QUICKSCREEN
44 /* define this if you have access to the pitchscreen */
45 #define HAVE_PITCHSCREEN
47 /* define this if you would like tagcache to build on this target */
48 #define HAVE_TAGCACHE
50 /* define this if you have LCD enable function */
51 #define HAVE_LCD_ENABLE
53 /* Define this if your LCD can be put to sleep. HAVE_LCD_ENABLE
54 should be defined as well.
55 #define HAVE_LCD_SLEEP
56 #define HAVE_LCD_SLEEP_SETTING
59 /* define this if you can flip your LCD */
60 //#define HAVE_LCD_FLIP
62 /* define this if you can invert the colours on your LCD */
63 //#define HAVE_LCD_INVERT
66 /* define this if you have a real-time clock */
67 #define CONFIG_RTC RTC_AS3514
69 /* There is no hardware tone control */
70 #define HAVE_SW_TONE_CONTROLS
72 #endif /* !BOOTLOADER */
74 /* put the lcd frame buffer in IRAM */
75 #define IRAM_LCDFRAMEBUFFER IBSS_ATTR
77 #define CONFIG_KEYPAD SANSA_FUZE_PAD
79 /* Define this if you do software codec */
80 #define CONFIG_CODEC SWCODEC
83 /* LCD dimensions */
84 #define LCD_WIDTH 220
85 #define LCD_HEIGHT 176
86 #define LCD_DEPTH 16 /* 65536 colours */
87 #define LCD_PIXELFORMAT RGB565 /* rgb565 */
90 /* We're working on the assumption that the AS3525 has something
91 similar to the AS3514 for audio codec etc */
92 #define HAVE_AS3514
94 /* Define this if you have a software controlled poweroff */
95 #define HAVE_SW_POWEROFF
97 /* Some Sansa Fuzes seem to be FAT16 formatted */
98 #define HAVE_FAT16SUPPORT
100 /* The number of bytes reserved for loadable codecs */
101 #define CODEC_SIZE 0x100000
103 /* The number of bytes reserved for loadable plugins */
104 #define PLUGIN_BUFFER_SIZE 0x80000
106 #define AB_REPEAT_ENABLE 1
108 /* FM Tuner - suspected to be the SI4702 */
109 #define CONFIG_TUNER SI4700
110 /* #define HAVE_TUNER_PWR_CTRL */
112 /* Define this for LCD backlight available */
113 #define HAVE_BACKLIGHT
114 #define HAVE_BACKLIGHT_BRIGHTNESS
116 /* Main LCD backlight brightness range and defaults */
117 #define MIN_BRIGHTNESS_SETTING 1
118 #define MAX_BRIGHTNESS_SETTING 12
119 #define DEFAULT_BRIGHTNESS_SETTING 6
121 /* Which backlight fading type? */
122 #define CONFIG_BACKLIGHT_FADING BACKLIGHT_FADING_SW_SETTING
124 /* define this if the unit uses a scrollwheel for navigation */
125 #define HAVE_SCROLLWHEEL
126 /* define to activate advanced wheel acceleration code */
127 #define HAVE_WHEEL_ACCELERATION
128 /* define from which rotation speed [degree/sec] on the acceleration starts */
129 #define WHEEL_ACCEL_START 540
130 /* define type of acceleration (1 = ^2, 2 = ^3, 3 = ^4) */
131 #define WHEEL_ACCELERATION 1
133 /* define this if you have a flash memory storage */
134 #define HAVE_FLASH_STORAGE
136 /* define this if the flash memory uses the SecureDigital Memory Card protocol */
137 #define CONFIG_STORAGE STORAGE_SD
139 #define BATTERY_CAPACITY_DEFAULT 550 /* default battery capacity */
140 #define BATTERY_CAPACITY_MIN 550 /* min. capacity selectable */
141 #define BATTERY_CAPACITY_MAX 550 /* max. capacity selectable */
142 #define BATTERY_CAPACITY_INC 0 /* capacity increment */
143 #define BATTERY_TYPES_COUNT 1 /* only one type */
145 /* Hardware controlled charging? FIXME */
146 #define CONFIG_CHARGING CHARGING_SIMPLE
148 /* define this if the unit can be powered or charged via USB */
149 #define HAVE_USB_POWER
151 /** Non-simulator section **/
152 #ifndef SIMULATOR
154 /* Define this if you have an AMS AS3525*/
155 #define CONFIG_CPU AS3525
157 /* Define this if you want to use the AS2525 i2c interface */
158 #define CONFIG_I2C I2C_AS3525
160 /* Define this to the CPU frequency */
161 #define CPU_FREQ 250000000
163 /* Type of LCD */
164 #define CONFIG_LCD LCD_FUZE
166 /* Offset ( in the firmware file's header ) to the file CRC and data. These are
167 only used when loading the old format rockbox.e200 file */
168 #define FIRMWARE_OFFSET_FILE_CRC 0x0
169 #define FIRMWARE_OFFSET_FILE_DATA 0x8
171 #ifndef BOOTLOADER
172 #define HAVE_MULTIVOLUME
173 #define HAVE_HOTSWAP
174 #endif
176 #define USB_HANDLED_BY_OF
178 /* USB On-the-go */
179 #define CONFIG_USBOTG USBOTG_AS3525
181 /* enable these for the experimental usb stack */
182 //#define HAVE_USBSTACK
183 #define USB_VENDOR_ID 0x0781
184 #define USB_PRODUCT_ID 0x7423
186 /* Virtual LED (icon) */
187 #define CONFIG_LED LED_VIRTUAL
189 /* Define this if you have adjustable CPU frequency */
190 #define HAVE_ADJUSTABLE_CPU_FREQ
192 #define BOOTFILE_EXT "sansa"
193 #define BOOTFILE "rockbox." BOOTFILE_EXT
194 #define BOOTDIR "/.rockbox"
196 #define ICODE_ATTR_TREMOR_NOT_MDCT
198 #define INCLUDE_TIMEOUT_API
200 #endif /* SIMULATOR */