1 /***************************************************************************
3 * Open \______ \ ____ ____ | | _\_ |__ _______ ___
4 * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
5 * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
6 * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
10 * Copyright (C) 2008 by Maurus Cuelenaere
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.
17 * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
18 * KIND, either express or implied.
20 ****************************************************************************/
23 * This config file is for the Onda VX747(+)/VX777
26 #define TARGET_TREE /* this target is using the target tree system */
28 #define CONFIG_SDRAM_START 0x80004000
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
38 #define MODEL_NAME "Onda VX747"
39 #define MODEL_NUMBER 45
43 //#define HAVE_HOTSWAP
45 //#define CONFIG_STORAGE (STORAGE_NAND | STORAGE_SD)
46 #define CONFIG_STORAGE STORAGE_SD
48 /* Support FAT16 for SD cards <= 2GB */
49 #define HAVE_FAT16SUPPORT
51 /* ChinaChip NAND FTL */
52 #define CONFIG_NAND NAND_CC
54 /* define this if you have a bitmap LCD display */
55 #define HAVE_LCD_BITMAP
57 /* define this if you have a colour LCD */
58 #define HAVE_LCD_COLOR
60 /* define this if you want album art for this target */
63 /* define this to enable bitmap scaling */
64 #define HAVE_BMP_SCALING
66 /* define this to enable JPEG decoding */
69 /* define this if you have access to the quickscreen */
70 #define HAVE_QUICKSCREEN
72 /* define this if you have access to the pitchscreen */
73 #define HAVE_PITCHSCREEN
75 /* define this if you would like tagcache to build on this target */
78 /* define this if the target has volume keys which can be used in the lists */
79 //#define HAVE_VOLUME_IN_LIST
82 #define CONFIG_LCD LCD_ONDAVX747
85 #define LCD_HEIGHT 400
87 #define LCD_DEPTH 16 /* 16bit colours */
88 #define LCD_PIXELFORMAT RGB565 /* rgb565 */
90 /* Define this if your LCD can be enabled/disabled */
91 #define HAVE_LCD_ENABLE
94 #define CONFIG_KEYPAD ONDAVX777_PAD
96 #define CONFIG_KEYPAD ONDAVX747_PAD
98 #define HAVE_TOUCHSCREEN
99 #define HAVE_BUTTON_DATA
101 /* Define this if you do software codec */
102 #define CONFIG_CODEC SWCODEC
104 /* define this if you have a real-time clock */
105 #define CONFIG_RTC RTC_JZ47XX
108 #define CONFIG_TUNER TEA5767
109 #define CONFIG_TUNER_XTAL 32768
111 /* Define this for LCD backlight available */
112 #define HAVE_BACKLIGHT
113 #define HAVE_BACKLIGHT_BRIGHTNESS
115 /* Which backlight fading type? */
116 #define CONFIG_BACKLIGHT_FADING BACKLIGHT_FADING_SW_HW_REG
118 /* Main LCD backlight brightness range and defaults */
119 #define MIN_BRIGHTNESS_SETTING 1
120 #define MAX_BRIGHTNESS_SETTING 30
121 #define DEFAULT_BRIGHTNESS_SETTING 30 /* "full brightness" */
122 #define DEFAULT_DIMNESS_SETTING 1 /* "most dim" */
124 /* Define this if you have a software controlled poweroff */
125 #define HAVE_SW_POWEROFF
127 /* The number of bytes reserved for loadable codecs */
128 #define CODEC_SIZE 0x100000
130 /* The number of bytes reserved for loadable plugins */
131 #define PLUGIN_BUFFER_SIZE 0x100000
133 /* Define this if you have the Jz4740 internal codec */
134 #define HAVE_JZ4740_CODEC
136 /* Define bitmask of input sources - recordable bitmask can be defined
137 explicitly if different */
138 #define INPUT_SRC_CAPS (SRC_CAP_MIC | SRC_CAP_FMRADIO)
140 /* has no tone controls, so we use the software ones */
141 #define HAVE_SW_TONE_CONTROLS
143 /* define the bitmask of hardware sample rates */
144 #define HW_SAMPR_CAPS (SAMPR_CAP_48 | SAMPR_CAP_44 | SAMPR_CAP_32 | \
145 SAMPR_CAP_24 | SAMPR_CAP_22 | SAMPR_CAP_16 | \
146 SAMPR_CAP_12 | SAMPR_CAP_11 | SAMPR_CAP_8)
148 #define CONFIG_I2C I2C_JZ47XX
150 #define NEED_ADC_CLOSE 1
152 #define BATTERY_CAPACITY_DEFAULT 1250 /* default battery capacity */
153 #define BATTERY_CAPACITY_MIN 500 /* min. capacity selectable */
154 #define BATTERY_CAPACITY_MAX 2500 /* max. capacity selectable */
155 #define BATTERY_CAPACITY_INC 100 /* capacity increment */
156 #define BATTERY_TYPES_COUNT 1 /* only one type */
158 /* Hardware controlled charging with monitoring */
159 #define CONFIG_CHARGING CHARGING_MONITOR
161 #define CFG_EXTAL 12000000 /* EXT clock: 12 Mhz */
165 /* Define this if you have a Ingenic JZ4732 */
166 #define CONFIG_CPU JZ4732
168 /* define this if the hardware can be powered off while charging */
169 #define HAVE_POWEROFF_WHILE_CHARGING
171 /* Define this if you have a speaker */
174 /* Define this to the CPU frequency */
175 #define CPU_FREQ 336000000 /* CPU clock: 336 MHz */
177 /* define this if you have a flash memory storage */
178 #define HAVE_FLASH_STORAGE
180 /* Virtual LED (icon) */
181 #define CONFIG_LED LED_VIRTUAL
183 /* Offset ( in the firmware file's header ) to the file CRC */
184 #define FIRMWARE_OFFSET_FILE_CRC 0
186 /* Offset ( in the firmware file's header ) to the real data */
187 #define FIRMWARE_OFFSET_FILE_DATA 8
189 /* Define this if you have adjustable CPU frequency */
190 /* #define HAVE_ADJUSTABLE_CPU_FREQ */
191 #define CPUFREQ_NORMAL 336000000 /* CPU clock: 336 MHz */
192 #define CPUFREQ_MAX 336000000 /* CPU clock: 336 MHz */
195 #define BOOTFILE_EXT "vx747p"
197 #define BOOTFILE_EXT "vx747"
199 #define BOOTFILE "rockbox." BOOTFILE_EXT
200 #define BOOTDIR "/.rockbox"
202 #define CONFIG_USBOTG USBOTG_JZ4740
203 #define HAVE_USBSTACK
204 #define USE_ROCKBOX_USB
205 #define USB_VENDOR_ID 0x07C4
206 #define USB_PRODUCT_ID 0xA4A5