diff options
author | Amaury Pouly <amaury.pouly@gmail.com> | 2013-11-18 20:07:02 +0000 |
---|---|---|
committer | Amaury Pouly <amaury.pouly@gmail.com> | 2013-11-18 21:44:06 +0000 |
commit | 977a6c3ce7a2ab960590e9d997388cca2e4c29ee (patch) | |
tree | 092ef21d5f2123fee784de7d1ee719270c30c6de /firmware/export | |
parent | a8b816ae9cc00fe216e43d9bd9276b5d8cf12b25 (diff) | |
download | rockbox-977a6c3ce7a2ab960590e9d997388cca2e4c29ee.tar.gz rockbox-977a6c3ce7a2ab960590e9d997388cca2e4c29ee.zip |
Initial commit for the Creative ZEN V
Change-Id: I3408cfdf742ea5995d5c87bf76653f436e1ec2b0
Diffstat (limited to 'firmware/export')
-rw-r--r-- | firmware/export/config.h | 3 | ||||
-rw-r--r-- | firmware/export/config/creativezenv.h | 196 |
2 files changed, 199 insertions, 0 deletions
diff --git a/firmware/export/config.h b/firmware/export/config.h index ffe34fb81b..3c4c72c054 100644 --- a/firmware/export/config.h +++ b/firmware/export/config.h | |||
@@ -257,6 +257,7 @@ | |||
257 | #define LCD_CREATIVEZEN 55 /* as used by the Creative ZEN (X-Fi) (LMS250GF03-001(S6D0139)) */ | 257 | #define LCD_CREATIVEZEN 55 /* as used by the Creative ZEN (X-Fi) (LMS250GF03-001(S6D0139)) */ |
258 | #define LCD_CREATIVEZENMOZAIC 56 /* as used by the Creative ZEN Mozaic (FGD0801) */ | 258 | #define LCD_CREATIVEZENMOZAIC 56 /* as used by the Creative ZEN Mozaic (FGD0801) */ |
259 | #define LCD_ILI9342C 57 /* another type of lcd used by HiFi E.T MA9/MA8 */ | 259 | #define LCD_ILI9342C 57 /* another type of lcd used by HiFi E.T MA9/MA8 */ |
260 | #define LCD_CREATIVEZENV 58 /* as used by the Creativr Zen V (Plus) */ | ||
260 | 261 | ||
261 | /* LCD_PIXELFORMAT */ | 262 | /* LCD_PIXELFORMAT */ |
262 | #define HORIZONTAL_PACKING 1 | 263 | #define HORIZONTAL_PACKING 1 |
@@ -531,6 +532,8 @@ Lyre prototype 1 */ | |||
531 | #include "config/creativezenmozaic.h" | 532 | #include "config/creativezenmozaic.h" |
532 | #elif defined(CREATIVE_ZEN) | 533 | #elif defined(CREATIVE_ZEN) |
533 | #include "config/creativezen.h" | 534 | #include "config/creativezen.h" |
535 | #elif defined(CREATIVE_ZENV) | ||
536 | #include "config/creativezenv.h" | ||
534 | #elif defined(MA9) | 537 | #elif defined(MA9) |
535 | #include "config/hifietma9.h" | 538 | #include "config/hifietma9.h" |
536 | #elif defined(MA9C) | 539 | #elif defined(MA9C) |
diff --git a/firmware/export/config/creativezenv.h b/firmware/export/config/creativezenv.h new file mode 100644 index 0000000000..e1758488ec --- /dev/null +++ b/firmware/export/config/creativezenv.h | |||
@@ -0,0 +1,196 @@ | |||
1 | /* | ||
2 | * This config file is for the Creative ZEN V | ||
3 | */ | ||
4 | #define IMX233_SUBTARGET 3600 | ||
5 | #define IMX233_PACKAGE IMX233_BGA169 | ||
6 | #define IMX233_PARTITIONS IMX233_CREATIVE | ||
7 | |||
8 | /* For Rolo and boot loader */ | ||
9 | #define MODEL_NUMBER 85 | ||
10 | #define MODEL_NAME "Creative ZEN V" | ||
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 | ||
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 | /* define this if you would like tagcache to build on this target */ | ||
49 | #define HAVE_TAGCACHE | ||
50 | |||
51 | /* define this if the target has volume keys which can be used in the lists */ | ||
52 | #define HAVE_VOLUME_IN_LIST | ||
53 | |||
54 | /* define this if you have LCD enable function */ | ||
55 | //#define HAVE_LCD_ENABLE | ||
56 | |||
57 | /* Define this if your LCD can be put to sleep. HAVE_LCD_ENABLE | ||
58 | should be defined as well. | ||
59 | #define HAVE_LCD_SLEEP | ||
60 | #define HAVE_LCD_SLEEP_SETTING | ||
61 | */ | ||
62 | |||
63 | /* define this if you can flip your LCD | ||
64 | #define HAVE_LCD_FLIP | ||
65 | */ | ||
66 | |||
67 | /* define this if you can invert the colours on your LCD | ||
68 | #define HAVE_LCD_INVERT | ||
69 | */ | ||
70 | |||
71 | /* define this if you have a real-time clock */ | ||
72 | #define CONFIG_RTC RTC_IMX233 | ||
73 | |||
74 | /* define this if you have a real-time clock with alarm facilities */ | ||
75 | #define HAVE_RTC_ALARM | ||
76 | |||
77 | #endif /* !BOOTLOADER */ | ||
78 | |||
79 | /* define this if you have an i.MX23 codec */ | ||
80 | #define HAVE_IMX233_CODEC | ||
81 | |||
82 | /* There is no hardware tone control */ | ||
83 | #define HAVE_SW_TONE_CONTROLS | ||
84 | |||
85 | #define CONFIG_KEYPAD CREATIVE_ZEN_PAD | ||
86 | |||
87 | /* Define this to enable morse code input */ | ||
88 | #define HAVE_MORSE_INPUT | ||
89 | |||
90 | /* Define this if you do software codec */ | ||
91 | #define CONFIG_CODEC SWCODEC | ||
92 | |||
93 | /* LCD dimensions */ | ||
94 | #define LCD_WIDTH 132 | ||
95 | #define LCD_HEIGHT 132 | ||
96 | #define LCD_DEPTH 16 /* 65536 colours */ | ||
97 | #define LCD_PIXELFORMAT RGB565 /* rgb565 */ | ||
98 | |||
99 | /* Define this if you have a software controlled poweroff */ | ||
100 | #define HAVE_SW_POWEROFF | ||
101 | |||
102 | /* Some devices seem to be FAT16 formatted */ | ||
103 | #define HAVE_FAT16SUPPORT | ||
104 | |||
105 | /* The number of bytes reserved for loadable codecs */ | ||
106 | #define CODEC_SIZE 0x100000 | ||
107 | |||
108 | /* The number of bytes reserved for loadable plugins */ | ||
109 | #define PLUGIN_BUFFER_SIZE 0x80000 | ||
110 | |||
111 | #define AB_REPEAT_ENABLE | ||
112 | |||
113 | /* Define this for LCD backlight available */ | ||
114 | #define HAVE_BACKLIGHT | ||
115 | #define HAVE_BACKLIGHT_BRIGHTNESS | ||
116 | |||
117 | /* Main LCD backlight brightness range and defaults */ | ||
118 | #define MIN_BRIGHTNESS_SETTING 0 | ||
119 | #define MAX_BRIGHTNESS_SETTING 16 | ||
120 | #define DEFAULT_BRIGHTNESS_SETTING 10 | ||
121 | |||
122 | /* Which backlight fading type? */ | ||
123 | #define CONFIG_BACKLIGHT_FADING BACKLIGHT_FADING_SW_SETTING | ||
124 | |||
125 | /* define this if you have a flash memory storage */ | ||
126 | #define HAVE_FLASH_STORAGE | ||
127 | |||
128 | /* define this if the flash memory uses the SecureDigital Memory Card protocol */ | ||
129 | #define CONFIG_STORAGE STORAGE_ATA | ||
130 | |||
131 | /* todo */ | ||
132 | #define BATTERY_CAPACITY_DEFAULT 550 /* default battery capacity */ | ||
133 | #define BATTERY_CAPACITY_MIN 550 /* min. capacity selectable */ | ||
134 | #define BATTERY_CAPACITY_MAX 550 /* max. capacity selectable */ | ||
135 | #define BATTERY_CAPACITY_INC 0 /* capacity increment */ | ||
136 | #define BATTERY_TYPES_COUNT 1 /* only one type */ | ||
137 | |||
138 | #define CONFIG_BATTERY_MEASURE VOLTAGE_MEASURE | ||
139 | |||
140 | /* Charging implemented in a target-specific algorithm */ | ||
141 | //#warning FIXME change this to CHARGING_TARGET when powermgmt is ready | ||
142 | #define CONFIG_CHARGING CHARGING_TARGET | ||
143 | |||
144 | /* define this if the unit can be powered or charged via USB */ | ||
145 | #define HAVE_USB_POWER | ||
146 | |||
147 | /* Define this if you have an IMX233*/ | ||
148 | #define CONFIG_CPU IMX233 | ||
149 | |||
150 | /* Define this if you want to use the IMX233 i2c interface */ | ||
151 | #define CONFIG_I2C I2C_IMX233 | ||
152 | |||
153 | /* define current usage levels (based on battery bench) */ | ||
154 | #define CURRENT_NORMAL 35 | ||
155 | #define CURRENT_BACKLIGHT 30 | ||
156 | #define CURRENT_RECORD CURRENT_NORMAL | ||
157 | |||
158 | /* maximum charging current */ | ||
159 | #define CURRENT_MAX_CHG 200 | ||
160 | |||
161 | /* Define this to the CPU frequency */ | ||
162 | #define CPU_FREQ 454000000 | ||
163 | |||
164 | /* Type of LCD */ | ||
165 | #define CONFIG_LCD LCD_CREATIVEZENV | ||
166 | |||
167 | /* Offset ( in the firmware file's header ) to the file CRC and data. These are | ||
168 | only used when loading the old format rockbox.e200 file */ | ||
169 | #define FIRMWARE_OFFSET_FILE_CRC 0x0 | ||
170 | #define FIRMWARE_OFFSET_FILE_DATA 0x8 | ||
171 | |||
172 | /* USB On-the-go */ | ||
173 | #define CONFIG_USBOTG USBOTG_ARC | ||
174 | |||
175 | /* enable these for the experimental usb stack */ | ||
176 | #define HAVE_USBSTACK | ||
177 | //#define USB_HANDLED_BY_OF | ||
178 | #define USE_ROCKBOX_USB | ||
179 | #define USB_VENDOR_ID 0x041e | ||
180 | #define USB_PRODUCT_ID 0x4133 | ||
181 | #define HAVE_USB_HID_MOUSE | ||
182 | #define HAVE_BOOTLOADER_USB_MODE | ||
183 | |||
184 | /* Define this if you have adjustable CPU frequency */ | ||
185 | //#define HAVE_ADJUSTABLE_CPU_FREQ | ||
186 | |||
187 | /* Virtual LED (icon) */ | ||
188 | #define CONFIG_LED LED_VIRTUAL | ||
189 | |||
190 | #define BOOTFILE_EXT "creative" | ||
191 | #define BOOTFILE "rockbox." BOOTFILE_EXT | ||
192 | #define BOOTDIR "/.rockbox" | ||
193 | |||
194 | #define INCLUDE_TIMEOUT_API | ||
195 | |||
196 | |||