* Onda VX767: fix some redundant files + add some missing functions for apps/ compila...
[kugel-rb.git] / firmware / export / config-ondavx747.h
blob1849064251e9a1106aa21379b9633bd36e43965a
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(+)
25 #define TARGET_TREE /* this target is using the target tree system */
27 #define CONFIG_SDRAM_START 0x80004000
29 #ifdef ONDA_VX747P
30 #define MODEL_NAME "Onda VX747+"
31 #define MODEL_NUMBER 44
32 /* Define something for camera interface... */
33 #else
34 #define MODEL_NAME "Onda VX747"
35 #define MODEL_NUMBER 45
36 #endif
38 //#define HAVE_ATA_SD
39 //#define HAVE_HOTSWAP
41 //#define CONFIG_STORAGE (STORAGE_NAND | STORAGE_SD)
42 #define CONFIG_STORAGE STORAGE_SD /* Multivolume currently handled at firmware/target/ level */
44 #define CONFIG_NAND NAND_CC
46 //#define HAVE_MULTIVOLUME
48 /* define this if you have a bitmap LCD display */
49 #define HAVE_LCD_BITMAP
51 /* define this if you have a colour LCD */
52 #define HAVE_LCD_COLOR
54 /* define this if you have access to the quickscreen */
55 #define HAVE_QUICKSCREEN
57 /* define this if you have access to the pitchscreen */
58 #define HAVE_PITCHSCREEN
60 /* define this if you would like tagcache to build on this target */
61 #define HAVE_TAGCACHE
63 /* define this if the target has volume keys which can be used in the lists */
64 //#define HAVE_VOLUME_IN_LIST
66 /* LCD dimensions */
67 #define CONFIG_LCD LCD_ONDAVX747
69 #define LCD_WIDTH 240
70 #define LCD_HEIGHT 400
72 #define LCD_DEPTH 16 /* 16bit colours */
73 #define LCD_PIXELFORMAT RGB565 /* rgb565 */
75 /* Define this if your LCD can be enabled/disabled */
76 #define HAVE_LCD_ENABLE
78 #define CONFIG_KEYPAD ONDAVX747_PAD
79 #define HAVE_TOUCHSCREEN
80 #define HAVE_BUTTON_DATA
82 /* Define this if you do software codec */
83 #define CONFIG_CODEC SWCODEC
85 /* define this if you have a real-time clock */
86 #define CONFIG_RTC RTC_JZ47XX
88 /* Define this for LCD backlight available */
89 #define HAVE_BACKLIGHT
90 #define HAVE_BACKLIGHT_BRIGHTNESS
92 /* define this if the backlight can be set to a brightness */
93 #define __BACKLIGHT_INIT
95 /* Which backlight fading type? */
96 //#define CONFIG_BACKLIGHT_FADING BACKLIGHT_FADING_PWM
98 /* Main LCD backlight brightness range and defaults */
99 #define MIN_BRIGHTNESS_SETTING 100
100 #define MAX_BRIGHTNESS_SETTING 300
101 #define DEFAULT_BRIGHTNESS_SETTING 300 /* "full brightness" */
102 #define DEFAULT_DIMNESS_SETTING 100 /* "most dim" */
104 /* Define this if you have a software controlled poweroff */
105 #define HAVE_SW_POWEROFF
107 /* The number of bytes reserved for loadable codecs */
108 #define CODEC_SIZE 0x100000
110 /* The number of bytes reserved for loadable plugins */
111 #define PLUGIN_BUFFER_SIZE 0x100000
113 /* Define this if you have the Jz4740 internal codec */
114 #define HAVE_JZ4740_CODEC
116 /* Define this if you have a speaker */
117 #define HAVE_SPEAKER
119 /* define the bitmask of hardware sample rates */
120 #define HW_SAMPR_CAPS (SAMPR_CAP_48 | SAMPR_CAP_44 | SAMPR_CAP_32 | \
121 SAMPR_CAP_24 | SAMPR_CAP_22 | SAMPR_CAP_16 | \
122 SAMPR_CAP_12 | SAMPR_CAP_11 | SAMPR_CAP_8)
124 #define CONFIG_I2C I2C_JZ47XX
126 /* has no tone controls, so we use the software ones */
127 //#define HAVE_SW_TONE_CONTROLS
129 /*#define HW_SAMPR_CAPS (SAMPR_CAP_88 | SAMPR_CAP_44 | SAMPR_CAP_22 | \
130 SAMPR_CAP_11)*/
132 #define BATTERY_CAPACITY_DEFAULT 1250 /* default battery capacity */
133 #define BATTERY_CAPACITY_MIN 500 /* min. capacity selectable */
134 #define BATTERY_CAPACITY_MAX 2500 /* max. capacity selectable */
135 #define BATTERY_CAPACITY_INC 100 /* capacity increment */
136 #define BATTERY_TYPES_COUNT 1 /* only one type */
138 /* Hardware controlled charging with monitoring */
139 #define CONFIG_CHARGING CHARGING_MONITOR
141 #ifndef SIMULATOR
143 /* Define this if you have a Ingenic JZ4732 */
144 #define CONFIG_CPU JZ4732
146 /* define this if the hardware can be powered off while charging */
147 #define HAVE_POWEROFF_WHILE_CHARGING
149 /* Define this to the CPU frequency */
150 #define CPU_FREQ 336000000 /* CPU clock: 336 MHz */
151 #define CFG_EXTAL 12000000 /* EXT clock: 12 Mhz */
153 /* define this if you have a flash memory storage */
154 #define HAVE_FLASH_STORAGE
156 /* Virtual LED (icon) */
157 #define CONFIG_LED LED_VIRTUAL
159 /* Offset ( in the firmware file's header ) to the file CRC */
160 #define FIRMWARE_OFFSET_FILE_CRC 0
162 /* Offset ( in the firmware file's header ) to the real data */
163 #define FIRMWARE_OFFSET_FILE_DATA 8
165 /* Define this if you have adjustable CPU frequency */
166 /* #define HAVE_ADJUSTABLE_CPU_FREQ */
167 #define CPUFREQ_NORMAL 336000000 /* CPU clock: 336 MHz */
169 #ifdef ONDA_VX747P
170 #define BOOTFILE_EXT "vx747p"
171 #else
172 #define BOOTFILE_EXT "vx747"
173 #endif
174 #define BOOTFILE "rockbox." BOOTFILE_EXT
175 #define BOOTDIR "/.rockbox"
177 #define CONFIG_USBOTG USBOTG_JZ4740
178 #define HAVE_USBSTACK
179 #define USE_ROCKBOX_USB
180 #define USB_VENDOR_ID 0x07C4
181 #define USB_PRODUCT_ID 0xA4A5
182 #define USB_NUM_ENDPOINTS 3
183 /* This needs to be 2048 byte aligned, but USB_QHARRAY_ATTR should take care
184 * of that */
185 #define USB_QHARRAY_ATTR __attribute__((section(".qharray"),nocommon,aligned(4)))
186 #define USB_DEVBSS_ATTR IBSS_ATTR
188 #endif