TARGET_TREE is not needed anymore
[maemo-rb.git] / firmware / export / config / vibe500.h
blob6e5bd0742ed88af68aff4f5b3f4d6d26103f0a88
1 /*
2 * This config file is for Packard Bell Vibe 500
3 */
5 /* For Rolo and boot loader */
6 #define MODEL_NUMBER 67
8 #define MODEL_NAME "Packard Bell Vibe 500"
10 #define CONFIG_STORAGE STORAGE_ATA
12 /*define this if the ATA controller and method of USB access support LBA48 */
13 #define HAVE_LBA48
15 /* define this if you have recording possibility */
16 #define HAVE_RECORDING
18 /* Define bitmask of input sources - recordable bitmask can be defined
19 explicitly if different */
20 #define INPUT_SRC_CAPS (SRC_CAP_MIC | SRC_CAP_LINEIN)
22 /* define the bitmask of hardware sample rates */
23 #define HW_SAMPR_CAPS (SAMPR_CAP_88 | SAMPR_CAP_44 | SAMPR_CAP_22 | SAMPR_CAP_11)
25 /* define the bitmask of recording sample rates */
26 #define REC_SAMPR_CAPS (SAMPR_CAP_88 | SAMPR_CAP_44 | SAMPR_CAP_22 | SAMPR_CAP_11)
28 /* define this if you have a bitmap LCD display */
29 #define HAVE_LCD_BITMAP
31 /* define this if you can flip your LCD */
32 #define HAVE_LCD_FLIP
34 /* define this if you can ivert the colours on your LCD */
35 #define HAVE_LCD_INVERT
37 /* define this if you have a colour LCD */
38 #define HAVE_LCD_COLOR
40 /* define this if you want album art for this target */
41 #define HAVE_ALBUMART
43 /* define this to enable bitmap scaling */
44 #define HAVE_BMP_SCALING
46 /* define this to enable JPEG decoding */
47 #define HAVE_JPEG
49 /* define this if you have access to the quickscreen */
50 #define HAVE_QUICKSCREEN
52 /* define this if you have access to the pitchscreen */
53 #define HAVE_PITCHSCREEN
55 /* define this if you would like tagcache to build on this target */
56 #define HAVE_TAGCACHE
58 /* LCD dimensions */
59 #define LCD_WIDTH 160
60 #define LCD_HEIGHT 128
61 #define LCD_DEPTH 16 /* 65536 colors */
62 #define LCD_PIXELFORMAT RGB565SWAPPED /* rgb565 */
64 #ifndef BOOTLOADER
65 /* Define this if your LCD can be enabled/disabled */
66 #define HAVE_LCD_ENABLE
68 /* Define this if your LCD can be put to sleep. HAVE_LCD_ENABLE
69 should be defined as well. */
70 #define HAVE_LCD_SLEEP
71 #define HAVE_LCD_SLEEP_SETTING
72 #endif
74 #define CONFIG_KEYPAD PBELL_VIBE500_PAD
76 /* Define this to enable morse code input */
77 #define HAVE_MORSE_INPUT
79 /* Define this if you do software codec */
80 #define CONFIG_CODEC SWCODEC
82 /* define this if you have a real-time clock */
83 /* Philips 8563T - E8564 is a clone of it */
84 #define CONFIG_RTC RTC_E8564
85 #define HAVE_RTC_ALARM
87 /* define this if you have a disk storage, i.e. something
88 that needs spinups and can cause skips when shaked */
89 #define HAVE_DISK_STORAGE
91 /* Define this if you have a software controlled poweroff */
92 #define HAVE_SW_POWEROFF
94 /* The number of bytes reserved for loadable codecs */
95 #define CODEC_SIZE 0x100000
97 /* The number of bytes reserved for loadable plugins */
98 #define PLUGIN_BUFFER_SIZE 0x80000
100 /* Define the type of audio codec */
101 #define HAVE_WM8731
103 /* WM8731 has no tone controls, so we use the software ones */
104 #define HAVE_SW_TONE_CONTROLS
106 #define AB_REPEAT_ENABLE
107 #define ACTION_WPSAB_SINGLE ACTION_WPS_BROWSE
109 /* Define this for LCD backlight available */
110 #define HAVE_BACKLIGHT
111 #define HAVE_BACKLIGHT_BRIGHTNESS
113 /* Main LCD backlight brightness range and defaults */
114 #define MIN_BRIGHTNESS_SETTING 1
115 #define MAX_BRIGHTNESS_SETTING 16
116 #define DEFAULT_BRIGHTNESS_SETTING 10
118 /* define this if you have a light associated with the buttons */
119 #define HAVE_BUTTON_LIGHT
120 #define HAVE_BUTTONLIGHT_BRIGHTNESS /* for compatibility */
122 #define BATTERY_CAPACITY_DEFAULT 1000 /* default battery capacity */
123 #define BATTERY_CAPACITY_MIN 500 /* min. capacity selectable */
124 #define BATTERY_CAPACITY_MAX 1500 /* max. capacity selectable */
125 #define BATTERY_CAPACITY_INC 50 /* capacity increment */
126 #define BATTERY_TYPES_COUNT 1 /* only one type */
128 #define CONFIG_BATTERY_MEASURE VOLTAGE_MEASURE
130 /* Hardware controlled charging, software can monitor plug and charge state */
131 #define CONFIG_CHARGING CHARGING_SIMPLE
133 /* define this if the unit can be powered or charged via USB */
134 #define HAVE_USB_POWER
136 /* Define this if you have a PortalPlayer PP5020 */
137 #define CONFIG_CPU PP5020
139 /* Define this if you want to use the PP5022 i2c interface */
140 #define CONFIG_I2C I2C_PP5020
142 /* define this if the hardware can be powered off while charging */
143 #define HAVE_POWEROFF_WHILE_CHARGING
145 /* The start address index for ROM builds */
146 #define ROM_START 0x00000000
148 /* The size of the flash ROM */
149 #define FLASH_SIZE 0x80000
151 /* Define this to the CPU frequency */
152 #define CPU_FREQ 75000000
154 #define CONFIG_LCD LCD_VIBE500
156 /* Define this if your LCD can set contrast */
157 #define HAVE_LCD_CONTRAST
158 #define MIN_CONTRAST_SETTING 0
159 #define MAX_CONTRAST_SETTING 16
160 #define DEFAULT_CONTRAST_SETTING 10 /* OF */
162 /* We're able to shut off power to the HDD */
163 #define HAVE_ATA_POWER_OFF
165 /* Offset ( in the firmware file's header ) to the file length */
166 #define FIRMWARE_OFFSET_FILE_LENGTH 0
168 /* Offset ( in the firmware file's header ) to the file CRC */
169 #define FIRMWARE_OFFSET_FILE_CRC 0
171 /* Offset ( in the firmware file's header ) to the real data */
172 #define FIRMWARE_OFFSET_FILE_DATA 8
174 /* USB On-the-go */
175 #define CONFIG_USBOTG USBOTG_ARC
177 /* enable these for the experimental usb stack */
178 #define HAVE_USBSTACK
179 #define USE_ROCKBOX_USB
180 #define USB_VENDOR_ID 0x0409
181 #define USB_PRODUCT_ID 0x8038
182 #define HAVE_USB_HID_MOUSE
184 /* Define this if you have adjustable CPU frequency */
185 #define HAVE_ADJUSTABLE_CPU_FREQ
187 /* define this if the device has larger sectors when accessed via USB */
188 /* (only relevant in disk.c, fat.c now always supports large virtual sectors) */
189 /* #define MAX_LOG_SECTOR_SIZE 2048 */
191 /* define this if the hard drive uses large physical sectors (ATA-7 feature) */
192 /* and doesn't handle them in the drive firmware */
193 /* #define MAX_PHYS_SECTOR_SIZE 1024 */
195 #define MI4_FORMAT
196 #define BOOTFILE_EXT "mi4"
197 #define BOOTFILE "rockbox." BOOTFILE_EXT
198 #define BOOTDIR "/.rockbox"
200 #define ICODE_ATTR_TREMOR_NOT_MDCT
202 /* DMA is used only for reading on PP502x because although reads are ~8x faster
203 * writes appear to be ~25% slower.
205 /* Switched off due to reported instabilities. #define HAVE_ATA_DMA */
207 /* Define this if a programmable hotkey is mapped */
208 #define HAVE_HOTKEY