FS#11081 - Hotkey patch. Many targets supported, but some keymaps need work before...
[kugel-rb.git] / firmware / export / config / ondavx767.h
blob19bb7ed580e3cff01043801135a065ee13808c8c
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 #define ONDA_VX767 1
31 #define MODEL_NAME "Onda VX767"
33 /* For Rolo and boot loader */
34 #define MODEL_NUMBER 64
36 //#define HAVE_ATA_SD
37 //#define HAVE_HOTSWAP
39 //#define CONFIG_STORAGE (STORAGE_NAND | STORAGE_SD)
40 #define CONFIG_STORAGE STORAGE_SD /* Multivolume currently handled at firmware/target/ level */
42 #define CONFIG_NAND NAND_CC
44 #define HAVE_MULTIDRIVE
45 #define NUM_DRIVES 2
47 /* define this if you have a bitmap LCD display */
48 #define HAVE_LCD_BITMAP
50 /* define this if you have a colour LCD */
51 #define HAVE_LCD_COLOR
53 /* define this if you have access to the quickscreen */
54 #define HAVE_QUICKSCREEN
56 /* define this if you have access to the pitchscreen */
57 #define HAVE_PITCHSCREEN
59 /* define this if you would like tagcache to build on this target */
60 #define HAVE_TAGCACHE
62 /* define this if the target has volume keys which can be used in the lists */
63 #define HAVE_VOLUME_IN_LIST
65 /* LCD dimensions */
66 #define CONFIG_LCD LCD_ONDAVX767
68 #define LCD_WIDTH 320
69 #define LCD_HEIGHT 240
71 #define LCD_DEPTH 16 /* 16bit colours */
72 #define LCD_PIXELFORMAT RGB565 /* rgb565 */
74 /* Define this if your LCD can be enabled/disabled */
75 //#define HAVE_LCD_ENABLE
77 #define CONFIG_KEYPAD ONDAVX767_PAD
79 /* Define this if you do software codec */
80 #define CONFIG_CODEC SWCODEC
82 /* define this if you have a real-time clock */
83 #define CONFIG_RTC RTC_JZ47XX
85 /* Define this for LCD backlight available */
86 #define HAVE_BACKLIGHT
88 #define HAVE_BACKLIGHT_BRIGHTNESS
90 /* Main LCD backlight brightness range and defaults */
91 #define MIN_BRIGHTNESS_SETTING 0 /* TODO */
92 #define MAX_BRIGHTNESS_SETTING 127
93 #define DEFAULT_BRIGHTNESS_SETTING 85
94 #define DEFAULT_DIMNESS_SETTING 22
96 /* Define this if you have a software controlled poweroff */
97 #define HAVE_SW_POWEROFF
99 /* The number of bytes reserved for loadable codecs */
100 #define CODEC_SIZE 0x100000
102 /* The number of bytes reserved for loadable plugins */
103 #define PLUGIN_BUFFER_SIZE 0x100000
105 /* Define this if you have the Jz4740 internal codec */
106 #define HAVE_JZ4740_CODEC
108 /* Define bitmask of input sources - recordable bitmask can be defined
109 explicitly if different */
110 #define INPUT_SRC_CAPS (SRC_CAP_MIC | SRC_CAP_FMRADIO)
112 /* Tuner config */
113 #define CONFIG_TUNER TEA5767
114 #define CONFIG_TUNER_XTAL 32768
116 /* Define this if you have a speaker */
117 //#define HAVE_SPEAKER
119 #define CONFIG_I2C I2C_JZ47XX
121 /* TLV320 has no tone controls, so we use the software ones */
122 //#define HAVE_SW_TONE_CONTROLS
124 /*#define HW_SAMPR_CAPS (SAMPR_CAP_88 | SAMPR_CAP_44 | SAMPR_CAP_22 | \
125 SAMPR_CAP_11)*/
127 #define BATTERY_CAPACITY_DEFAULT 1250 /* default battery capacity */
128 #define BATTERY_CAPACITY_MIN 500 /* min. capacity selectable */
129 #define BATTERY_CAPACITY_MAX 2500 /* max. capacity selectable */
130 #define BATTERY_CAPACITY_INC 100 /* capacity increment */
131 #define BATTERY_TYPES_COUNT 1 /* only one type */
133 /* Hardware controlled charging with monitoring */
134 //#define CONFIG_CHARGING CHARGING_MONITOR
136 /* Define this if you have a Ingenic JZ4740 */
137 #define CONFIG_CPU JZ4732
139 /* define this if the hardware can be powered off while charging */
140 #define HAVE_POWEROFF_WHILE_CHARGING
142 /* Define this to the CPU frequency */
143 #define CPU_FREQ 336000000 /* CPU clock: 336 MHz */
144 #define CFG_EXTAL 12000000 /* EXT clock: 12 Mhz */
146 /* define this if you have a flash memory storage */
147 #define HAVE_FLASH_STORAGE
149 /* Offset ( in the firmware file's header ) to the file CRC */
150 #define FIRMWARE_OFFSET_FILE_CRC 0
152 /* Offset ( in the firmware file's header ) to the real data */
153 #define FIRMWARE_OFFSET_FILE_DATA 8
155 /* Define this if you have adjustable CPU frequency */
156 #define HAVE_ADJUSTABLE_CPU_FREQ
158 #define BOOTFILE_EXT "vx767"
159 #define BOOTFILE "rockbox." BOOTFILE_EXT
160 #define BOOTDIR "/.rockbox"
162 #define CONFIG_USBOTG USBOTG_JZ4740
163 #define HAVE_USBSTACK
164 #define USE_ROCKBOX_USB
165 #define USB_VENDOR_ID 0x07C4
166 #define USB_PRODUCT_ID 0xA4A5
168 /* Define this if a programmable hotkey is mapped */
169 //#define HAVE_HOTKEY