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