Alternate fix for the bug fixed by FS#9163, the selection in the playlist viewer...
[kugel-rb.git] / firmware / export / config-ondavx747.h
blob49047d6a3c9aa764d62e2c7241d1764ba6cd8ff7
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_VX747 1
31 #define MODEL_NAME "Onda VX747"
33 /* For Rolo and boot loader */
34 #define MODEL_NUMBER 35
36 /* define this if you use an ATA controller */
37 //#define HAVE_ATA
39 /* define this if you have a bitmap LCD display */
40 #define HAVE_LCD_BITMAP
42 /* define this if you have a colour LCD */
43 #define HAVE_LCD_COLOR
45 /* define this if you have access to the quickscreen */
46 #define HAVE_QUICKSCREEN
48 /* define this if you have access to the pitchscreen */
49 #define HAVE_PITCHSCREEN
51 /* define this if you would like tagcache to build on this target */
52 #define HAVE_TAGCACHE
54 /* define this if the target has volume keys which can be used in the lists */
55 #define HAVE_VOLUME_IN_LIST
57 /* LCD dimensions */
58 #define CONFIG_LCD LCD_ONDAVX747
60 #define LCD_WIDTH 240
61 #define LCD_HEIGHT 400
63 #define LCD_DEPTH 16 /* 16bit colours */
64 #define LCD_PIXELFORMAT RGB565 /* rgb565 */
66 /* Define this if your LCD can be enabled/disabled */
67 #define HAVE_LCD_ENABLE
69 #define CONFIG_KEYPAD ONDAVX747_PAD
70 #define HAVE_TOUCHSCREEN
71 #define HAVE_BUTTON_DATA
73 /* Define this if you do software codec */
74 #define CONFIG_CODEC SWCODEC
76 /* define this if you have a real-time clock */
77 #define CONFIG_RTC RTC_JZ47XX
79 /* Define this for LCD backlight available */
80 #define HAVE_BACKLIGHT
82 #define HAVE_BACKLIGHT_BRIGHTNESS
84 /* Main LCD backlight brightness range and defaults */
85 #define MIN_BRIGHTNESS_SETTING 100
86 #define MAX_BRIGHTNESS_SETTING 300
87 #define DEFAULT_BRIGHTNESS_SETTING 300 /* "full brightness" */
88 #define DEFAULT_DIMNESS_SETTING 100 /* "most dim" */
90 /* Define this if you have a software controlled poweroff */
91 //#define HAVE_SW_POWEROFF
93 /* The number of bytes reserved for loadable codecs */
94 #define CODEC_SIZE 0x80000
96 /* The number of bytes reserved for loadable plugins */
97 #define PLUGIN_BUFFER_SIZE 0x100000
99 /* Define this if you have the */
100 //#define HAVE_INGENIC_CODEC
102 #define CONFIG_I2C I2C_JZ47XX
104 /* TLV320 has no tone controls, so we use the software ones */
105 //#define HAVE_SW_TONE_CONTROLS
107 /*#define HW_SAMPR_CAPS (SAMPR_CAP_88 | SAMPR_CAP_44 | SAMPR_CAP_22 | \
108 SAMPR_CAP_11)*/
110 #define BATTERY_CAPACITY_DEFAULT 1250 /* default battery capacity */
111 #define BATTERY_CAPACITY_MIN 500 /* min. capacity selectable */
112 #define BATTERY_CAPACITY_MAX 2500 /* max. capacity selectable */
113 #define BATTERY_CAPACITY_INC 100 /* capacity increment */
114 #define BATTERY_TYPES_COUNT 1 /* only one type */
116 /* Hardware controlled charging with monitoring */
117 //#define CONFIG_CHARGING CHARGING_MONITOR
119 #ifndef SIMULATOR
121 /* Define this if you have a Ingenic JZ4732 */
122 #define CONFIG_CPU JZ4732
124 /* define this if the hardware can be powered off while charging */
125 #define HAVE_POWEROFF_WHILE_CHARGING
127 /* Define this to the CPU frequency */
128 #define CPU_FREQ 3686400
130 /* define this if you have a flash memory storage */
131 #define HAVE_FLASH_STORAGE
133 /* Virtual LED (icon) */
134 #define CONFIG_LED LED_VIRTUAL
136 /* define this if the backlight can be set to a brightness */
137 #define __BACKLIGHT_INIT
139 /* Offset ( in the firmware file's header ) to the file CRC */
140 #define FIRMWARE_OFFSET_FILE_CRC 0
142 /* Offset ( in the firmware file's header ) to the real data */
143 #define FIRMWARE_OFFSET_FILE_DATA 8
145 /* Define this if you have adjustable CPU frequency */
146 /* #define HAVE_ADJUSTABLE_CPU_FREQ */
148 #define BOOTFILE_EXT "vx747"
149 #define BOOTFILE "rockbox." BOOTFILE_EXT
150 #define BOOTDIR "/.rockbox"
152 /*#define CONFIG_USBOTG USBOTG_INGENIC
153 #define HAVE_USBSTACK
154 #define USB_VENDOR_ID 0x041e
155 #define USB_PRODUCT_ID 0x4133*/
157 #include <stdbool.h> /* HACKY */
159 #endif