summaryrefslogtreecommitdiff
path: root/firmware/export
diff options
context:
space:
mode:
authorAmaury Pouly <amaury.pouly@gmail.com>2012-05-19 16:09:46 +0200
committerAmaury Pouly <amaury.pouly@gmail.com>2012-05-19 16:10:52 +0200
commit12c64a4b79e043d8e8d77a278b340310f867a588 (patch)
treeb34b56131d6eb0e06340a8a6d7e32843027d0f59 /firmware/export
parente09c1e3d43665d04ae0ce2f288ba695b5abc3622 (diff)
downloadrockbox-12c64a4b79e043d8e8d77a278b340310f867a588.tar.gz
rockbox-12c64a4b79e043d8e8d77a278b340310f867a588.zip
Initial commit for the Creative ZEN X-Fi2 and X-Fi3 ports
These are really similar devices so one commit for both is ok. Change-Id: I8bd1d3fef1eb6d00aaadfb7af56c771f62d0c9c3
Diffstat (limited to 'firmware/export')
-rw-r--r--firmware/export/config.h8
-rw-r--r--firmware/export/config/creativezenxfi2.h202
-rw-r--r--firmware/export/config/creativezenxfi3.h208
3 files changed, 418 insertions, 0 deletions
diff --git a/firmware/export/config.h b/firmware/export/config.h
index e17b152e39..f654609966 100644
--- a/firmware/export/config.h
+++ b/firmware/export/config.h
@@ -145,6 +145,8 @@
145#define HM801_PAD 51 145#define HM801_PAD 51
146#define SANSA_CONNECT_PAD 52 146#define SANSA_CONNECT_PAD 52
147#define SAMSUNG_YPR0_PAD 53 147#define SAMSUNG_YPR0_PAD 53
148#define CREATIVE_ZENXFI2_PAD 54
149#define CREATIVE_ZENXFI3_PAD 55
148 150
149/* CONFIG_REMOTE_KEYPAD */ 151/* CONFIG_REMOTE_KEYPAD */
150#define H100_REMOTE 1 152#define H100_REMOTE 1
@@ -244,6 +246,8 @@
244#define LCD_CONNECT 45 /* as used by the Sandisk Sansa Connect */ 246#define LCD_CONNECT 45 /* as used by the Sandisk Sansa Connect */
245#define LCD_GIGABEATS 46 247#define LCD_GIGABEATS 46
246#define LCD_YPR0 47 248#define LCD_YPR0 47
249#define LCD_CREATIVEZXFI2 48 /* as used by the Creative Zen X-Fi2 */
250#define LCD_CREATIVEZXFI3 49 /* as used by the Creative Zen X-Fi3 */
247 251
248/* LCD_PIXELFORMAT */ 252/* LCD_PIXELFORMAT */
249#define HORIZONTAL_PACKING 1 253#define HORIZONTAL_PACKING 1
@@ -417,6 +421,10 @@ Lyre prototype 1 */
417#include "config/zenvisionm60gb.h" 421#include "config/zenvisionm60gb.h"
418#elif defined(CREATIVE_ZV) 422#elif defined(CREATIVE_ZV)
419#include "config/zenvision.h" 423#include "config/zenvision.h"
424#elif defined(CREATIVE_ZENXFI2)
425#include "config/creativezenxfi2.h"
426#elif defined(CREATIVE_ZENXFI3)
427#include "config/creativezenxfi3.h"
420#elif defined(PHILIPS_SA9200) 428#elif defined(PHILIPS_SA9200)
421#include "config/gogearsa9200.h" 429#include "config/gogearsa9200.h"
422#elif defined(PHILIPS_HDD1630) 430#elif defined(PHILIPS_HDD1630)
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
diff --git a/firmware/export/config/creativezenxfi3.h b/firmware/export/config/creativezenxfi3.h
new file mode 100644
index 0000000000..61ee9ed4bf
--- /dev/null
+++ b/firmware/export/config/creativezenxfi3.h
@@ -0,0 +1,208 @@
1/*
2 * This config file is for the Creative Zen X-Fi3
3 */
4#define TARGET_TREE /* this target is using the target tree system */
5
6/* For Rolo and boot loader */
7#define MODEL_NUMBER 83
8#define MODEL_NAME "Creative Zen X-Fi3"
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 a light associated with the buttons */
47#define HAVE_BUTTON_LIGHT
48#define HAVE_BUTTONLIGHT_BRIGHTNESS
49
50/* define this if you have access to the pitchscreen */
51#define HAVE_PITCHSCREEN
52
53/* define this if you would like tagcache to build on this target */
54#define HAVE_TAGCACHE
55
56/* define this if the target has volume keys which can be used in the lists */
57#define HAVE_VOLUME_IN_LIST
58
59/* define this if you have LCD enable function */
60#define HAVE_LCD_ENABLE
61
62/* Define this if your LCD can be put to sleep. HAVE_LCD_ENABLE
63 should be defined as well.
64#define HAVE_LCD_SLEEP
65#define HAVE_LCD_SLEEP_SETTING
66*/
67
68/* define this if you can flip your LCD
69#define HAVE_LCD_FLIP
70*/
71
72/* define this if you can invert the colours on your LCD
73#define HAVE_LCD_INVERT
74*/
75
76/* define this if you have a real-time clock */
77#define CONFIG_RTC RTC_IMX233
78
79/* define this if you have a real-time clock with alarm facilities */
80#define HAVE_RTC_ALARM
81
82#endif /* !BOOTLOADER */
83
84/* define this if you have an i.MX23 codec */
85#define HAVE_IMX233_CODEC
86
87#define CONFIG_TUNER STFM1000
88
89/* There is no hardware tone control */
90#define HAVE_SW_TONE_CONTROLS
91
92#define CONFIG_KEYPAD CREATIVE_ZENXFI3_PAD
93
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 176
102#define LCD_HEIGHT 220
103#define LCD_DEPTH 16 /* 65536 colours */
104#define LCD_PIXELFORMAT RGB565 /* rgb565 */
105
106/* Define this if you have a software controlled poweroff */
107#define HAVE_SW_POWEROFF
108
109/* Some Sansa Fuzes seem to be FAT16 formatted */
110#define HAVE_FAT16SUPPORT
111
112/* The number of bytes reserved for loadable codecs */
113#define CODEC_SIZE 0x100000
114
115/* The number of bytes reserved for loadable plugins */
116#define PLUGIN_BUFFER_SIZE 0x80000
117
118#define AB_REPEAT_ENABLE
119
120/* Define this for LCD backlight available */
121#define HAVE_BACKLIGHT
122#define HAVE_BACKLIGHT_BRIGHTNESS
123
124/* Main LCD backlight brightness range and defaults */
125#define MIN_BRIGHTNESS_SETTING 0
126#define MAX_BRIGHTNESS_SETTING 100
127#define DEFAULT_BRIGHTNESS_SETTING 50
128
129/* Which backlight fading type? */
130#define CONFIG_BACKLIGHT_FADING BACKLIGHT_FADING_SW_SETTING
131
132/* define this if you have a flash memory storage */
133#define HAVE_FLASH_STORAGE
134
135/* define this if the flash memory uses the SecureDigital Memory Card protocol */
136#define CONFIG_STORAGE STORAGE_SD
137#define NUM_DRIVES 2
138#define HAVE_MULTIDRIVE
139#define HAVE_MULTIVOLUME
140#define HAVE_HOTSWAP
141
142/* Extra threads: touchpad */
143#define TARGET_EXTRA_THREADS 1
144
145/* todo */
146#define BATTERY_CAPACITY_DEFAULT 550 /* default battery capacity */
147#define BATTERY_CAPACITY_MIN 550 /* min. capacity selectable */
148#define BATTERY_CAPACITY_MAX 550 /* max. capacity selectable */
149#define BATTERY_CAPACITY_INC 0 /* capacity increment */
150#define BATTERY_TYPES_COUNT 1 /* only one type */
151
152#define CONFIG_BATTERY_MEASURE VOLTAGE_MEASURE
153
154/* Charging implemented in a target-specific algorithm */
155#define CONFIG_CHARGING CHARGING_TARGET
156
157/* define this if the unit can be powered or charged via USB */
158#define HAVE_USB_POWER
159
160/* Define this if you have an IMX233*/
161#define CONFIG_CPU IMX233
162
163/* Define this if you want to use the IMX233 i2c interface */
164#define CONFIG_I2C I2C_IMX233
165
166/* define current usage levels (based on battery bench) */
167#define CURRENT_NORMAL 35
168#define CURRENT_BACKLIGHT 30
169#define CURRENT_RECORD CURRENT_NORMAL
170
171/* maximum charging current */
172#define CURRENT_MAX_CHG 200
173
174/* Define this to the CPU frequency */
175#define CPU_FREQ 454000000
176
177/* Type of LCD */
178#define CONFIG_LCD LCD_CREATIVEZXFI3
179
180/* Offset ( in the firmware file's header ) to the file CRC and data. These are
181 only used when loading the old format rockbox.e200 file */
182#define FIRMWARE_OFFSET_FILE_CRC 0x0
183#define FIRMWARE_OFFSET_FILE_DATA 0x8
184
185/* USB On-the-go */
186#define CONFIG_USBOTG USBOTG_ARC
187
188/* enable these for the experimental usb stack */
189#define HAVE_USBSTACK
190//#define USB_HANDLED_BY_OF
191#define USE_ROCKBOX_USB
192#define USB_VENDOR_ID 0x041e
193#define USB_PRODUCT_ID 0x2020
194#define HAVE_USB_HID_MOUSE
195#define HAVE_BOOTLOADER_USB_MODE
196
197/* The fuze+ actually interesting partition table does not use 512-byte sector
198 * (usually 2048 logical sector size) */
199#define MAX_LOG_SECTOR_SIZE 2048
200
201/* Define this if you have adjustable CPU frequency */
202#define HAVE_ADJUSTABLE_CPU_FREQ
203
204#define BOOTFILE_EXT "creative"
205#define BOOTFILE "rockbox." BOOTFILE_EXT
206#define BOOTDIR "/.rockbox"
207
208#define INCLUDE_TIMEOUT_API