Packard Bell Vibe 500: add RTC alarm.
[kugel-rb.git] / firmware / export / config / vibe500.h
blobd2c279a1314bee789e0957286994ead03379bf8b
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 /* line-in, microphone - but not yet :-/ */
15 /*#define HAVE_RECORDING*/
17 /* Define bitmask of input sources - recordable bitmask can be defined
18 explicitly if different */
19 /*#define INPUT_SRC_CAPS (SRC_CAP_MIC | SRC_CAP_LINEIN | SRC_CAP_FMRADIO)*/
21 /* define the bitmask of hardware sample rates */
22 #define HW_SAMPR_CAPS (SAMPR_CAP_88 | SAMPR_CAP_44 | SAMPR_CAP_22 | SAMPR_CAP_11)
24 /* define the bitmask of recording sample rates */
25 #define REC_SAMPR_CAPS (SAMPR_CAP_88 | SAMPR_CAP_44 | SAMPR_CAP_22 | SAMPR_CAP_11)
27 /* define this if you have a bitmap LCD display */
28 #define HAVE_LCD_BITMAP
30 /* define this if you can flip your LCD */
31 #define HAVE_LCD_FLIP
33 /* define this if you can ivert the colours on your LCD */
34 #define HAVE_LCD_INVERT
36 /* define this if you have a colour LCD */
37 #define HAVE_LCD_COLOR
39 /* define this if you want album art for this target */
40 #define HAVE_ALBUMART
42 /* define this to enable bitmap scaling */
43 #define HAVE_BMP_SCALING
45 /* define this to enable JPEG decoding */
46 #define HAVE_JPEG
48 /* define this if you have access to the quickscreen */
49 #define HAVE_QUICKSCREEN
51 /* define this if you have access to the pitchscreen */
52 #define HAVE_PITCHSCREEN
54 /* define this if you would like tagcache to build on this target */
55 #define HAVE_TAGCACHE
57 /* LCD dimensions */
58 #define LCD_WIDTH 160
59 #define LCD_HEIGHT 128
60 #define LCD_DEPTH 16 /* 65536 colors */
61 #define LCD_PIXELFORMAT RGB565SWAPPED /* rgb565 */
63 #ifndef BOOTLOADER
64 /* Define this if your LCD can be enabled/disabled */
65 #define HAVE_LCD_ENABLE
67 /* Define this if your LCD can be put to sleep. HAVE_LCD_ENABLE
68 should be defined as well. */
69 #define HAVE_LCD_SLEEP
70 #define HAVE_LCD_SLEEP_SETTING
71 #endif
73 #define CONFIG_KEYPAD PBELL_VIBE500_PAD
75 /* Define this to enable morse code input */
76 #define HAVE_MORSE_INPUT
78 /* Define this if you do software codec */
79 #define CONFIG_CODEC SWCODEC
81 /* define this if you have a real-time clock */
82 /* Philips 8563T - E8564 is a clone of it */
83 #define CONFIG_RTC RTC_E8564
84 #define HAVE_RTC_ALARM
86 /* define this if you have a disk storage, i.e. something
87 that needs spinups and can cause skips when shaked */
88 #define HAVE_DISK_STORAGE
90 /* Define this if you have a software controlled poweroff */
91 #define HAVE_SW_POWEROFF
93 /* The number of bytes reserved for loadable codecs */
94 #define CODEC_SIZE 0x100000
96 /* The number of bytes reserved for loadable plugins */
97 #define PLUGIN_BUFFER_SIZE 0x80000
99 /* Define the type of audio codec */
100 #define HAVE_WM8731
102 /* WM8731 has no tone controls, so we use the software ones */
103 #define HAVE_SW_TONE_CONTROLS
105 #define AB_REPEAT_ENABLE 1
106 #define ACTION_WPSAB_SINGLE ACTION_WPS_BROWSE
108 /* Define this for LCD backlight available */
109 #define HAVE_BACKLIGHT
110 #define HAVE_BACKLIGHT_BRIGHTNESS
112 /* Main LCD backlight brightness range and defaults */
113 #define MIN_BRIGHTNESS_SETTING 1
114 #define MAX_BRIGHTNESS_SETTING 16
115 #define DEFAULT_BRIGHTNESS_SETTING 10
117 /* define this if you have a light associated with the buttons */
118 #define HAVE_BUTTON_LIGHT
119 #define HAVE_BUTTONLIGHT_BRIGHTNESS /* for compatibility */
121 #define BATTERY_CAPACITY_DEFAULT 1000 /* default battery capacity */
122 #define BATTERY_CAPACITY_MIN 500 /* min. capacity selectable */
123 #define BATTERY_CAPACITY_MAX 1500 /* max. capacity selectable */
124 #define BATTERY_CAPACITY_INC 50 /* capacity increment */
125 #define BATTERY_TYPES_COUNT 1 /* only one type */
127 /* Hardware controlled charging, software can monitor plug and charge state */
128 #define CONFIG_CHARGING CHARGING_SIMPLE
130 /* define this if the unit can be powered or charged via USB */
131 #define HAVE_USB_POWER
133 /* Define this if you have a PortalPlayer PP5020 */
134 #define CONFIG_CPU PP5020
136 /* Define this if you want to use the PP5022 i2c interface */
137 #define CONFIG_I2C I2C_PP5020
139 /* define this if the hardware can be powered off while charging */
140 /* It is possible to do it (OF seems to do that) but the method is unknown yet */
141 /* #define HAVE_POWEROFF_WHILE_CHARGING */
143 /* The start address index for ROM builds */
144 #define ROM_START 0x00000000
146 /* The size of the flash ROM */
147 #define FLASH_SIZE 0x80000
149 /* Define this to the CPU frequency */
150 #define CPU_FREQ 75000000
152 #define CONFIG_LCD LCD_VIBE500
154 /* Define this if your LCD can set contrast */
155 #define HAVE_LCD_CONTRAST
156 #define MIN_CONTRAST_SETTING 0
157 #define MAX_CONTRAST_SETTING 16
158 #define DEFAULT_CONTRAST_SETTING 10 /* OF */
160 /* We're able to shut off power to the HDD */
161 #define HAVE_ATA_POWER_OFF
163 /* Offset ( in the firmware file's header ) to the file length */
164 #define FIRMWARE_OFFSET_FILE_LENGTH 0
166 /* Offset ( in the firmware file's header ) to the file CRC */
167 #define FIRMWARE_OFFSET_FILE_CRC 0
169 /* Offset ( in the firmware file's header ) to the real data */
170 #define FIRMWARE_OFFSET_FILE_DATA 8
172 /* USB On-the-go */
173 #define CONFIG_USBOTG USBOTG_ARC
175 /* enable these for the experimental usb stack */
176 #define HAVE_USBSTACK
177 #define USE_ROCKBOX_USB
178 #define USB_VENDOR_ID 0x0409
179 #define USB_PRODUCT_ID 0x8038
180 #define HAVE_USB_HID_MOUSE
182 /* Define this if you have adjustable CPU frequency */
183 #define HAVE_ADJUSTABLE_CPU_FREQ
185 /* define this if the device has larger sectors when accessed via USB */
186 /* (only relevant in disk.c, fat.c now always supports large virtual sectors) */
187 /* #define MAX_LOG_SECTOR_SIZE 2048 */
189 /* define this if the hard drive uses large physical sectors (ATA-7 feature) */
190 /* and doesn't handle them in the drive firmware */
191 /* #define MAX_PHYS_SECTOR_SIZE 1024 */
193 #define MI4_FORMAT
194 #define BOOTFILE_EXT "mi4"
195 #define BOOTFILE "rockbox." BOOTFILE_EXT
196 #define BOOTDIR "/.system"
198 #define ICODE_ATTR_TREMOR_NOT_MDCT
200 /* DMA is used only for reading on PP502x because although reads are ~8x faster
201 * writes appear to be ~25% slower.
203 #define HAVE_ATA_DMA