blob: 9fff106e26b05803634d06366da346c0e89d3c0f [file] [log] [blame]
Amaury Pouly12c64a42012-05-19 16:09:46 +02001/*
2 * This config file is for the Creative Zen X-Fi2
3 */
Amaury Pouly81224c62013-06-16 14:39:58 +02004#define IMX233_SUBTARGET 3780
5#define IMX233_PACKAGE IMX233_BGA169
Amaury Pouly51ed6da2013-10-22 00:56:47 +02006#define IMX233_PARTITIONS IMX233_FREESCALE
Amaury Pouly12c64a42012-05-19 16:09:46 +02007
8/* For Rolo and boot loader */
9#define MODEL_NUMBER 82
10#define MODEL_NAME "Creative Zen X-Fi2"
William Wilgus41869a62017-02-05 21:07:20 +010011/* Define if boot data from bootloader has been enabled for the target */
12#define HAVE_BOOTDATA
Amaury Pouly12c64a42012-05-19 16:09:46 +020013
14#define HW_SAMPR_CAPS SAMPR_CAP_ALL
15
16/* define this if you have recording possibility */
17#define HAVE_RECORDING
18
19#define REC_SAMPR_CAPS SAMPR_CAP_ALL
20
21/* Default recording levels */
22#define DEFAULT_REC_MIC_GAIN 23
23#define DEFAULT_REC_LEFT_GAIN 23
24#define DEFAULT_REC_RIGHT_GAIN 23
25
26/* Define bitmask of input sources - recordable bitmask can be defined
27 explicitly if different */
28#define INPUT_SRC_CAPS (SRC_CAP_MIC | SRC_CAP_FMRADIO)
29
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
34
35#ifndef BOOTLOADER
36#define HAVE_ALBUMART
37
38/* define this to enable bitmap scaling */
39#define HAVE_BMP_SCALING
40
41/* define this to enable JPEG decoding */
42#define HAVE_JPEG
43
44/* Define this if a programmable hotkey is mapped */
45#define HAVE_HOTKEY
46
47/* define this if you have access to the quickscreen */
48#define HAVE_QUICKSCREEN
49
Amaury Pouly12c64a42012-05-19 16:09:46 +020050/* define this if you would like tagcache to build on this target */
51#define HAVE_TAGCACHE
52
53/* define this if the target has volume keys which can be used in the lists */
54#define HAVE_VOLUME_IN_LIST
55
56/* define this if you have LCD enable function */
57#define HAVE_LCD_ENABLE
58
59/* Define this if your LCD can be put to sleep. HAVE_LCD_ENABLE
60 should be defined as well.
61#define HAVE_LCD_SLEEP
62#define HAVE_LCD_SLEEP_SETTING
63*/
64
65/* define this if you can flip your LCD
66#define HAVE_LCD_FLIP
67*/
68
69/* define this if you can invert the colours on your LCD
70#define HAVE_LCD_INVERT
71*/
72
73/* define this if you have a real-time clock */
74#define CONFIG_RTC RTC_IMX233
75
76/* define this if you have a real-time clock with alarm facilities */
77#define HAVE_RTC_ALARM
78
79#endif /* !BOOTLOADER */
80
81/* define this if you have an i.MX23 codec */
82#define HAVE_IMX233_CODEC
83
Amaury Pouly6b3c29d2014-02-16 20:46:49 +010084/* Define this if you have a speaker */
85#define HAVE_SPEAKER
86
Amaury Pouly12c64a42012-05-19 16:09:46 +020087#define CONFIG_TUNER STFM1000
88
89/* There is no hardware tone control */
90#define HAVE_SW_TONE_CONTROLS
91
92#define CONFIG_KEYPAD CREATIVE_ZENXFI2_PAD
Amaury Poulyf0f17582014-02-16 20:47:09 +010093#define HAVE_HEADPHONE_DETECTION
Amaury Pouly12c64a42012-05-19 16:09:46 +020094#define HAVE_TOUCHSCREEN
95#define HAVE_BUTTON_DATA
96
97/* Define this to enable morse code input */
98#define HAVE_MORSE_INPUT
99
100/* Define this if you do software codec */
101#define CONFIG_CODEC SWCODEC
102
103/* LCD dimensions */
104#define LCD_WIDTH 240
105#define LCD_HEIGHT 400
106#define LCD_DEPTH 16 /* 65536 colours */
107#define LCD_PIXELFORMAT RGB565 /* rgb565 */
108#define LCD_DPI 150
109
110/* Define this if you have a software controlled poweroff */
111#define HAVE_SW_POWEROFF
112
113/* Some Sansa Fuzes seem to be FAT16 formatted */
114#define HAVE_FAT16SUPPORT
115
116/* The number of bytes reserved for loadable codecs */
117#define CODEC_SIZE 0x100000
118
119/* The number of bytes reserved for loadable plugins */
120#define PLUGIN_BUFFER_SIZE 0x80000
121
122#define AB_REPEAT_ENABLE
123
124/* Define this for LCD backlight available */
125#define HAVE_BACKLIGHT
126#define HAVE_BACKLIGHT_BRIGHTNESS
127
128/* Main LCD backlight brightness range and defaults */
129#define MIN_BRIGHTNESS_SETTING 0
130#define MAX_BRIGHTNESS_SETTING 100
131#define DEFAULT_BRIGHTNESS_SETTING 50
132
133/* Which backlight fading type? */
134#define CONFIG_BACKLIGHT_FADING BACKLIGHT_FADING_SW_SETTING
135
136/* define this if you have a flash memory storage */
137#define HAVE_FLASH_STORAGE
138
139/* define this if the flash memory uses the SecureDigital Memory Card protocol */
140#define CONFIG_STORAGE (/*STORAGE_NAND |*/ STORAGE_SD)
Amaury Pouly1f4f7362014-02-04 19:27:07 +0100141#define NUM_DRIVES 2
Amaury Pouly12c64a42012-05-19 16:09:46 +0200142#define HAVE_MULTIDRIVE
Amaury Pouly12c64a42012-05-19 16:09:46 +0200143#define HAVE_HOTSWAP_STORAGE_AS_MAIN
144#define HAVE_HOTSWAP
145#define CONFIG_NAND NAND_IMX233
146
147/* todo */
148#define BATTERY_CAPACITY_DEFAULT 550 /* default battery capacity */
149#define BATTERY_CAPACITY_MIN 550 /* min. capacity selectable */
150#define BATTERY_CAPACITY_MAX 550 /* max. capacity selectable */
151#define BATTERY_CAPACITY_INC 0 /* capacity increment */
152#define BATTERY_TYPES_COUNT 1 /* only one type */
153
154#define CONFIG_BATTERY_MEASURE VOLTAGE_MEASURE
155
156/* Charging implemented in a target-specific algorithm */
157#define CONFIG_CHARGING CHARGING_TARGET
158
159/* define this if the unit can be powered or charged via USB */
160#define HAVE_USB_POWER
161
162/* Define this if you have an IMX233*/
163#define CONFIG_CPU IMX233
164
165/* Define this if you want to use the IMX233 i2c interface */
166#define CONFIG_I2C I2C_IMX233
167
168/* define current usage levels (based on battery bench) */
169#define CURRENT_NORMAL 35
170#define CURRENT_BACKLIGHT 30
171#define CURRENT_RECORD CURRENT_NORMAL
172
173/* maximum charging current */
174#define CURRENT_MAX_CHG 200
175
176/* Define this to the CPU frequency */
177#define CPU_FREQ 454000000
178
179/* Type of LCD */
180#define CONFIG_LCD LCD_CREATIVEZXFI2
181
182/* Offset ( in the firmware file's header ) to the file CRC and data. These are
183 only used when loading the old format rockbox.e200 file */
184#define FIRMWARE_OFFSET_FILE_CRC 0x0
185#define FIRMWARE_OFFSET_FILE_DATA 0x8
186
187/* USB On-the-go */
188#define CONFIG_USBOTG USBOTG_ARC
189
190/* enable these for the experimental usb stack */
191#define HAVE_USBSTACK
192//#define USB_HANDLED_BY_OF
Amaury Pouly12c64a42012-05-19 16:09:46 +0200193#define USB_VENDOR_ID 0x041e
194#define USB_PRODUCT_ID 0x2020
195#define HAVE_USB_HID_MOUSE
196#define HAVE_BOOTLOADER_USB_MODE
197
198/* Define this if you have adjustable CPU frequency */
Amaury Poulye9f88462013-01-18 18:59:08 +0000199#define HAVE_ADJUSTABLE_CPU_FREQ
Amaury Pouly12c64a42012-05-19 16:09:46 +0200200
201#define BOOTFILE_EXT "creative"
202#define BOOTFILE "rockbox." BOOTFILE_EXT
203#define BOOTDIR "/.rockbox"
204
205#define INCLUDE_TIMEOUT_API