diff options
author | Björn Stenberg <bjorn@haxx.se> | 2009-12-07 12:19:08 +0000 |
---|---|---|
committer | Björn Stenberg <bjorn@haxx.se> | 2009-12-07 12:19:08 +0000 |
commit | c0740440ac9c830f59e8b5c9b3a8aecc49766506 (patch) | |
tree | 5ad47d05a66c0a1048d8bd6b304a66a8489248cd /firmware/export/config/ondavx747.h | |
parent | ee15637749e293139f31a32548850cb549d3533e (diff) | |
download | rockbox-c0740440ac9c830f59e8b5c9b3a8aecc49766506.tar.gz rockbox-c0740440ac9c830f59e8b5c9b3a8aecc49766506.zip |
Rename targets to be consistent in all places. (FS #10819). Take 2.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23883 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/export/config/ondavx747.h')
-rw-r--r-- | firmware/export/config/ondavx747.h | 224 |
1 files changed, 224 insertions, 0 deletions
diff --git a/firmware/export/config/ondavx747.h b/firmware/export/config/ondavx747.h new file mode 100644 index 0000000000..ac2032587a --- /dev/null +++ b/firmware/export/config/ondavx747.h | |||
@@ -0,0 +1,224 @@ | |||
1 | /*************************************************************************** | ||
2 | * __________ __ ___. | ||
3 | * Open \______ \ ____ ____ | | _\_ |__ _______ ___ | ||
4 | * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ / | ||
5 | * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < < | ||
6 | * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \ | ||
7 | * \/ \/ \/ \/ \/ | ||
8 | * $Id$ | ||
9 | * | ||
10 | * Copyright (C) 2008 by Maurus Cuelenaere | ||
11 | * | ||
12 | * This program is free software; you can redistribute it and/or | ||
13 | * modify it under the terms of the GNU General Public License | ||
14 | * as published by the Free Software Foundation; either version 2 | ||
15 | * of the License, or (at your option) any later version. | ||
16 | * | ||
17 | * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY | ||
18 | * KIND, either express or implied. | ||
19 | * | ||
20 | ****************************************************************************/ | ||
21 | |||
22 | /* | ||
23 | * This config file is for the Onda VX747(+)/VX777 | ||
24 | */ | ||
25 | |||
26 | #define TARGET_TREE /* this target is using the target tree system */ | ||
27 | |||
28 | #define CONFIG_SDRAM_START 0x80004000 | ||
29 | |||
30 | #ifdef ONDA_VX747P | ||
31 | #define MODEL_NAME "Onda VX747+" | ||
32 | #define MODEL_NUMBER 54 | ||
33 | /* Define something for camera interface... */ | ||
34 | #elif defined(ONDA_VX777) | ||
35 | #define MODEL_NAME "Onda VX777" | ||
36 | #define MODEL_NUMBER 61 | ||
37 | #else | ||
38 | #define MODEL_NAME "Onda VX747" | ||
39 | #define MODEL_NUMBER 45 | ||
40 | #endif | ||
41 | |||
42 | /* Support FAT16 for SD cards <= 2GB */ | ||
43 | #define HAVE_FAT16SUPPORT | ||
44 | |||
45 | /* ChinaChip NAND FTL */ | ||
46 | #define CONFIG_NAND NAND_CC | ||
47 | |||
48 | /* define this if you have a bitmap LCD display */ | ||
49 | #define HAVE_LCD_BITMAP | ||
50 | |||
51 | /* define this if you have a colour LCD */ | ||
52 | #define HAVE_LCD_COLOR | ||
53 | |||
54 | /* define this if you want album art for this target */ | ||
55 | #define HAVE_ALBUMART | ||
56 | |||
57 | /* define this to enable bitmap scaling */ | ||
58 | #define HAVE_BMP_SCALING | ||
59 | |||
60 | /* define this to enable JPEG decoding */ | ||
61 | #define HAVE_JPEG | ||
62 | |||
63 | /* define this if you have access to the quickscreen */ | ||
64 | #define HAVE_QUICKSCREEN | ||
65 | |||
66 | /* define this if you have access to the pitchscreen */ | ||
67 | #define HAVE_PITCHSCREEN | ||
68 | |||
69 | /* define this if you would like tagcache to build on this target */ | ||
70 | #define HAVE_TAGCACHE | ||
71 | |||
72 | /* define this if the target has volume keys which can be used in the lists */ | ||
73 | //#define HAVE_VOLUME_IN_LIST | ||
74 | |||
75 | /* LCD dimensions */ | ||
76 | #define CONFIG_LCD LCD_ONDAVX747 | ||
77 | |||
78 | #ifdef BOOTLOADER /* OF requires landscape */ | ||
79 | #define LCD_WIDTH 400 | ||
80 | #define LCD_HEIGHT 240 | ||
81 | #else | ||
82 | #define LCD_WIDTH 240 | ||
83 | #define LCD_HEIGHT 400 | ||
84 | #endif | ||
85 | |||
86 | #define LCD_DEPTH 16 /* 16bit colours */ | ||
87 | #define LCD_PIXELFORMAT RGB565 /* rgb565 */ | ||
88 | |||
89 | /* Define this if your LCD can be enabled/disabled */ | ||
90 | #define HAVE_LCD_ENABLE | ||
91 | |||
92 | #ifdef ONDA_VX777 | ||
93 | #define CONFIG_KEYPAD ONDAVX777_PAD | ||
94 | #else | ||
95 | #define CONFIG_KEYPAD ONDAVX747_PAD | ||
96 | #endif | ||
97 | #define HAVE_TOUCHSCREEN | ||
98 | #define HAVE_BUTTON_DATA | ||
99 | |||
100 | /* Define this if you do software codec */ | ||
101 | #define CONFIG_CODEC SWCODEC | ||
102 | |||
103 | /* define this if you have a real-time clock */ | ||
104 | #define CONFIG_RTC RTC_JZ47XX | ||
105 | |||
106 | /* Tuner config */ | ||
107 | #define CONFIG_TUNER TEA5767 | ||
108 | #define CONFIG_TUNER_XTAL 32768 | ||
109 | |||
110 | /* Define this for LCD backlight available */ | ||
111 | #define HAVE_BACKLIGHT | ||
112 | #define HAVE_BACKLIGHT_BRIGHTNESS | ||
113 | |||
114 | /* Which backlight fading type? */ | ||
115 | #define CONFIG_BACKLIGHT_FADING BACKLIGHT_FADING_SW_HW_REG | ||
116 | |||
117 | /* Main LCD backlight brightness range and defaults */ | ||
118 | #define MIN_BRIGHTNESS_SETTING 1 | ||
119 | #define MAX_BRIGHTNESS_SETTING 16 | ||
120 | #define DEFAULT_BRIGHTNESS_SETTING 16 /* "full brightness" */ | ||
121 | #define DEFAULT_DIMNESS_SETTING 1 /* "most dim" */ | ||
122 | |||
123 | /* Define this if you have a software controlled poweroff */ | ||
124 | #define HAVE_SW_POWEROFF | ||
125 | |||
126 | /* The number of bytes reserved for loadable codecs */ | ||
127 | #define CODEC_SIZE 0x100000 | ||
128 | |||
129 | /* The number of bytes reserved for loadable plugins */ | ||
130 | #define PLUGIN_BUFFER_SIZE 0x100000 | ||
131 | |||
132 | /* Define this if you have the Jz4740 internal codec */ | ||
133 | #define HAVE_JZ4740_CODEC | ||
134 | |||
135 | /* Define bitmask of input sources - recordable bitmask can be defined | ||
136 | explicitly if different */ | ||
137 | #define INPUT_SRC_CAPS (SRC_CAP_MIC | SRC_CAP_FMRADIO) | ||
138 | |||
139 | /* has no tone controls, so we use the software ones */ | ||
140 | #define HAVE_SW_TONE_CONTROLS | ||
141 | |||
142 | /* has no volume control, so we use the software ones */ | ||
143 | #define HAVE_SW_VOLUME_CONTROL | ||
144 | |||
145 | /* software controlled volume ranges from -73 -> 0 dB, other than that | ||
146 | is controlled by hardware */ | ||
147 | #define SW_VOLUME_MIN -73 | ||
148 | #define SW_VOLUME_MAX 0 | ||
149 | |||
150 | /* define the bitmask of hardware sample rates */ | ||
151 | #define HW_SAMPR_CAPS (SAMPR_CAP_48 | SAMPR_CAP_44 | SAMPR_CAP_32 | \ | ||
152 | SAMPR_CAP_24 | SAMPR_CAP_22 | SAMPR_CAP_16 | \ | ||
153 | SAMPR_CAP_12 | SAMPR_CAP_11 | SAMPR_CAP_8) | ||
154 | |||
155 | #define CONFIG_I2C I2C_JZ47XX | ||
156 | |||
157 | #define NEED_ADC_CLOSE 1 | ||
158 | |||
159 | #define BATTERY_CAPACITY_DEFAULT 1250 /* default battery capacity */ | ||
160 | #define BATTERY_CAPACITY_MIN 500 /* min. capacity selectable */ | ||
161 | #define BATTERY_CAPACITY_MAX 2500 /* max. capacity selectable */ | ||
162 | #define BATTERY_CAPACITY_INC 100 /* capacity increment */ | ||
163 | #define BATTERY_TYPES_COUNT 1 /* only one type */ | ||
164 | |||
165 | /* Hardware controlled charging with monitoring */ | ||
166 | #define CONFIG_CHARGING CHARGING_MONITOR | ||
167 | |||
168 | #define CFG_EXTAL 12000000 /* EXT clock: 12 Mhz */ | ||
169 | |||
170 | /* | ||
171 | No access to the NAND yet.. | ||
172 | |||
173 | #define CONFIG_STORAGE (STORAGE_NAND | STORAGE_SD) | ||
174 | #define NUM_DRIVES 2 | ||
175 | */ | ||
176 | #define CONFIG_STORAGE (STORAGE_SD) | ||
177 | #define HAVE_MULTIDRIVE | ||
178 | #define NUM_DRIVES 1 | ||
179 | #define HAVE_HOTSWAP_STORAGE_AS_MAIN | ||
180 | #define INCLUDE_TIMEOUT_API | ||
181 | |||
182 | /* Define this if media can be exchanged on the fly */ | ||
183 | #define HAVE_HOTSWAP | ||
184 | |||
185 | /* Define this if you have a Ingenic JZ4732 */ | ||
186 | #define CONFIG_CPU JZ4732 | ||
187 | |||
188 | /* define this if the hardware can be powered off while charging */ | ||
189 | #define HAVE_POWEROFF_WHILE_CHARGING | ||
190 | |||
191 | /* Define this if you have a speaker */ | ||
192 | #define HAVE_SPEAKER | ||
193 | |||
194 | /* Define this to the CPU frequency */ | ||
195 | #define CPU_FREQ 336000000 /* CPU clock: 336 MHz */ | ||
196 | |||
197 | /* define this if you have a flash memory storage */ | ||
198 | #define HAVE_FLASH_STORAGE | ||
199 | |||
200 | /* Offset ( in the firmware file's header ) to the file CRC */ | ||
201 | #define FIRMWARE_OFFSET_FILE_CRC 0 | ||
202 | |||
203 | /* Offset ( in the firmware file's header ) to the real data */ | ||
204 | #define FIRMWARE_OFFSET_FILE_DATA 8 | ||
205 | |||
206 | /* Define this if you have adjustable CPU frequency */ | ||
207 | #define HAVE_ADJUSTABLE_CPU_FREQ | ||
208 | |||
209 | #ifdef ONDA_VX747P | ||
210 | #define BOOTFILE_EXT "vx747p" | ||
211 | #elif defined(ONDA_VX777) | ||
212 | #define BOOTFILE_EXT "vx777" | ||
213 | #else | ||
214 | #define BOOTFILE_EXT "vx747" | ||
215 | #endif | ||
216 | #define BOOTFILE "rockbox." BOOTFILE_EXT | ||
217 | #define BOOTDIR "/.rockbox" | ||
218 | |||
219 | #define CONFIG_USBOTG USBOTG_JZ4740 | ||
220 | #define HAVE_USBSTACK | ||
221 | #define USE_ROCKBOX_USB | ||
222 | #define USB_VENDOR_ID 0x07C4 | ||
223 | #define USB_PRODUCT_ID 0xA4A5 | ||
224 | |||