TARGET_TREE is not needed anymore
[maemo-rb.git] / firmware / export / config / ondavx777.h
blob48ce20ec9836b00c6f05d7eecc1973dd429612b9
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 #define MODEL_NAME "Onda VX777"
29 #define MODEL_NUMBER 61
31 /* Support FAT16 for SD cards <= 2GB */
32 #define HAVE_FAT16SUPPORT
34 /* ChinaChip NAND FTL */
35 #define CONFIG_NAND NAND_CC
37 /* define this if you have a bitmap LCD display */
38 #define HAVE_LCD_BITMAP
40 /* define this if you have a colour LCD */
41 #define HAVE_LCD_COLOR
43 /* define this if you want album art for this target */
44 #define HAVE_ALBUMART
46 /* define this to enable bitmap scaling */
47 #define HAVE_BMP_SCALING
49 /* define this to enable JPEG decoding */
50 #define HAVE_JPEG
52 /* define this if you have access to the quickscreen */
53 #define HAVE_QUICKSCREEN
55 /* define this if you have access to the pitchscreen */
56 #define HAVE_PITCHSCREEN
58 /* define this if you would like tagcache to build on this target */
59 #define HAVE_TAGCACHE
61 /* define this if the target has volume keys which can be used in the lists */
62 //#define HAVE_VOLUME_IN_LIST
64 /* LCD dimensions */
65 #define CONFIG_LCD LCD_ONDAVX747
67 #ifdef BOOTLOADER /* OF requires landscape */
68 #define LCD_WIDTH 400
69 #define LCD_HEIGHT 240
70 #else
71 #define LCD_WIDTH 240
72 #define LCD_HEIGHT 400
73 #endif
74 #define LCD_DPI 155
76 #define LCD_DEPTH 16 /* 16bit colours */
77 #define LCD_PIXELFORMAT RGB565 /* rgb565 */
79 /* Define this if your LCD can be enabled/disabled */
80 #define HAVE_LCD_ENABLE
82 #define CONFIG_KEYPAD ONDAVX777_PAD
84 #define HAVE_TOUCHSCREEN
85 #define HAVE_BUTTON_DATA
87 /* Define this if you do software codec */
88 #define CONFIG_CODEC SWCODEC
90 /* define this if you have a real-time clock */
91 #define CONFIG_RTC RTC_JZ47XX
93 /* Tuner config */
94 #define CONFIG_TUNER TEA5767
95 #define CONFIG_TUNER_XTAL 32768
97 /* Define this for LCD backlight available */
98 #define HAVE_BACKLIGHT
99 #define HAVE_BACKLIGHT_BRIGHTNESS
101 /* Which backlight fading type? */
102 #define CONFIG_BACKLIGHT_FADING BACKLIGHT_FADING_SW_HW_REG
104 /* Main LCD backlight brightness range and defaults */
105 #define MIN_BRIGHTNESS_SETTING 1
106 #define MAX_BRIGHTNESS_SETTING 16
107 #define DEFAULT_BRIGHTNESS_SETTING 16 /* "full brightness" */
108 #define DEFAULT_DIMNESS_SETTING 1 /* "most dim" */
110 /* Define this if you have a software controlled poweroff */
111 #define HAVE_SW_POWEROFF
113 /* The number of bytes reserved for loadable codecs */
114 #define CODEC_SIZE 0x100000
116 /* The number of bytes reserved for loadable plugins */
117 #define PLUGIN_BUFFER_SIZE 0x100000
119 /* Define this if you have the Jz4740 internal codec */
120 #define HAVE_JZ4740_CODEC
122 /* Define bitmask of input sources - recordable bitmask can be defined
123 explicitly if different */
124 #define INPUT_SRC_CAPS (SRC_CAP_MIC | SRC_CAP_FMRADIO)
126 /* has no tone controls, so we use the software ones */
127 #define HAVE_SW_TONE_CONTROLS
129 /* has no volume control, so we use the software ones */
130 #define HAVE_SW_VOLUME_CONTROL
132 /* software controlled volume ranges from -73 -> 0 dB, other than that
133 is controlled by hardware */
134 #define SW_VOLUME_MIN -73
135 #define SW_VOLUME_MAX 0
137 /* define the bitmask of hardware sample rates */
138 #define HW_SAMPR_CAPS (SAMPR_CAP_48 | SAMPR_CAP_44 | SAMPR_CAP_32 | \
139 SAMPR_CAP_24 | SAMPR_CAP_22 | SAMPR_CAP_16 | \
140 SAMPR_CAP_12 | SAMPR_CAP_11 | SAMPR_CAP_8)
142 #define CONFIG_I2C I2C_JZ47XX
144 #define NEED_ADC_CLOSE 1
146 #define BATTERY_CAPACITY_DEFAULT 1250 /* default battery capacity */
147 #define BATTERY_CAPACITY_MIN 500 /* min. capacity selectable */
148 #define BATTERY_CAPACITY_MAX 2500 /* max. capacity selectable */
149 #define BATTERY_CAPACITY_INC 100 /* capacity increment */
150 #define BATTERY_TYPES_COUNT 1 /* only one type */
152 #define CONFIG_BATTERY_MEASURE VOLTAGE_MEASURE
154 /* Hardware controlled charging with monitoring */
155 #define CONFIG_CHARGING CHARGING_MONITOR
157 #define CFG_EXTAL 12000000 /* EXT clock: 12 Mhz */
160 No access to the NAND yet..
162 #define CONFIG_STORAGE (STORAGE_NAND | STORAGE_SD)
163 #define NUM_DRIVES 2
165 #define CONFIG_STORAGE (STORAGE_SD)
166 #define HAVE_MULTIDRIVE
167 #define NUM_DRIVES 1
168 #define HAVE_HOTSWAP_STORAGE_AS_MAIN
169 #define INCLUDE_TIMEOUT_API
171 /* Define this if media can be exchanged on the fly */
172 #define HAVE_HOTSWAP
174 /* Define this if you have a Ingenic JZ4732 */
175 #define CONFIG_CPU JZ4732
177 /* define this if the hardware can be powered off while charging */
178 #define HAVE_POWEROFF_WHILE_CHARGING
180 /* Define this if you have a speaker */
181 #define HAVE_SPEAKER
183 /* Define this to the CPU frequency */
184 #define CPU_FREQ 336000000 /* CPU clock: 336 MHz */
186 /* define this if you have a flash memory storage */
187 #define HAVE_FLASH_STORAGE
189 /* Offset ( in the firmware file's header ) to the file CRC */
190 #define FIRMWARE_OFFSET_FILE_CRC 0
192 /* Offset ( in the firmware file's header ) to the real data */
193 #define FIRMWARE_OFFSET_FILE_DATA 8
195 /* Define this if you have adjustable CPU frequency */
196 #define HAVE_ADJUSTABLE_CPU_FREQ
198 #define BOOTFILE_EXT "vx777"
200 #define BOOTFILE "rockbox." BOOTFILE_EXT
201 #define BOOTDIR "/.rockbox"
203 #define CONFIG_USBOTG USBOTG_JZ4740
204 #define HAVE_USBSTACK
205 #define USE_ROCKBOX_USB
206 /* Connect by events, not by tick polling */
207 #define USB_STATUS_BY_EVENT
208 #define USB_VENDOR_ID 0x07C4
209 #define USB_PRODUCT_ID 0xA4A5
211 /* Define this if a programmable hotkey is mapped */
212 //#define HAVE_HOTKEY