TARGET_TREE is not needed anymore
[maemo-rb.git] / firmware / export / config / ondavx747.h
blobc144a68f3a1a1fa4b22472df5f5dedf404e4b9b6
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 CONFIG_SDRAM_START 0x80004000
28 #ifdef ONDA_VX747P
29 #define MODEL_NAME "Onda VX747+"
30 #define MODEL_NUMBER 54
31 /* Define something for camera interface... */
32 #else
33 #define MODEL_NAME "Onda VX747"
34 #define MODEL_NUMBER 45
35 #endif
37 /* Support FAT16 for SD cards <= 2GB */
38 #define HAVE_FAT16SUPPORT
40 /* ChinaChip NAND FTL */
41 #define CONFIG_NAND NAND_CC
43 /* define this if you have a bitmap LCD display */
44 #define HAVE_LCD_BITMAP
46 /* define this if you have a colour LCD */
47 #define HAVE_LCD_COLOR
49 /* define this if you want album art for this target */
50 #define HAVE_ALBUMART
52 /* define this to enable bitmap scaling */
53 #define HAVE_BMP_SCALING
55 /* define this to enable JPEG decoding */
56 #define HAVE_JPEG
58 /* define this if you have access to the quickscreen */
59 #define HAVE_QUICKSCREEN
61 /* define this if you have access to the pitchscreen */
62 #define HAVE_PITCHSCREEN
64 /* define this if you would like tagcache to build on this target */
65 #define HAVE_TAGCACHE
67 /* define this if the target has volume keys which can be used in the lists */
68 //#define HAVE_VOLUME_IN_LIST
70 /* LCD dimensions */
71 #define CONFIG_LCD LCD_ONDAVX747
73 #ifdef BOOTLOADER /* OF requires landscape */
74 #define LCD_WIDTH 400
75 #define LCD_HEIGHT 240
76 #else
77 #define LCD_WIDTH 240
78 #define LCD_HEIGHT 400
79 #endif
80 #define LCD_DPI 155
82 #define LCD_DEPTH 16 /* 16bit colours */
83 #define LCD_PIXELFORMAT RGB565 /* rgb565 */
85 /* Define this if your LCD can be enabled/disabled */
86 #define HAVE_LCD_ENABLE
88 #define CONFIG_KEYPAD ONDAVX747_PAD
90 #define HAVE_TOUCHSCREEN
91 #define HAVE_BUTTON_DATA
93 /* Define this if you do software codec */
94 #define CONFIG_CODEC SWCODEC
96 /* define this if you have a real-time clock */
97 #define CONFIG_RTC RTC_JZ47XX
99 /* Tuner config */
100 #define CONFIG_TUNER TEA5767
101 #define CONFIG_TUNER_XTAL 32768
103 /* Define this for LCD backlight available */
104 #define HAVE_BACKLIGHT
105 #define HAVE_BACKLIGHT_BRIGHTNESS
107 /* Which backlight fading type? */
108 #define CONFIG_BACKLIGHT_FADING BACKLIGHT_FADING_SW_HW_REG
110 /* Main LCD backlight brightness range and defaults */
111 #define MIN_BRIGHTNESS_SETTING 1
112 #define MAX_BRIGHTNESS_SETTING 16
113 #define DEFAULT_BRIGHTNESS_SETTING 16 /* "full brightness" */
114 #define DEFAULT_DIMNESS_SETTING 1 /* "most dim" */
116 /* Define this if you have a software controlled poweroff */
117 #define HAVE_SW_POWEROFF
119 /* The number of bytes reserved for loadable codecs */
120 #define CODEC_SIZE 0x100000
122 /* The number of bytes reserved for loadable plugins */
123 #define PLUGIN_BUFFER_SIZE 0x100000
125 /* Define this if you have the Jz4740 internal codec */
126 #define HAVE_JZ4740_CODEC
128 /* Define bitmask of input sources - recordable bitmask can be defined
129 explicitly if different */
130 #define INPUT_SRC_CAPS (SRC_CAP_MIC | SRC_CAP_FMRADIO)
132 /* has no tone controls, so we use the software ones */
133 #define HAVE_SW_TONE_CONTROLS
135 /* has no volume control, so we use the software ones */
136 #define HAVE_SW_VOLUME_CONTROL
138 /* software controlled volume ranges from -73 -> 0 dB, other than that
139 is controlled by hardware */
140 #define SW_VOLUME_MIN -73
141 #define SW_VOLUME_MAX 0
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 #define CONFIG_BATTERY_MEASURE VOLTAGE_MEASURE
160 /* Hardware controlled charging with monitoring */
161 #define CONFIG_CHARGING CHARGING_MONITOR
163 /* There is only USB charging */
164 #define HAVE_USB_POWER
166 #define CFG_EXTAL 12000000 /* EXT clock: 12 Mhz */
169 No access to the NAND yet..
171 #define CONFIG_STORAGE (STORAGE_NAND | STORAGE_SD)
172 #define NUM_DRIVES 2
174 #define CONFIG_STORAGE (STORAGE_SD)
175 #define HAVE_MULTIDRIVE
176 #define NUM_DRIVES 1
177 #define HAVE_HOTSWAP_STORAGE_AS_MAIN
178 #define INCLUDE_TIMEOUT_API
180 /* Define this if media can be exchanged on the fly */
181 #define HAVE_HOTSWAP
183 /* Define this if you have a Ingenic JZ4732 */
184 #define CONFIG_CPU JZ4732
186 /* define this if the hardware can be powered off while charging */
187 #define HAVE_POWEROFF_WHILE_CHARGING
189 /* Define this if you have a speaker */
190 #define HAVE_SPEAKER
192 /* Define this to the CPU frequency */
193 #define CPU_FREQ 336000000 /* CPU clock: 336 MHz */
195 /* define this if you have a flash memory storage */
196 #define HAVE_FLASH_STORAGE
198 /* Offset ( in the firmware file's header ) to the file CRC */
199 #define FIRMWARE_OFFSET_FILE_CRC 0
201 /* Offset ( in the firmware file's header ) to the real data */
202 #define FIRMWARE_OFFSET_FILE_DATA 8
204 /* Define this if you have adjustable CPU frequency */
205 #define HAVE_ADJUSTABLE_CPU_FREQ
207 #ifdef ONDA_VX747P
208 #define BOOTFILE_EXT "vx747p"
209 #else
210 #define BOOTFILE_EXT "vx747"
211 #endif
213 #define BOOTFILE "rockbox." BOOTFILE_EXT
214 #define BOOTDIR "/.rockbox"
216 #define CONFIG_USBOTG USBOTG_JZ4740
217 #define HAVE_USBSTACK
218 #define USE_ROCKBOX_USB
219 /* Connect by events, not by tick polling */
220 #define USB_STATUS_BY_EVENT
222 #define USB_VENDOR_ID 0x07C4
223 #define USB_PRODUCT_ID 0xA4A5
225 /* Define this if a programmable hotkey is mapped */
226 //#define HAVE_HOTKEY