Packard Bell Vibe 500: remove the old bootloader code (actually a lack of code) and...
[kugel-rb.git] / firmware / export / config / vibe500.h
blob37e78f7b61b10adfa0cfc65597a4773b01513a57
1 /*
2 * This config file is for Packard Bell Vibe 500
3 */
4 #define TARGET_TREE /* this target is using the target tree system */
6 /* For Rolo and boot loader */
7 #define MODEL_NUMBER 67
9 #define MODEL_NAME "Packard Bell Vibe 500"
11 #define CONFIG_STORAGE STORAGE_ATA
13 /* define this if you have recording possibility */
14 #define HAVE_RECORDING
16 /* Define bitmask of input sources - recordable bitmask can be defined
17 explicitly if different */
18 #define INPUT_SRC_CAPS (SRC_CAP_MIC | SRC_CAP_LINEIN)
20 /* define the bitmask of hardware sample rates */
21 #define HW_SAMPR_CAPS (SAMPR_CAP_88 | SAMPR_CAP_44 | SAMPR_CAP_22 | SAMPR_CAP_11)
23 /* define the bitmask of recording sample rates */
24 #define REC_SAMPR_CAPS (SAMPR_CAP_88 | SAMPR_CAP_44 | SAMPR_CAP_22 | SAMPR_CAP_11)
26 /* define this if you have a bitmap LCD display */
27 #define HAVE_LCD_BITMAP
29 /* define this if you can flip your LCD */
30 #define HAVE_LCD_FLIP
32 /* define this if you can ivert the colours on your LCD */
33 #define HAVE_LCD_INVERT
35 /* define this if you have a colour LCD */
36 #define HAVE_LCD_COLOR
38 /* define this if you want album art for this target */
39 #define HAVE_ALBUMART
41 /* define this to enable bitmap scaling */
42 #define HAVE_BMP_SCALING
44 /* define this to enable JPEG decoding */
45 #define HAVE_JPEG
47 /* define this if you have access to the quickscreen */
48 #define HAVE_QUICKSCREEN
50 /* define this if you have access to the pitchscreen */
51 #define HAVE_PITCHSCREEN
53 /* define this if you would like tagcache to build on this target */
54 #define HAVE_TAGCACHE
56 /* LCD dimensions */
57 #define LCD_WIDTH 160
58 #define LCD_HEIGHT 128
59 #define LCD_DEPTH 16 /* 65536 colors */
60 #define LCD_PIXELFORMAT RGB565SWAPPED /* rgb565 */
62 #ifndef BOOTLOADER
63 /* Define this if your LCD can be enabled/disabled */
64 #define HAVE_LCD_ENABLE
66 /* Define this if your LCD can be put to sleep. HAVE_LCD_ENABLE
67 should be defined as well. */
68 #define HAVE_LCD_SLEEP
69 #define HAVE_LCD_SLEEP_SETTING
70 #endif
72 #define CONFIG_KEYPAD PBELL_VIBE500_PAD
74 /* Define this to enable morse code input */
75 #define HAVE_MORSE_INPUT
77 /* Define this if you do software codec */
78 #define CONFIG_CODEC SWCODEC
80 /* define this if you have a real-time clock */
81 /* Philips 8563T - E8564 is a clone of it */
82 #define CONFIG_RTC RTC_E8564
83 #define HAVE_RTC_ALARM
85 /* define this if you have a disk storage, i.e. something
86 that needs spinups and can cause skips when shaked */
87 #define HAVE_DISK_STORAGE
89 /* Define this if you have a software controlled poweroff */
90 #define HAVE_SW_POWEROFF
92 /* The number of bytes reserved for loadable codecs */
93 #define CODEC_SIZE 0x100000
95 /* The number of bytes reserved for loadable plugins */
96 #define PLUGIN_BUFFER_SIZE 0x80000
98 /* Define the type of audio codec */
99 #define HAVE_WM8731
101 /* WM8731 has no tone controls, so we use the software ones */
102 #define HAVE_SW_TONE_CONTROLS
104 #define AB_REPEAT_ENABLE 1
105 #define ACTION_WPSAB_SINGLE ACTION_WPS_BROWSE
107 /* Define this for LCD backlight available */
108 #define HAVE_BACKLIGHT
109 #define HAVE_BACKLIGHT_BRIGHTNESS
111 /* Main LCD backlight brightness range and defaults */
112 #define MIN_BRIGHTNESS_SETTING 1
113 #define MAX_BRIGHTNESS_SETTING 16
114 #define DEFAULT_BRIGHTNESS_SETTING 10
116 /* define this if you have a light associated with the buttons */
117 #define HAVE_BUTTON_LIGHT
118 #define HAVE_BUTTONLIGHT_BRIGHTNESS /* for compatibility */
120 #define BATTERY_CAPACITY_DEFAULT 1000 /* default battery capacity */
121 #define BATTERY_CAPACITY_MIN 500 /* min. capacity selectable */
122 #define BATTERY_CAPACITY_MAX 1500 /* max. capacity selectable */
123 #define BATTERY_CAPACITY_INC 50 /* capacity increment */
124 #define BATTERY_TYPES_COUNT 1 /* only one type */
126 /* Hardware controlled charging, software can monitor plug and charge state */
127 #define CONFIG_CHARGING CHARGING_SIMPLE
129 /* define this if the unit can be powered or charged via USB */
130 #define HAVE_USB_POWER
132 /* Define this if you have a PortalPlayer PP5020 */
133 #define CONFIG_CPU PP5020
135 /* Define this if you want to use the PP5022 i2c interface */
136 #define CONFIG_I2C I2C_PP5020
138 /* define this if the hardware can be powered off while charging */
139 #define HAVE_POWEROFF_WHILE_CHARGING
141 /* The start address index for ROM builds */
142 #define ROM_START 0x00000000
144 /* The size of the flash ROM */
145 #define FLASH_SIZE 0x80000
147 /* Define this to the CPU frequency */
148 #define CPU_FREQ 75000000
150 #define CONFIG_LCD LCD_VIBE500
152 /* Define this if your LCD can set contrast */
153 #define HAVE_LCD_CONTRAST
154 #define MIN_CONTRAST_SETTING 0
155 #define MAX_CONTRAST_SETTING 16
156 #define DEFAULT_CONTRAST_SETTING 10 /* OF */
158 /* We're able to shut off power to the HDD */
159 #define HAVE_ATA_POWER_OFF
161 /* Offset ( in the firmware file's header ) to the file length */
162 #define FIRMWARE_OFFSET_FILE_LENGTH 0
164 /* Offset ( in the firmware file's header ) to the file CRC */
165 #define FIRMWARE_OFFSET_FILE_CRC 0
167 /* Offset ( in the firmware file's header ) to the real data */
168 #define FIRMWARE_OFFSET_FILE_DATA 8
170 /* USB On-the-go */
171 #define CONFIG_USBOTG USBOTG_ARC
173 /* enable these for the experimental usb stack */
174 #define HAVE_USBSTACK
175 #define USE_ROCKBOX_USB
176 #define USB_VENDOR_ID 0x0409
177 #define USB_PRODUCT_ID 0x8038
178 #define HAVE_USB_HID_MOUSE
180 /* Define this if you have adjustable CPU frequency */
181 #define HAVE_ADJUSTABLE_CPU_FREQ
183 /* define this if the device has larger sectors when accessed via USB */
184 /* (only relevant in disk.c, fat.c now always supports large virtual sectors) */
185 /* #define MAX_LOG_SECTOR_SIZE 2048 */
187 /* define this if the hard drive uses large physical sectors (ATA-7 feature) */
188 /* and doesn't handle them in the drive firmware */
189 /* #define MAX_PHYS_SECTOR_SIZE 1024 */
191 #define MI4_FORMAT
192 #define BOOTFILE_EXT "mi4"
193 #define BOOTFILE "rockbox." BOOTFILE_EXT
194 #define BOOTDIR "/.rockbox"
196 #define ICODE_ATTR_TREMOR_NOT_MDCT
198 /* DMA is used only for reading on PP502x because although reads are ~8x faster
199 * writes appear to be ~25% slower.
201 #define HAVE_ATA_DMA