fuzev2: prevent button light flickering when accessing µSD
[kugel-rb.git] / firmware / export / config / ondavx747.h
blobae80cac5628419205f0ad89383c78145de4a53d2
1 /***************************************************************************
2 * __________ __ ___.
3 * Open \______ \ ____ ____ | | _\_ |__ _______ ___
4 * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
5 * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
6 * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
7 * \/ \/ \/ \/ \/
8 * $Id$
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
30 #ifdef ONDA_VX747P
31 #define MODEL_NAME "Onda VX747+"
32 #define MODEL_NUMBER 54
33 /* Define something for camera interface... */
34 #else
35 #define MODEL_NAME "Onda VX747"
36 #define MODEL_NUMBER 45
37 #endif
39 /* Support FAT16 for SD cards <= 2GB */
40 #define HAVE_FAT16SUPPORT
42 /* ChinaChip NAND FTL */
43 #define CONFIG_NAND NAND_CC
45 /* define this if you have a bitmap LCD display */
46 #define HAVE_LCD_BITMAP
48 /* define this if you have a colour LCD */
49 #define HAVE_LCD_COLOR
51 /* define this if you want album art for this target */
52 #define HAVE_ALBUMART
54 /* define this to enable bitmap scaling */
55 #define HAVE_BMP_SCALING
57 /* define this to enable JPEG decoding */
58 #define HAVE_JPEG
60 /* define this if you have access to the quickscreen */
61 #define HAVE_QUICKSCREEN
63 /* define this if you have access to the pitchscreen */
64 #define HAVE_PITCHSCREEN
66 /* define this if you would like tagcache to build on this target */
67 #define HAVE_TAGCACHE
69 /* define this if the target has volume keys which can be used in the lists */
70 //#define HAVE_VOLUME_IN_LIST
72 /* LCD dimensions */
73 #define CONFIG_LCD LCD_ONDAVX747
75 #ifdef BOOTLOADER /* OF requires landscape */
76 #define LCD_WIDTH 400
77 #define LCD_HEIGHT 240
78 #else
79 #define LCD_WIDTH 240
80 #define LCD_HEIGHT 400
81 #endif
83 #define LCD_DEPTH 16 /* 16bit colours */
84 #define LCD_PIXELFORMAT RGB565 /* rgb565 */
86 /* Define this if your LCD can be enabled/disabled */
87 #define HAVE_LCD_ENABLE
89 #define CONFIG_KEYPAD ONDAVX747_PAD
91 #define HAVE_TOUCHSCREEN
92 #define HAVE_BUTTON_DATA
94 /* Define this if you do software codec */
95 #define CONFIG_CODEC SWCODEC
97 /* define this if you have a real-time clock */
98 #define CONFIG_RTC RTC_JZ47XX
100 /* Tuner config */
101 #define CONFIG_TUNER TEA5767
102 #define CONFIG_TUNER_XTAL 32768
104 /* Define this for LCD backlight available */
105 #define HAVE_BACKLIGHT
106 #define HAVE_BACKLIGHT_BRIGHTNESS
108 /* Which backlight fading type? */
109 #define CONFIG_BACKLIGHT_FADING BACKLIGHT_FADING_SW_HW_REG
111 /* Main LCD backlight brightness range and defaults */
112 #define MIN_BRIGHTNESS_SETTING 1
113 #define MAX_BRIGHTNESS_SETTING 16
114 #define DEFAULT_BRIGHTNESS_SETTING 16 /* "full brightness" */
115 #define DEFAULT_DIMNESS_SETTING 1 /* "most dim" */
117 /* Define this if you have a software controlled poweroff */
118 #define HAVE_SW_POWEROFF
120 /* The number of bytes reserved for loadable codecs */
121 #define CODEC_SIZE 0x100000
123 /* The number of bytes reserved for loadable plugins */
124 #define PLUGIN_BUFFER_SIZE 0x100000
126 /* Define this if you have the Jz4740 internal codec */
127 #define HAVE_JZ4740_CODEC
129 /* Define bitmask of input sources - recordable bitmask can be defined
130 explicitly if different */
131 #define INPUT_SRC_CAPS (SRC_CAP_MIC | SRC_CAP_FMRADIO)
133 /* has no tone controls, so we use the software ones */
134 #define HAVE_SW_TONE_CONTROLS
136 /* has no volume control, so we use the software ones */
137 #define HAVE_SW_VOLUME_CONTROL
139 /* software controlled volume ranges from -73 -> 0 dB, other than that
140 is controlled by hardware */
141 #define SW_VOLUME_MIN -73
142 #define SW_VOLUME_MAX 0
144 /* define the bitmask of hardware sample rates */
145 #define HW_SAMPR_CAPS (SAMPR_CAP_48 | SAMPR_CAP_44 | SAMPR_CAP_32 | \
146 SAMPR_CAP_24 | SAMPR_CAP_22 | SAMPR_CAP_16 | \
147 SAMPR_CAP_12 | SAMPR_CAP_11 | SAMPR_CAP_8)
149 #define CONFIG_I2C I2C_JZ47XX
151 #define NEED_ADC_CLOSE 1
153 #define BATTERY_CAPACITY_DEFAULT 1250 /* default battery capacity */
154 #define BATTERY_CAPACITY_MIN 500 /* min. capacity selectable */
155 #define BATTERY_CAPACITY_MAX 2500 /* max. capacity selectable */
156 #define BATTERY_CAPACITY_INC 100 /* capacity increment */
157 #define BATTERY_TYPES_COUNT 1 /* only one type */
159 /* Hardware controlled charging with monitoring */
160 #define CONFIG_CHARGING CHARGING_MONITOR
162 /* There is only USB charging */
163 #define HAVE_USB_POWER
165 #define CFG_EXTAL 12000000 /* EXT clock: 12 Mhz */
168 No access to the NAND yet..
170 #define CONFIG_STORAGE (STORAGE_NAND | STORAGE_SD)
171 #define NUM_DRIVES 2
173 #define CONFIG_STORAGE (STORAGE_SD)
174 #define HAVE_MULTIDRIVE
175 #define NUM_DRIVES 1
176 #define HAVE_HOTSWAP_STORAGE_AS_MAIN
177 #define INCLUDE_TIMEOUT_API
179 /* Define this if media can be exchanged on the fly */
180 #define HAVE_HOTSWAP
182 /* Define this if you have a Ingenic JZ4732 */
183 #define CONFIG_CPU JZ4732
185 /* define this if the hardware can be powered off while charging */
186 #define HAVE_POWEROFF_WHILE_CHARGING
188 /* Define this if you have a speaker */
189 #define HAVE_SPEAKER
191 /* Define this to the CPU frequency */
192 #define CPU_FREQ 336000000 /* CPU clock: 336 MHz */
194 /* define this if you have a flash memory storage */
195 #define HAVE_FLASH_STORAGE
197 /* Offset ( in the firmware file's header ) to the file CRC */
198 #define FIRMWARE_OFFSET_FILE_CRC 0
200 /* Offset ( in the firmware file's header ) to the real data */
201 #define FIRMWARE_OFFSET_FILE_DATA 8
203 /* Define this if you have adjustable CPU frequency */
204 #define HAVE_ADJUSTABLE_CPU_FREQ
206 #ifdef ONDA_VX747P
207 #define BOOTFILE_EXT "vx747p"
208 #else
209 #define BOOTFILE_EXT "vx747"
210 #endif
212 #define BOOTFILE "rockbox." BOOTFILE_EXT
213 #define BOOTDIR "/.rockbox"
215 #define CONFIG_USBOTG USBOTG_JZ4740
216 #define HAVE_USBSTACK
217 #define USE_ROCKBOX_USB
218 #define USB_VENDOR_ID 0x07C4
219 #define USB_PRODUCT_ID 0xA4A5
221 /* Define this if a programmable hotkey is mapped */
222 //#define HAVE_HOTKEY