TARGET_TREE is not needed anymore
[maemo-rb.git] / firmware / export / config / zenvisionm60gb.h
blobc186500e6a3dd95d6795399e1716700553214860
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 60GB
26 #define CONFIG_SDRAM_START 0x00900000
28 #define CREATIVE_ZVM60GB 1
30 #define MODEL_NAME "Creative Zen Vision:M 60GB"
32 /* This makes it part of the Creative Zen Vision family :) */
33 #define CREATIVE_ZVx 1
35 /* For Rolo and boot loader */
36 #define MODEL_NUMBER 27
38 /* define this if you use an ATA controller */
39 #define CONFIG_STORAGE STORAGE_ATA
41 /*define this if the ATA controller and method of USB access support LBA48 */
42 #define HAVE_LBA48
44 /* define this if you have a bitmap LCD display */
45 #define HAVE_LCD_BITMAP
47 /* define this if you have a colour LCD */
48 #define HAVE_LCD_COLOR
50 /* define this if you have access to the quickscreen */
51 #define HAVE_QUICKSCREEN
53 /* define this if you have access to the pitchscreen */
54 #define HAVE_PITCHSCREEN
56 /* define this if you would like tagcache to build on this target */
57 #define HAVE_TAGCACHE
59 /* define this if the target has volume keys which can be used in the lists */
60 //#define HAVE_VOLUME_IN_LIST
62 /* LCD dimensions */
63 #define CONFIG_LCD LCD_CREATIVEZVM
65 /* choose the lcd orientation. both work */
66 #define CONFIG_ORIENTATION SCREEN_PORTRAIT
68 #define LCD_WIDTH 320
69 #define LCD_HEIGHT 240
71 #define LCD_DEPTH 16 /* 65k 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 CREATIVEZVM_PAD
78 #define HAVE_HEADPHONE_DETECTION
79 //#define HAVE_TOUCHPAD
81 /* Define this to enable morse code input */
82 #define HAVE_MORSE_INPUT
84 /* Define this if you do software codec */
85 #define CONFIG_CODEC SWCODEC
87 /* define this if you have a real-time clock */
88 //#define CONFIG_RTC RTC_RX5X348AB
90 /* define this if you have a disk storage, i.e. something
91 that needs spinups and can cause skips when shaked */
92 #define HAVE_DISK_STORAGE
94 /* Define this for LCD backlight available */
95 //#define HAVE_BACKLIGHT
97 //#define HAVE_BACKLIGHT_BRIGHTNESS
99 /* Main LCD backlight brightness range and defaults */
100 //#define MIN_BRIGHTNESS_SETTING 0
101 //#define MAX_BRIGHTNESS_SETTING 127
102 //#define DEFAULT_BRIGHTNESS_SETTING 85 /* OF "full brightness" */
103 //#define DEFAULT_DIMNESS_SETTING 22 /* OF "most dim" */
105 /* Define this if you have a software controlled poweroff */
106 //#define HAVE_SW_POWEROFF
107 //TODO: enable this back
109 /* The number of bytes reserved for loadable codecs */
110 #define CODEC_SIZE 0x100000
112 /* The number of bytes reserved for loadable plugins */
113 #define PLUGIN_BUFFER_SIZE 0x100000
115 /* Define this if you have the TLV320 audio codec -> controlled by the DSP */
116 #define HAVE_TLV320
118 #define CONFIG_I2C I2C_DM320
120 /* TLV320 has no tone controls, so we use the software ones */
121 #define HAVE_SW_TONE_CONTROLS
123 /*#define HW_SAMPR_CAPS (SAMPR_CAP_88 | SAMPR_CAP_44 | SAMPR_CAP_22 | \
124 SAMPR_CAP_11)*/
126 #define BATTERY_CAPACITY_DEFAULT 1250 /* default battery capacity */
127 #define BATTERY_CAPACITY_MIN 500 /* min. capacity selectable */
128 #define BATTERY_CAPACITY_MAX 2500 /* max. capacity selectable */
129 #define BATTERY_CAPACITY_INC 100 /* capacity increment */
130 #define BATTERY_TYPES_COUNT 1 /* only one type */
132 #define CONFIG_BATTERY_MEASURE VOLTAGE_MEASURE
134 /* Hardware controlled charging with monitoring */
135 //#define CONFIG_CHARGING CHARGING_MONITOR
137 /* Define this if you have a TI TMS320DM320 */
138 #define CONFIG_CPU DM320
140 /* define this if the hardware can be powered off while charging */
141 #define HAVE_POWEROFF_WHILE_CHARGING
143 /* The size of the flash ROM */
144 #define FLASH_SIZE 0x400000
146 /* Define this to the CPU frequency */
147 #define CPU_FREQ 16934400
149 /* Define this if you have ATA power-off control */
150 #define HAVE_ATA_POWER_OFF
152 /* Offset ( in the firmware file's header ) to the file CRC */
153 #define FIRMWARE_OFFSET_FILE_CRC 0
155 /* Offset ( in the firmware file's header ) to the real data */
156 #define FIRMWARE_OFFSET_FILE_DATA 8
158 /* Define this if you have adjustable CPU frequency */
159 /* #define HAVE_ADJUSTABLE_CPU_FREQ */
161 #define BOOTFILE_EXT "zvm60"
162 #define BOOTFILE "rockbox." BOOTFILE_EXT
163 #define BOOTDIR "/.rockbox"
165 /* #define CONFIG_USBOTG USBOTG_ISP1761 */
166 #define CONFIG_USBOTG USBOTG_ISP1583
167 #define HAVE_USBSTACK
168 #define USE_ROCKBOX_USB
169 #define USB_VENDOR_ID 0x041e
170 #define USB_PRODUCT_ID 0x4133
171 #define USB_NUM_ENDPOINTS 7
173 /* Define this if a programmable hotkey is mapped */
174 #define HAVE_HOTKEY