Colour targets: Revert an optimisation from almost 18 months ago that actually turned...
[Rockbox.git] / firmware / export / config-creativezvm.h
blobb7a0fcef5752ec01a2170e2a6eacd3704d469d79
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 Creative Zen Vision:M
25 #define TARGET_TREE /* this target is using the target tree system */
27 #define CONFIG_SDRAM_START 0x00900000
29 #define CREATIVE_ZVM 1
31 /* This makes it part of the Creative Zen Vision family :) */
32 #define CREATIVE_ZVx 1
34 /* For Rolo and boot loader */
35 #define MODEL_NUMBER 26
37 /* define this if you use an ATA controller */
38 #define HAVE_ATA
40 /* define this if you have a bitmap LCD display */
41 #define HAVE_LCD_BITMAP
43 /* define this if you have a colour LCD */
44 #define HAVE_LCD_COLOR
46 /* define this if you have access to the quickscreen */
47 #define HAVE_QUICKSCREEN
49 /* define this if you have access to the pitchscreen */
50 #define HAVE_PITCHSCREEN
52 /* define this if you would like tagcache to build on this target */
53 #define HAVE_TAGCACHE
55 /* define this if the target has volume keys which can be used in the lists */
56 //#define HAVE_VOLUME_IN_LIST
58 /* LCD dimensions */
59 #define CONFIG_LCD LCD_CREATIVEZVM
61 /* choose the lcd orientation. both work */
62 #define CONFIG_ORIENTATION SCREEN_PORTRAIT
64 #define LCD_WIDTH 320
65 #define LCD_HEIGHT 240
67 #define LCD_DEPTH 16 /* 65k colours */
68 #define LCD_PIXELFORMAT RGB565 /* rgb565 */
70 /* Define this if your LCD can be enabled/disabled */
71 #define HAVE_LCD_ENABLE
73 #define CONFIG_KEYPAD CREATIVEZVM_PAD
74 #define HAS_BUTTON_HOLD
75 #define HAVE_HEADPHONE_DETECTION
76 //#define HAVE_TOUCHPAD
78 #define CONFIG_I2C I2C_DM320
80 /* Define this if you do software codec */
81 #define CONFIG_CODEC SWCODEC
83 /* define this if you have a real-time clock */
84 //#define CONFIG_RTC RTC_RX5X348AB
86 /* Define this for LCD backlight available */
87 //#define HAVE_BACKLIGHT
89 //#define HAVE_BACKLIGHT_BRIGHTNESS
91 /* Main LCD backlight brightness range and defaults */
92 //#define MIN_BRIGHTNESS_SETTING 0
93 //#define MAX_BRIGHTNESS_SETTING 127
94 //#define DEFAULT_BRIGHTNESS_SETTING 85 /* OF "full brightness" */
95 //#define DEFAULT_DIMNESS_SETTING 22 /* OF "most dim" */
97 /* Define this if you have a software controlled poweroff */
98 //#define HAVE_SW_POWEROFF
99 //TODO: enable this back
101 /* The number of bytes reserved for loadable codecs */
102 #define CODEC_SIZE 0x80000
104 /* The number of bytes reserved for loadable plugins */
105 #define PLUGIN_BUFFER_SIZE 0x100000
107 /* Define this if you have the TLV320 audio codec -> controlled by the DSP */
108 #define HAVE_TLV320
110 #define CONFIG_I2C I2C_DM320
112 /* TLV320 has no tone controls, so we use the software ones */
113 #define HAVE_SW_TONE_CONTROLS
115 /*#define HW_SAMPR_CAPS (SAMPR_CAP_88 | SAMPR_CAP_44 | SAMPR_CAP_22 | \
116 SAMPR_CAP_11)*/
118 #define BATTERY_CAPACITY_DEFAULT 1250 /* default battery capacity */
119 #define BATTERY_CAPACITY_MIN 500 /* min. capacity selectable */
120 #define BATTERY_CAPACITY_MAX 2500 /* max. capacity selectable */
121 #define BATTERY_CAPACITY_INC 100 /* capacity increment */
122 #define BATTERY_TYPES_COUNT 1 /* only one type */
124 /* Hardware controlled charging with monitoring */
125 //#define CONFIG_CHARGING CHARGING_MONITOR
127 #ifndef SIMULATOR
129 /* Define this if you have a TI TMS320DM320 */
130 #define CONFIG_CPU DM320
132 /* define this if the hardware can be powered off while charging */
133 #define HAVE_POWEROFF_WHILE_CHARGING
135 /* The size of the flash ROM */
136 #define FLASH_SIZE 0x400000
138 /* Define this to the CPU frequency */
139 #define CPU_FREQ 16934400
141 /* Define this if you have ATA power-off control */
142 #define HAVE_ATA_POWER_OFF
144 /* Virtual LED (icon) */
145 #define CONFIG_LED LED_VIRTUAL
147 /* define this if the backlight can be set to a brightness */
148 //#define __BACKLIGHT_INIT
150 /* Offset ( in the firmware file's header ) to the file CRC */
151 #define FIRMWARE_OFFSET_FILE_CRC 0
153 /* Offset ( in the firmware file's header ) to the real data */
154 #define FIRMWARE_OFFSET_FILE_DATA 8
156 /* Define this if you have adjustable CPU frequency */
157 /* #define HAVE_ADJUSTABLE_CPU_FREQ */
159 #define BOOTFILE_EXT "zvm"
160 #define BOOTFILE "rockbox." BOOTFILE_EXT
161 #define BOOTDIR "/.rockbox"
163 #define CONFIG_USBOTG USBOTG_ISP1583
164 #define HAVE_USBSTACK
165 #define USB_VENDOR_ID 0x041e
166 #define USB_PRODUCT_ID 0x4133
168 /*DEBUGGING!*/
169 #ifdef BOOTLOADER
170 #define THREAD_EXTRA_CHECKS 1
171 #define DEBUG 1
172 #define debug(msg) printf(msg)
173 #define BUTTON_DEBUG
174 #endif
176 #endif