blob: fbe114d5c7b745ee3ae82d0dbb876e4c44a5d661 [file] [log] [blame]
Amaury Pouly2778e762013-10-26 13:20:24 +02001/*
2 * This config file is for the Creative Zen X-Fi
3 */
4#define IMX233_SUBTARGET 3700
5#define IMX233_PACKAGE IMX233_BGA169
6#define IMX233_PARTITIONS IMX233_CREATIVE
7
8/* For Rolo and boot loader */
9#define MODEL_NUMBER 86
10#define MODEL_NAME "Creative Zen X-Fi"
11
12#define HW_SAMPR_CAPS SAMPR_CAP_ALL
13
14/* define this if you have recording possibility */
15#define HAVE_RECORDING
16
17#define REC_SAMPR_CAPS SAMPR_CAP_ALL
18
19/* Default recording levels */
20#define DEFAULT_REC_MIC_GAIN 23
21#define DEFAULT_REC_LEFT_GAIN 23
22#define DEFAULT_REC_RIGHT_GAIN 23
23
24/* Define bitmask of input sources - recordable bitmask can be defined
25 explicitly if different */
26#define INPUT_SRC_CAPS (SRC_CAP_MIC | SRC_CAP_FMRADIO)
27
28/* define this if you have a bitmap LCD display */
29#define HAVE_LCD_BITMAP
30/* define this if you have a colour LCD */
31#define HAVE_LCD_COLOR
32
33#ifndef BOOTLOADER
34#define HAVE_ALBUMART
35
36/* define this to enable bitmap scaling */
37#define HAVE_BMP_SCALING
38
39/* define this to enable JPEG decoding */
40#define HAVE_JPEG
41
42/* Define this if a programmable hotkey is mapped */
43#define HAVE_HOTKEY
44
45/* define this if you have access to the quickscreen */
46#define HAVE_QUICKSCREEN
47
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
Amaury Pouly2778e762013-10-26 13:20:24 +020055/* Define this if your LCD can be put to sleep. HAVE_LCD_ENABLE
56 should be defined as well.
57#define HAVE_LCD_SLEEP
58#define HAVE_LCD_SLEEP_SETTING
59*/
60
61/* define this if you can flip your LCD
62#define HAVE_LCD_FLIP
63*/
64
65/* define this if you can invert the colours on your LCD
66#define HAVE_LCD_INVERT
67*/
68
69/* define this if you have a real-time clock */
70#define CONFIG_RTC RTC_IMX233
71
72/* define this if you have a real-time clock with alarm facilities */
73#define HAVE_RTC_ALARM
74
75#endif /* !BOOTLOADER */
76
Amaury Pouly17abb102014-02-15 14:47:33 +010077/* define this if you have LCD enable function */
78#define HAVE_LCD_ENABLE
79
Amaury Pouly2778e762013-10-26 13:20:24 +020080/* define this if you have an i.MX23 codec */
81#define HAVE_IMX233_CODEC
82
Amaury Pouly2a71c082014-03-09 01:25:51 +010083/* Define this if you have a speaker */
84#define HAVE_SPEAKER
85
Amaury Pouly2778e762013-10-26 13:20:24 +020086#define CONFIG_TUNER TEA5760
87
88/* There is no hardware tone control */
89#define HAVE_SW_TONE_CONTROLS
90
91#define CONFIG_KEYPAD CREATIVE_ZEN_PAD
Amaury Poulyb1ee21d2013-11-08 13:05:02 +000092#define HAVE_HEADPHONE_DETECTION
Amaury Pouly2778e762013-10-26 13:20:24 +020093
94/* Define this to enable morse code input */
95#define HAVE_MORSE_INPUT
96
97/* Define this if you do software codec */
98#define CONFIG_CODEC SWCODEC
99
100/* LCD dimensions */
101#define LCD_WIDTH 320
102#define LCD_HEIGHT 240
Thomas Martitz62524232014-01-23 08:23:34 +0100103/* sqrt(320^2 + 240^2) / 2.5 = 160.0 */
104#define LCD_DPI 160
Amaury Poulyd9d20922014-06-25 09:22:19 +0200105#define LCD_DEPTH 24 /* 16M colours */
106#define LCD_PIXELFORMAT RGB888 /* rgb888 */
Amaury Pouly2778e762013-10-26 13:20:24 +0200107
108/* Define this if you have a software controlled poweroff */
109#define HAVE_SW_POWEROFF
110
111/* Some Sansa Fuzes seem to be FAT16 formatted */
112#define HAVE_FAT16SUPPORT
113
114/* The number of bytes reserved for loadable codecs */
115#define CODEC_SIZE 0x100000
116
117/* The number of bytes reserved for loadable plugins */
Amaury Poulye08331e2014-07-17 10:40:17 +0200118#define PLUGIN_BUFFER_SIZE 0x100000
Amaury Pouly2778e762013-10-26 13:20:24 +0200119
120#define AB_REPEAT_ENABLE
121
122/* Define this for LCD backlight available */
123#define HAVE_BACKLIGHT
124#define HAVE_BACKLIGHT_BRIGHTNESS
125
126/* Main LCD backlight brightness range and defaults */
127#define MIN_BRIGHTNESS_SETTING 0
128#define MAX_BRIGHTNESS_SETTING 100
129#define DEFAULT_BRIGHTNESS_SETTING 50
130
131/* Which backlight fading type? */
132#define CONFIG_BACKLIGHT_FADING BACKLIGHT_FADING_SW_SETTING
133
134/* define this if you have a flash memory storage */
135#define HAVE_FLASH_STORAGE
136
137/* define this if the flash memory uses the SecureDigital Memory Card protocol */
138#define CONFIG_STORAGE STORAGE_SD
139#define NUM_DRIVES 2
140#define HAVE_MULTIDRIVE
Amaury Pouly2778e762013-10-26 13:20:24 +0200141#define HAVE_HOTSWAP
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_CREATIVEZEN
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
Amaury Pouly2778e762013-10-26 13:20:24 +0200189#define USB_VENDOR_ID 0x041e
190#define USB_PRODUCT_ID 0x4162
191#define HAVE_USB_HID_MOUSE
192#define HAVE_BOOTLOADER_USB_MODE
193
194/* Define this if you have adjustable CPU frequency */
Amaury Pouly88799b32014-03-08 18:49:58 +0100195#define HAVE_ADJUSTABLE_CPU_FREQ
Amaury Pouly2778e762013-10-26 13:20:24 +0200196
197#define BOOTFILE_EXT "creative"
198#define BOOTFILE "rockbox." BOOTFILE_EXT
199#define BOOTDIR "/.rockbox"
200
201#define INCLUDE_TIMEOUT_API
202