Make current_vp static and importings from Gigabeat F/X/S lcd drivers as they don...
[kugel-rb.git] / firmware / export / config-ondavx767.h
blob5aa755bfa45b90d7c53fa3ecf1dedaf72be74e31
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 #ifndef SIMULATOR
138 /* Define this if you have a Ingenic JZ4740 */
139 #define CONFIG_CPU JZ4732
141 /* define this if the hardware can be powered off while charging */
142 #define HAVE_POWEROFF_WHILE_CHARGING
144 /* Define this to the CPU frequency */
145 #define CPU_FREQ 336000000 /* CPU clock: 336 MHz */
146 #define CFG_EXTAL 12000000 /* EXT clock: 12 Mhz */
148 /* define this if you have a flash memory storage */
149 #define HAVE_FLASH_STORAGE
151 /* define this if the backlight can be set to a brightness */
152 #define __BACKLIGHT_INIT
154 /* Offset ( in the firmware file's header ) to the file CRC */
155 #define FIRMWARE_OFFSET_FILE_CRC 0
157 /* Offset ( in the firmware file's header ) to the real data */
158 #define FIRMWARE_OFFSET_FILE_DATA 8
160 /* Define this if you have adjustable CPU frequency */
161 #define HAVE_ADJUSTABLE_CPU_FREQ
163 #define BOOTFILE_EXT "vx767"
164 #define BOOTFILE "rockbox." BOOTFILE_EXT
165 #define BOOTDIR "/.rockbox"
167 #define CONFIG_USBOTG USBOTG_JZ4740
168 #define HAVE_USBSTACK
169 #define USE_ROCKBOX_USB
170 #define USB_VENDOR_ID 0x07C4
171 #define USB_PRODUCT_ID 0xA4A5
173 #endif