Initial commit for the Creative ZEN X-Fi2 and X-Fi3 ports
[maemo-rb.git] / firmware / export / config / creativezenxfi3.h
blob61ee9ed4bf131d7ebc2365defaaf5b13bd4d40a1
1 /*
2 * This config file is for the Creative Zen X-Fi3
3 */
4 #define TARGET_TREE /* this target is using the target tree system */
6 /* For Rolo and boot loader */
7 #define MODEL_NUMBER 83
8 #define MODEL_NAME "Creative Zen X-Fi3"
10 #define HW_SAMPR_CAPS SAMPR_CAP_ALL
12 /* define this if you have recording possibility */
13 #define HAVE_RECORDING
15 #define REC_SAMPR_CAPS SAMPR_CAP_ALL
17 /* Default recording levels */
18 #define DEFAULT_REC_MIC_GAIN 23
19 #define DEFAULT_REC_LEFT_GAIN 23
20 #define DEFAULT_REC_RIGHT_GAIN 23
22 /* Define bitmask of input sources - recordable bitmask can be defined
23 explicitly if different */
24 #define INPUT_SRC_CAPS (SRC_CAP_MIC | SRC_CAP_FMRADIO)
26 /* define this if you have a bitmap LCD display */
27 #define HAVE_LCD_BITMAP
28 /* define this if you have a colour LCD */
29 #define HAVE_LCD_COLOR
31 #ifndef BOOTLOADER
32 #define HAVE_ALBUMART
34 /* define this to enable bitmap scaling */
35 #define HAVE_BMP_SCALING
37 /* define this to enable JPEG decoding */
38 #define HAVE_JPEG
40 /* Define this if a programmable hotkey is mapped */
41 #define HAVE_HOTKEY
43 /* define this if you have access to the quickscreen */
44 #define HAVE_QUICKSCREEN
46 /* define this if you have a light associated with the buttons */
47 #define HAVE_BUTTON_LIGHT
48 #define HAVE_BUTTONLIGHT_BRIGHTNESS
50 /* define this if you have access to the pitchscreen */
51 #define HAVE_PITCHSCREEN
53 /* define this if you would like tagcache to build on this target */
54 #define HAVE_TAGCACHE
56 /* define this if the target has volume keys which can be used in the lists */
57 #define HAVE_VOLUME_IN_LIST
59 /* define this if you have LCD enable function */
60 #define HAVE_LCD_ENABLE
62 /* Define this if your LCD can be put to sleep. HAVE_LCD_ENABLE
63 should be defined as well.
64 #define HAVE_LCD_SLEEP
65 #define HAVE_LCD_SLEEP_SETTING
68 /* define this if you can flip your LCD
69 #define HAVE_LCD_FLIP
72 /* define this if you can invert the colours on your LCD
73 #define HAVE_LCD_INVERT
76 /* define this if you have a real-time clock */
77 #define CONFIG_RTC RTC_IMX233
79 /* define this if you have a real-time clock with alarm facilities */
80 #define HAVE_RTC_ALARM
82 #endif /* !BOOTLOADER */
84 /* define this if you have an i.MX23 codec */
85 #define HAVE_IMX233_CODEC
87 #define CONFIG_TUNER STFM1000
89 /* There is no hardware tone control */
90 #define HAVE_SW_TONE_CONTROLS
92 #define CONFIG_KEYPAD CREATIVE_ZENXFI3_PAD
94 /* Define this to enable morse code input */
95 #define HAVE_MORSE_INPUT
97 /* Define this if you do software codec */
98 #define CONFIG_CODEC SWCODEC
100 /* LCD dimensions */
101 #define LCD_WIDTH 176
102 #define LCD_HEIGHT 220
103 #define LCD_DEPTH 16 /* 65536 colours */
104 #define LCD_PIXELFORMAT RGB565 /* rgb565 */
106 /* Define this if you have a software controlled poweroff */
107 #define HAVE_SW_POWEROFF
109 /* Some Sansa Fuzes seem to be FAT16 formatted */
110 #define HAVE_FAT16SUPPORT
112 /* The number of bytes reserved for loadable codecs */
113 #define CODEC_SIZE 0x100000
115 /* The number of bytes reserved for loadable plugins */
116 #define PLUGIN_BUFFER_SIZE 0x80000
118 #define AB_REPEAT_ENABLE
120 /* Define this for LCD backlight available */
121 #define HAVE_BACKLIGHT
122 #define HAVE_BACKLIGHT_BRIGHTNESS
124 /* Main LCD backlight brightness range and defaults */
125 #define MIN_BRIGHTNESS_SETTING 0
126 #define MAX_BRIGHTNESS_SETTING 100
127 #define DEFAULT_BRIGHTNESS_SETTING 50
129 /* Which backlight fading type? */
130 #define CONFIG_BACKLIGHT_FADING BACKLIGHT_FADING_SW_SETTING
132 /* define this if you have a flash memory storage */
133 #define HAVE_FLASH_STORAGE
135 /* define this if the flash memory uses the SecureDigital Memory Card protocol */
136 #define CONFIG_STORAGE STORAGE_SD
137 #define NUM_DRIVES 2
138 #define HAVE_MULTIDRIVE
139 #define HAVE_MULTIVOLUME
140 #define HAVE_HOTSWAP
142 /* Extra threads: touchpad */
143 #define TARGET_EXTRA_THREADS 1
145 /* todo */
146 #define BATTERY_CAPACITY_DEFAULT 550 /* default battery capacity */
147 #define BATTERY_CAPACITY_MIN 550 /* min. capacity selectable */
148 #define BATTERY_CAPACITY_MAX 550 /* max. capacity selectable */
149 #define BATTERY_CAPACITY_INC 0 /* capacity increment */
150 #define BATTERY_TYPES_COUNT 1 /* only one type */
152 #define CONFIG_BATTERY_MEASURE VOLTAGE_MEASURE
154 /* Charging implemented in a target-specific algorithm */
155 #define CONFIG_CHARGING CHARGING_TARGET
157 /* define this if the unit can be powered or charged via USB */
158 #define HAVE_USB_POWER
160 /* Define this if you have an IMX233*/
161 #define CONFIG_CPU IMX233
163 /* Define this if you want to use the IMX233 i2c interface */
164 #define CONFIG_I2C I2C_IMX233
166 /* define current usage levels (based on battery bench) */
167 #define CURRENT_NORMAL 35
168 #define CURRENT_BACKLIGHT 30
169 #define CURRENT_RECORD CURRENT_NORMAL
171 /* maximum charging current */
172 #define CURRENT_MAX_CHG 200
174 /* Define this to the CPU frequency */
175 #define CPU_FREQ 454000000
177 /* Type of LCD */
178 #define CONFIG_LCD LCD_CREATIVEZXFI3
180 /* Offset ( in the firmware file's header ) to the file CRC and data. These are
181 only used when loading the old format rockbox.e200 file */
182 #define FIRMWARE_OFFSET_FILE_CRC 0x0
183 #define FIRMWARE_OFFSET_FILE_DATA 0x8
185 /* USB On-the-go */
186 #define CONFIG_USBOTG USBOTG_ARC
188 /* enable these for the experimental usb stack */
189 #define HAVE_USBSTACK
190 //#define USB_HANDLED_BY_OF
191 #define USE_ROCKBOX_USB
192 #define USB_VENDOR_ID 0x041e
193 #define USB_PRODUCT_ID 0x2020
194 #define HAVE_USB_HID_MOUSE
195 #define HAVE_BOOTLOADER_USB_MODE
197 /* The fuze+ actually interesting partition table does not use 512-byte sector
198 * (usually 2048 logical sector size) */
199 #define MAX_LOG_SECTOR_SIZE 2048
201 /* Define this if you have adjustable CPU frequency */
202 #define HAVE_ADJUSTABLE_CPU_FREQ
204 #define BOOTFILE_EXT "creative"
205 #define BOOTFILE "rockbox." BOOTFILE_EXT
206 #define BOOTDIR "/.rockbox"
208 #define INCLUDE_TIMEOUT_API