summaryrefslogtreecommitdiff
path: root/firmware/export
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/export')
-rw-r--r--firmware/export/config.h5
-rw-r--r--firmware/export/config/creativezenxfistyle.h200
2 files changed, 204 insertions, 1 deletions
diff --git a/firmware/export/config.h b/firmware/export/config.h
index 89e0036947..b72aa33fa9 100644
--- a/firmware/export/config.h
+++ b/firmware/export/config.h
@@ -259,9 +259,10 @@
259#define LCD_CREATIVEZEN 55 /* as used by the Creative ZEN (X-Fi) (LMS250GF03-001(S6D0139)) */ 259#define LCD_CREATIVEZEN 55 /* as used by the Creative ZEN (X-Fi) (LMS250GF03-001(S6D0139)) */
260#define LCD_CREATIVEZENMOZAIC 56 /* as used by the Creative ZEN Mozaic (FGD0801) */ 260#define LCD_CREATIVEZENMOZAIC 56 /* as used by the Creative ZEN Mozaic (FGD0801) */
261#define LCD_ILI9342C 57 /* another type of lcd used by HiFi E.T MA9/MA8 */ 261#define LCD_ILI9342C 57 /* another type of lcd used by HiFi E.T MA9/MA8 */
262#define LCD_CREATIVEZENV 58 /* as used by the Creativr Zen V (Plus) */ 262#define LCD_CREATIVEZENV 58 /* as used by the Creative Zen V (Plus) */
263#define LCD_SAMSUNGYPZ5 59 /* as used by Samsung YP-Z5 */ 263#define LCD_SAMSUNGYPZ5 59 /* as used by Samsung YP-Z5 */
264#define LCD_IHIFI 60 /* as used by IHIFI 760/960 */ 264#define LCD_IHIFI 60 /* as used by IHIFI 760/960 */
265#define LCD_CREATIVEZENXFISTYLE 61 /* as used by Creative Zen X-Fi Style */
265 266
266/* LCD_PIXELFORMAT */ 267/* LCD_PIXELFORMAT */
267#define HORIZONTAL_PACKING 1 268#define HORIZONTAL_PACKING 1
@@ -556,6 +557,8 @@ Lyre prototype 1 */
556#include "config/ihifi760.h" 557#include "config/ihifi760.h"
557#elif defined(IHIFI960) 558#elif defined(IHIFI960)
558#include "config/ihifi960.h" 559#include "config/ihifi960.h"
560#elif defined(CREATIVE_ZENXFISTYLE)
561#include "config/creativezenxfistyle.h"
559#else 562#else
560/* no known platform */ 563/* no known platform */
561#endif 564#endif
diff --git a/firmware/export/config/creativezenxfistyle.h b/firmware/export/config/creativezenxfistyle.h
new file mode 100644
index 0000000000..ad692debb4
--- /dev/null
+++ b/firmware/export/config/creativezenxfistyle.h
@@ -0,0 +1,200 @@
1/*
2 * This config file is for the Creative Zen X-Fi Style
3 */
4#define IMX233_SUBTARGET 3780
5#define IMX233_PACKAGE IMX233_BGA169
6#define IMX233_PARTITIONS IMX233_FREESCALE
7
8/* For Rolo and boot loader */
9#define MODEL_NUMBER 94
10#define MODEL_NAME "Creative Zen X-Fi Style"
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
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_ZEN_PAD
89#define HAVE_HEADPHONE_DETECTION
90
91/* Define this to enable morse code input */
92#define HAVE_MORSE_INPUT
93
94/* Define this if you do software codec */
95#define CONFIG_CODEC SWCODEC
96
97/* LCD dimensions */
98#define LCD_WIDTH 320
99#define LCD_HEIGHT 240
100#define LCD_DEPTH 16 /* 65536 colours */
101#define LCD_PIXELFORMAT RGB565 /* rgb565 */
102
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 */
113#define PLUGIN_BUFFER_SIZE 0x80000
114
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
135/* todo */
136#define BATTERY_CAPACITY_DEFAULT 550 /* default battery capacity */
137#define BATTERY_CAPACITY_MIN 550 /* min. capacity selectable */
138#define BATTERY_CAPACITY_MAX 550 /* max. capacity selectable */
139#define BATTERY_CAPACITY_INC 0 /* capacity increment */
140#define BATTERY_TYPES_COUNT 1 /* only one type */
141
142#define CONFIG_BATTERY_MEASURE VOLTAGE_MEASURE
143
144/* Charging implemented in a target-specific algorithm */
145#define CONFIG_CHARGING CHARGING_TARGET
146
147/* define this if the unit can be powered or charged via USB */
148#define HAVE_USB_POWER
149
150/* Define this if you have an IMX233*/
151#define CONFIG_CPU IMX233
152
153/* Define this if you want to use the IMX233 i2c interface */
154#define CONFIG_I2C I2C_IMX233
155
156/* define current usage levels (based on battery bench) */
157#define CURRENT_NORMAL 35
158#define CURRENT_BACKLIGHT 30
159#define CURRENT_RECORD CURRENT_NORMAL
160
161/* maximum charging current */
162#define CURRENT_MAX_CHG 200
163
164/* Define this to the CPU frequency */
165#define CPU_FREQ 454000000
166
167/* Type of LCD */
168#define CONFIG_LCD LCD_CREATIVEZENXFISTYLE
169
170/* Offset ( in the firmware file's header ) to the file CRC and data. These are
171 only used when loading the old format rockbox.e200 file */
172#define FIRMWARE_OFFSET_FILE_CRC 0x0
173#define FIRMWARE_OFFSET_FILE_DATA 0x8
174
175/* USB On-the-go */
176#define CONFIG_USBOTG USBOTG_ARC
177
178/* enable these for the experimental usb stack */
179#define HAVE_USBSTACK
180//#define USB_HANDLED_BY_OF
181#define USE_ROCKBOX_USB
182#define USB_VENDOR_ID 0x041e
183#define USB_PRODUCT_ID 0x200a
184#define HAVE_USB_HID_MOUSE
185#define HAVE_BOOTLOADER_USB_MODE
186
187/* The ZEN X-Fi Style actually interesting partition table does not use 512-byte sector
188 * (usually 2048 logical sector size) */
189#define MAX_LOG_SECTOR_SIZE 2048
190
191/* Define this if you have adjustable CPU frequency */
192#define HAVE_ADJUSTABLE_CPU_FREQ
193
194#define BOOTFILE_EXT "creative"
195#define BOOTFILE "rockbox." BOOTFILE_EXT
196#define BOOTDIR "/.rockbox"
197
198#define INCLUDE_TIMEOUT_API
199
200