Remove the calls to backlight_lcd_sleep_countdown from target specific code and move...
[kugel-rb.git] / firmware / export / config-ondavx747.h
blobe47a8c170221a5015965355cedb7a6b2dd2919d4
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(+)
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 44
33 /* Define something for camera interface... */
34 #else
35 #define MODEL_NAME "Onda VX747"
36 #define MODEL_NUMBER 45
37 #endif
39 //#define HAVE_ATA_SD
40 //#define HAVE_HOTSWAP
42 //#define CONFIG_STORAGE (STORAGE_NAND | STORAGE_SD)
43 #define CONFIG_STORAGE STORAGE_SD
45 /* ChinaChip NAND FTL */
46 #define CONFIG_NAND NAND_CC
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 want album art for this target */
55 #define HAVE_ALBUMART
57 /* define this if you have access to the quickscreen */
58 #define HAVE_QUICKSCREEN
60 /* define this if you have access to the pitchscreen */
61 #define HAVE_PITCHSCREEN
63 /* define this if you would like tagcache to build on this target */
64 #define HAVE_TAGCACHE
66 /* define this if the target has volume keys which can be used in the lists */
67 //#define HAVE_VOLUME_IN_LIST
69 /* LCD dimensions */
70 #define CONFIG_LCD LCD_ONDAVX747
72 #define LCD_WIDTH 240
73 #define LCD_HEIGHT 400
75 #define LCD_DEPTH 16 /* 16bit colours */
76 #define LCD_PIXELFORMAT RGB565 /* rgb565 */
78 /* Define this if your LCD can be enabled/disabled */
79 #define HAVE_LCD_ENABLE
81 #define CONFIG_KEYPAD ONDAVX747_PAD
82 #define HAVE_TOUCHSCREEN
83 #define HAVE_BUTTON_DATA
85 /* Define this if you do software codec */
86 #define CONFIG_CODEC SWCODEC
88 /* define this if you have a real-time clock */
89 #define CONFIG_RTC RTC_JZ47XX
91 /* Define this for LCD backlight available */
92 #define HAVE_BACKLIGHT
93 #define HAVE_BACKLIGHT_BRIGHTNESS
95 /* define this if the backlight can be set to a brightness */
96 #define __BACKLIGHT_INIT
98 /* Which backlight fading type? */
99 //#define CONFIG_BACKLIGHT_FADING BACKLIGHT_FADING_PWM
101 /* Main LCD backlight brightness range and defaults */
102 #define MIN_BRIGHTNESS_SETTING 100
103 #define MAX_BRIGHTNESS_SETTING 300
104 #define DEFAULT_BRIGHTNESS_SETTING 300 /* "full brightness" */
105 #define DEFAULT_DIMNESS_SETTING 100 /* "most dim" */
107 /* Define this if you have a software controlled poweroff */
108 #define HAVE_SW_POWEROFF
110 /* The number of bytes reserved for loadable codecs */
111 #define CODEC_SIZE 0x100000
113 /* The number of bytes reserved for loadable plugins */
114 #define PLUGIN_BUFFER_SIZE 0x100000
116 /* Define this if you have the Jz4740 internal codec */
117 #define HAVE_JZ4740_CODEC
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 #define NEED_ADC_CLOSE 1
128 /* has no tone controls, so we use the software ones */
129 //#define HAVE_SW_TONE_CONTROLS
131 #define BATTERY_CAPACITY_DEFAULT 1250 /* default battery capacity */
132 #define BATTERY_CAPACITY_MIN 500 /* min. capacity selectable */
133 #define BATTERY_CAPACITY_MAX 2500 /* max. capacity selectable */
134 #define BATTERY_CAPACITY_INC 100 /* capacity increment */
135 #define BATTERY_TYPES_COUNT 1 /* only one type */
137 /* Hardware controlled charging with monitoring */
138 #define CONFIG_CHARGING CHARGING_MONITOR
140 #define CFG_EXTAL 12000000 /* EXT clock: 12 Mhz */
142 #ifndef SIMULATOR
144 /* Define this if you have a Ingenic JZ4732 */
145 #define CONFIG_CPU JZ4732
147 /* define this if the hardware can be powered off while charging */
148 #define HAVE_POWEROFF_WHILE_CHARGING
150 /* Define this if you have a speaker */
151 #define HAVE_SPEAKER
153 /* Define this to the CPU frequency */
154 #define CPU_FREQ 336000000 /* CPU clock: 336 MHz */
156 /* define this if you have a flash memory storage */
157 #define HAVE_FLASH_STORAGE
159 /* Virtual LED (icon) */
160 #define CONFIG_LED LED_VIRTUAL
162 /* Offset ( in the firmware file's header ) to the file CRC */
163 #define FIRMWARE_OFFSET_FILE_CRC 0
165 /* Offset ( in the firmware file's header ) to the real data */
166 #define FIRMWARE_OFFSET_FILE_DATA 8
168 /* Define this if you have adjustable CPU frequency */
169 /* #define HAVE_ADJUSTABLE_CPU_FREQ */
170 #define CPUFREQ_NORMAL 336000000 /* CPU clock: 336 MHz */
171 #define CPUFREQ_MAX 336000000 /* CPU clock: 336 MHz */
173 #ifdef ONDA_VX747P
174 #define BOOTFILE_EXT "vx747p"
175 #else
176 #define BOOTFILE_EXT "vx747"
177 #endif
178 #define BOOTFILE "rockbox." BOOTFILE_EXT
179 #define BOOTDIR "/.rockbox"
181 #define CONFIG_USBOTG USBOTG_JZ4740
182 #define HAVE_USBSTACK
183 #define USE_ROCKBOX_USB
184 #define USB_VENDOR_ID 0x07C4
185 #define USB_PRODUCT_ID 0xA4A5
187 #endif