blob: 0033b7d4eba3209bdfb114fce9a587bc916b316f [file] [log] [blame]
Amaury Pouly2778e762013-10-26 13:20:24 +02001/*
2 * This config file is for the Creative Zen
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 90
10#define MODEL_NAME "Creative Zen"
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 Pouly2778e762013-10-26 13:20:24 +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
50
51/* define this if you would like tagcache to build on this target */
52#define HAVE_TAGCACHE
53
Amaury Pouly2778e762013-10-26 13:20:24 +020054/* Define this if your LCD can be put to sleep. HAVE_LCD_ENABLE
55 should be defined as well.
56#define HAVE_LCD_SLEEP
57#define HAVE_LCD_SLEEP_SETTING
58*/
59
60/* define this if you can flip your LCD
61#define HAVE_LCD_FLIP
62*/
63
64/* define this if you can invert the colours on your LCD
65#define HAVE_LCD_INVERT
66*/
67
68/* define this if you have a real-time clock */
69#define CONFIG_RTC RTC_IMX233
70
71/* define this if you have a real-time clock with alarm facilities */
72#define HAVE_RTC_ALARM
73
74#endif /* !BOOTLOADER */
75
Amaury Poulye1003b12014-02-10 22:29:31 +010076/* define this if you have LCD enable function */
77#define HAVE_LCD_ENABLE
78
Amaury Pouly2778e762013-10-26 13:20:24 +020079/* define this if you have an i.MX23 codec */
80#define HAVE_IMX233_CODEC
81
82#define CONFIG_TUNER TEA5760
83
84/* There is no hardware tone control */
85#define HAVE_SW_TONE_CONTROLS
86
87#define CONFIG_KEYPAD CREATIVE_ZEN_PAD
88
89/* Define this to enable morse code input */
90#define HAVE_MORSE_INPUT
91
92/* Define this if you do software codec */
93#define CONFIG_CODEC SWCODEC
94
95/* LCD dimensions */
96#define LCD_WIDTH 320
97#define LCD_HEIGHT 240
Thomas Martitz62524232014-01-23 08:23:34 +010098/* sqrt(320^2 + 240^2) / 2.5 = 160.0 */
99#define LCD_DPI 160
Amaury Poulyd9d20922014-06-25 09:22:19 +0200100#define LCD_DEPTH 24 /* 16M colours */
101#define LCD_PIXELFORMAT RGB888 /* rgb888 */
Amaury Pouly2778e762013-10-26 13:20:24 +0200102
103/* Define this if you have a software controlled poweroff */
104#define HAVE_SW_POWEROFF
105
106/* Some Sansa Fuzes seem to be FAT16 formatted */
107#define HAVE_FAT16SUPPORT
108
109/* The number of bytes reserved for loadable codecs */
110#define CODEC_SIZE 0x100000
111
112/* The number of bytes reserved for loadable plugins */
Amaury Poulye08331e2014-07-17 10:40:17 +0200113#define PLUGIN_BUFFER_SIZE 0x100000
Amaury Pouly2778e762013-10-26 13:20:24 +0200114
115#define AB_REPEAT_ENABLE
116
117/* Define this for LCD backlight available */
118#define HAVE_BACKLIGHT
119#define HAVE_BACKLIGHT_BRIGHTNESS
120
121/* Main LCD backlight brightness range and defaults */
122#define MIN_BRIGHTNESS_SETTING 0
123#define MAX_BRIGHTNESS_SETTING 100
124#define DEFAULT_BRIGHTNESS_SETTING 50
125
126/* Which backlight fading type? */
127#define CONFIG_BACKLIGHT_FADING BACKLIGHT_FADING_SW_SETTING
128
129/* define this if you have a flash memory storage */
130#define HAVE_FLASH_STORAGE
131
132/* define this if the flash memory uses the SecureDigital Memory Card protocol */
133#define CONFIG_STORAGE STORAGE_SD
134#define NUM_DRIVES 2
135#define HAVE_MULTIDRIVE
Solomon Peachy349e1112019-07-31 11:07:43 -0400136#define HAVE_MULTIVOLUME
Amaury Pouly2778e762013-10-26 13:20:24 +0200137#define HAVE_HOTSWAP
138
139/* todo */
140#define BATTERY_CAPACITY_DEFAULT 550 /* default battery capacity */
141#define BATTERY_CAPACITY_MIN 550 /* min. capacity selectable */
142#define BATTERY_CAPACITY_MAX 550 /* max. capacity selectable */
143#define BATTERY_CAPACITY_INC 0 /* capacity increment */
144#define BATTERY_TYPES_COUNT 1 /* only one type */
145
146#define CONFIG_BATTERY_MEASURE VOLTAGE_MEASURE
147
148/* Charging implemented in a target-specific algorithm */
149#define CONFIG_CHARGING CHARGING_TARGET
150
151/* define this if the unit can be powered or charged via USB */
152#define HAVE_USB_POWER
153
154/* Define this if you have an IMX233*/
155#define CONFIG_CPU IMX233
156
157/* Define this if you want to use the IMX233 i2c interface */
158#define CONFIG_I2C I2C_IMX233
159
160/* define current usage levels (based on battery bench) */
161#define CURRENT_NORMAL 35
162#define CURRENT_BACKLIGHT 30
163#define CURRENT_RECORD CURRENT_NORMAL
164
165/* maximum charging current */
166#define CURRENT_MAX_CHG 200
167
168/* Define this to the CPU frequency */
169#define CPU_FREQ 454000000
170
171/* Type of LCD */
172#define CONFIG_LCD LCD_CREATIVEZEN
173
174/* Offset ( in the firmware file's header ) to the file CRC and data. These are
175 only used when loading the old format rockbox.e200 file */
176#define FIRMWARE_OFFSET_FILE_CRC 0x0
177#define FIRMWARE_OFFSET_FILE_DATA 0x8
178
179/* USB On-the-go */
180#define CONFIG_USBOTG USBOTG_ARC
181
182/* enable these for the experimental usb stack */
183#define HAVE_USBSTACK
184//#define USB_HANDLED_BY_OF
Amaury Pouly2778e762013-10-26 13:20:24 +0200185#define USB_VENDOR_ID 0x041e
186#define USB_PRODUCT_ID 0x4162
187#define HAVE_USB_HID_MOUSE
188#define HAVE_BOOTLOADER_USB_MODE
189
190/* Define this if you have adjustable CPU frequency */
Amaury Pouly88799b32014-03-08 18:49:58 +0100191#define HAVE_ADJUSTABLE_CPU_FREQ
Amaury Pouly2778e762013-10-26 13:20:24 +0200192
193#define BOOTFILE_EXT "creative"
194#define BOOTFILE "rockbox." BOOTFILE_EXT
195#define BOOTDIR "/.rockbox"
196
197#define INCLUDE_TIMEOUT_API
198
199