summaryrefslogtreecommitdiff
path: root/firmware/export/config/creativezenxfi2.h
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/export/config/creativezenxfi2.h')
-rw-r--r--firmware/export/config/creativezenxfi2.h202
1 files changed, 202 insertions, 0 deletions
diff --git a/firmware/export/config/creativezenxfi2.h b/firmware/export/config/creativezenxfi2.h
new file mode 100644
index 0000000000..432d7949d3
--- /dev/null
+++ b/firmware/export/config/creativezenxfi2.h
@@ -0,0 +1,202 @@
1/*
2 * This config file is for the Creative Zen X-Fi2
3 */
4#define TARGET_TREE /* this target is using the target tree system */
5
6/* For Rolo and boot loader */
7#define MODEL_NUMBER 82
8#define MODEL_NAME "Creative Zen X-Fi2"
9
10#define HW_SAMPR_CAPS SAMPR_CAP_ALL
11
12/* define this if you have recording possibility */
13#define HAVE_RECORDING
14
15#define REC_SAMPR_CAPS SAMPR_CAP_ALL
16
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
21
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)
25
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
30
31#ifndef BOOTLOADER
32#define HAVE_ALBUMART
33
34/* define this to enable bitmap scaling */
35#define HAVE_BMP_SCALING
36
37/* define this to enable JPEG decoding */
38#define HAVE_JPEG
39
40/* Define this if a programmable hotkey is mapped */
41#define HAVE_HOTKEY
42
43/* define this if you have access to the quickscreen */
44#define HAVE_QUICKSCREEN
45
46/* define this if you have access to the pitchscreen */
47#define HAVE_PITCHSCREEN
48
49/* define this if you would like tagcache to build on this target */
50#define HAVE_TAGCACHE
51
52/* define this if the target has volume keys which can be used in the lists */
53#define HAVE_VOLUME_IN_LIST
54
55/* define this if you have LCD enable function */
56#define HAVE_LCD_ENABLE
57
58/* Define this if your LCD can be put to sleep. HAVE_LCD_ENABLE
59 should be defined as well.
60#define HAVE_LCD_SLEEP
61#define HAVE_LCD_SLEEP_SETTING
62*/
63
64/* define this if you can flip your LCD
65#define HAVE_LCD_FLIP
66*/
67
68/* define this if you can invert the colours on your LCD
69#define HAVE_LCD_INVERT
70*/
71
72/* define this if you have a real-time clock */
73#define CONFIG_RTC RTC_IMX233
74
75/* define this if you have a real-time clock with alarm facilities */
76#define HAVE_RTC_ALARM
77
78#endif /* !BOOTLOADER */
79
80/* define this if you have an i.MX23 codec */
81#define HAVE_IMX233_CODEC
82
83#define CONFIG_TUNER STFM1000
84
85/* There is no hardware tone control */
86#define HAVE_SW_TONE_CONTROLS
87
88#define CONFIG_KEYPAD CREATIVE_ZENXFI2_PAD
89#define HAVE_TOUCHSCREEN
90#define HAVE_BUTTON_DATA
91
92/* Define this to enable morse code input */
93#define HAVE_MORSE_INPUT
94
95/* Define this if you do software codec */
96#define CONFIG_CODEC SWCODEC
97
98/* LCD dimensions */
99#define LCD_WIDTH 240
100#define LCD_HEIGHT 400
101#define LCD_DEPTH 16 /* 65536 colours */
102#define LCD_PIXELFORMAT RGB565 /* rgb565 */
103#define LCD_DPI 150
104
105/* Define this if you have a software controlled poweroff */
106#define HAVE_SW_POWEROFF
107
108/* Some Sansa Fuzes seem to be FAT16 formatted */
109#define HAVE_FAT16SUPPORT
110
111/* The number of bytes reserved for loadable codecs */
112#define CODEC_SIZE 0x100000
113
114/* The number of bytes reserved for loadable plugins */
115#define PLUGIN_BUFFER_SIZE 0x80000
116
117#define AB_REPEAT_ENABLE
118
119/* Define this for LCD backlight available */
120#define HAVE_BACKLIGHT
121#define HAVE_BACKLIGHT_BRIGHTNESS
122
123/* Main LCD backlight brightness range and defaults */
124#define MIN_BRIGHTNESS_SETTING 0
125#define MAX_BRIGHTNESS_SETTING 100
126#define DEFAULT_BRIGHTNESS_SETTING 50
127
128/* Which backlight fading type? */
129#define CONFIG_BACKLIGHT_FADING BACKLIGHT_FADING_SW_SETTING
130
131/* define this if you have a flash memory storage */
132#define HAVE_FLASH_STORAGE
133
134/* define this if the flash memory uses the SecureDigital Memory Card protocol */
135#define CONFIG_STORAGE (/*STORAGE_NAND |*/ STORAGE_SD)
136#define NUM_DRIVES 1
137#define HAVE_MULTIDRIVE
138#define HAVE_MULTIVOLUME
139#define HAVE_HOTSWAP_STORAGE_AS_MAIN
140#define HAVE_HOTSWAP
141#define CONFIG_NAND NAND_IMX233
142
143/* todo */
144#define BATTERY_CAPACITY_DEFAULT 550 /* default battery capacity */
145#define BATTERY_CAPACITY_MIN 550 /* min. capacity selectable */
146#define BATTERY_CAPACITY_MAX 550 /* max. capacity selectable */
147#define BATTERY_CAPACITY_INC 0 /* capacity increment */
148#define BATTERY_TYPES_COUNT 1 /* only one type */
149
150#define CONFIG_BATTERY_MEASURE VOLTAGE_MEASURE
151
152/* Charging implemented in a target-specific algorithm */
153#define CONFIG_CHARGING CHARGING_TARGET
154
155/* define this if the unit can be powered or charged via USB */
156#define HAVE_USB_POWER
157
158/* Define this if you have an IMX233*/
159#define CONFIG_CPU IMX233
160
161/* Define this if you want to use the IMX233 i2c interface */
162#define CONFIG_I2C I2C_IMX233
163
164/* define current usage levels (based on battery bench) */
165#define CURRENT_NORMAL 35
166#define CURRENT_BACKLIGHT 30
167#define CURRENT_RECORD CURRENT_NORMAL
168
169/* maximum charging current */
170#define CURRENT_MAX_CHG 200
171
172/* Define this to the CPU frequency */
173#define CPU_FREQ 454000000
174
175/* Type of LCD */
176#define CONFIG_LCD LCD_CREATIVEZXFI2
177
178/* Offset ( in the firmware file's header ) to the file CRC and data. These are
179 only used when loading the old format rockbox.e200 file */
180#define FIRMWARE_OFFSET_FILE_CRC 0x0
181#define FIRMWARE_OFFSET_FILE_DATA 0x8
182
183/* USB On-the-go */
184#define CONFIG_USBOTG USBOTG_ARC
185
186/* enable these for the experimental usb stack */
187#define HAVE_USBSTACK
188//#define USB_HANDLED_BY_OF
189#define USE_ROCKBOX_USB
190#define USB_VENDOR_ID 0x041e
191#define USB_PRODUCT_ID 0x2020
192#define HAVE_USB_HID_MOUSE
193#define HAVE_BOOTLOADER_USB_MODE
194
195/* Define this if you have adjustable CPU frequency */
196#define HAVE_ADJUSTABLE_CPU_FREQ
197
198#define BOOTFILE_EXT "creative"
199#define BOOTFILE "rockbox." BOOTFILE_EXT
200#define BOOTDIR "/.rockbox"
201
202#define INCLUDE_TIMEOUT_API