summaryrefslogtreecommitdiff
path: root/firmware/export
diff options
context:
space:
mode:
authorFrank Gevaerts <frank@gevaerts.be>2010-01-18 19:05:20 +0000
committerFrank Gevaerts <frank@gevaerts.be>2010-01-18 19:05:20 +0000
commit553626a9582a266f99134f735759e63da0a44714 (patch)
tree7b336d379e61c632ad0ff775bca2f5d37a80775d /firmware/export
parent39e51cc66e0f9d2afc82515958c1719fdac43332 (diff)
downloadrockbox-553626a9582a266f99134f735759e63da0a44714.tar.gz
rockbox-553626a9582a266f99134f735759e63da0a44714.zip
Add initial Packard Bell Vibe 500 port, by Szymon Dziok
Author: Szymon Dziok Flyspray: FS#10912 git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24276 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/export')
-rw-r--r--firmware/export/config.h4
-rw-r--r--firmware/export/config/vibe500.h193
-rw-r--r--firmware/export/usb.h3
3 files changed, 200 insertions, 0 deletions
diff --git a/firmware/export/config.h b/firmware/export/config.h
index 2b7c6d8663..81e83b09f4 100644
--- a/firmware/export/config.h
+++ b/firmware/export/config.h
@@ -116,6 +116,7 @@
116#define SAMSUNG_YPS3_PAD 40 116#define SAMSUNG_YPS3_PAD 40
117#define MINI2440_PAD 41 117#define MINI2440_PAD 41
118#define PHILIPS_HDD6330_PAD 42 118#define PHILIPS_HDD6330_PAD 42
119#define PBELL_VIBE500_PAD 43
119 120
120/* CONFIG_REMOTE_KEYPAD */ 121/* CONFIG_REMOTE_KEYPAD */
121#define H100_REMOTE 1 122#define H100_REMOTE 1
@@ -197,6 +198,7 @@
197#define LCD_NANO2G 36 /* as used by the iPod Nano 2nd Generation */ 198#define LCD_NANO2G 36 /* as used by the iPod Nano 2nd Generation */
198#define LCD_MINI2440 37 /* as used by the Mini2440 */ 199#define LCD_MINI2440 37 /* as used by the Mini2440 */
199#define LCD_HDD6330 38 /* as used by the Philips HDD6330 */ 200#define LCD_HDD6330 38 /* as used by the Philips HDD6330 */
201#define LCD_VIBE500 39 /* as used by the Packard Bell Vibe 500 */
200 202
201/* LCD_PIXELFORMAT */ 203/* LCD_PIXELFORMAT */
202#define HORIZONTAL_PACKING 1 204#define HORIZONTAL_PACKING 1
@@ -402,6 +404,8 @@ Lyre prototype 1 */
402#include "config/samsungyh925.h" 404#include "config/samsungyh925.h"
403#elif defined(SAMSUNG_YPS3) 405#elif defined(SAMSUNG_YPS3)
404#include "config/samsungyps3.h" 406#include "config/samsungyps3.h"
407#elif defined(PBELL_VIBE500)
408#include "config/vibe500.h"
405#else 409#else
406/* no known platform */ 410/* no known platform */
407#endif 411#endif
diff --git a/firmware/export/config/vibe500.h b/firmware/export/config/vibe500.h
new file mode 100644
index 0000000000..2d0b4505dc
--- /dev/null
+++ b/firmware/export/config/vibe500.h
@@ -0,0 +1,193 @@
1/*
2 * This config file is for Packard Bell Vibe 500
3 */
4#define TARGET_TREE /* this target is using the target tree system */
5
6/* For Rolo and boot loader */
7#define MODEL_NUMBER 67
8
9#define MODEL_NAME "Packard Bell Vibe 500"
10
11#define CONFIG_STORAGE STORAGE_ATA
12
13/* define this if you have recording possibility */
14/* line-in, microphone - but not yet :-/ */
15/*#define HAVE_RECORDING*/
16
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)*/
20
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)
23
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)
26
27/* define this if you have a bitmap LCD display */
28#define HAVE_LCD_BITMAP
29
30/* define this if you can flip your LCD */
31#define HAVE_LCD_FLIP
32
33/* define this if you can ivert the colours on your LCD */
34#define HAVE_LCD_INVERT
35
36/* define this if you have a colour LCD */
37#define HAVE_LCD_COLOR
38
39/* define this if you want album art for this target */
40#define HAVE_ALBUMART
41
42/* define this to enable bitmap scaling */
43#define HAVE_BMP_SCALING
44
45/* define this to enable JPEG decoding */
46#define HAVE_JPEG
47
48/* define this if you have access to the quickscreen */
49#define HAVE_QUICKSCREEN
50
51/* define this if you have access to the pitchscreen */
52#define HAVE_PITCHSCREEN
53
54/* define this if you would like tagcache to build on this target */
55#define HAVE_TAGCACHE
56
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 */
62
63#ifndef BOOTLOADER
64/* Define this if your LCD can be enabled/disabled */
65#define HAVE_LCD_ENABLE
66
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
72
73#define CONFIG_KEYPAD PBELL_VIBE500_PAD
74
75/* Define this if you do software codec */
76#define CONFIG_CODEC SWCODEC
77
78/* define this if you have a real-time clock */
79/* RTC is individual - Philips 8563T - not yet implemented */
80/*#define CONFIG_RTC RTC_S5L8700
81#define CONFIG_RTC RTC_S35390A*/
82
83/* that needs spinups and can cause skips when shaked */
84#define HAVE_DISK_STORAGE
85
86/* Define this if you have a software controlled poweroff */
87#define HAVE_SW_POWEROFF
88
89/* The number of bytes reserved for loadable codecs */
90#define CODEC_SIZE 0x100000
91
92/* The number of bytes reserved for loadable plugins */
93#define PLUGIN_BUFFER_SIZE 0x80000
94
95/* Define the type of audio codec */
96#define HAVE_WM8731
97
98/* WM8731 has no tone controls, so we use the software ones */
99#define HAVE_SW_TONE_CONTROLS
100
101#define AB_REPEAT_ENABLE 1
102#define ACTION_WPSAB_SINGLE ACTION_WPS_BROWSE
103
104/* Define this for LCD backlight available */
105#define HAVE_BACKLIGHT
106#define HAVE_BACKLIGHT_BRIGHTNESS
107
108/* Main LCD backlight brightness range and defaults */
109#define MIN_BRIGHTNESS_SETTING 1
110#define MAX_BRIGHTNESS_SETTING 16
111#define DEFAULT_BRIGHTNESS_SETTING 10
112
113/* define this if you have a light associated with the buttons */
114#define HAVE_BUTTON_LIGHT
115#define HAVE_BUTTONLIGHT_BRIGHTNESS /* for compatibility */
116
117#define BATTERY_CAPACITY_DEFAULT 1000 /* default battery capacity */
118#define BATTERY_CAPACITY_MIN 500 /* min. capacity selectable */
119#define BATTERY_CAPACITY_MAX 1500 /* max. capacity selectable */
120#define BATTERY_CAPACITY_INC 50 /* capacity increment */
121#define BATTERY_TYPES_COUNT 1 /* only one type */
122
123/* Hardware controlled charging, software can monitor plug and charge state */
124#define CONFIG_CHARGING CHARGING_SIMPLE
125
126/* define this if the unit can be powered or charged via USB */
127#define HAVE_USB_POWER
128
129/* Define this if you have a PortalPlayer PP5020 */
130#define CONFIG_CPU PP5020
131
132/* Define this if you want to use the PP5022 i2c interface */
133#define CONFIG_I2C I2C_PP5020
134
135/* define this if the hardware can be powered off while charging */
136/* It is possible to do it (OF seems to do that) but the method is unknown yet */
137/* #define HAVE_POWEROFF_WHILE_CHARGING */
138
139/* The start address index for ROM builds */
140#define ROM_START 0x00000000
141
142/* The size of the flash ROM */
143#define FLASH_SIZE 0x80000
144
145/* Define this to the CPU frequency */
146#define CPU_FREQ 75000000
147
148#define CONFIG_LCD LCD_VIBE500
149
150/* Define this if your LCD can set contrast */
151#define HAVE_LCD_CONTRAST
152#define MIN_CONTRAST_SETTING 0
153#define MAX_CONTRAST_SETTING 16
154#define DEFAULT_CONTRAST_SETTING 10 /* OF */
155
156/* We're able to shut off power to the HDD */
157#define HAVE_ATA_POWER_OFF
158
159/* Offset ( in the firmware file's header ) to the file length */
160#define FIRMWARE_OFFSET_FILE_LENGTH 0
161
162/* Offset ( in the firmware file's header ) to the file CRC */
163#define FIRMWARE_OFFSET_FILE_CRC 0
164
165/* Offset ( in the firmware file's header ) to the real data */
166#define FIRMWARE_OFFSET_FILE_DATA 8
167
168/* USB On-the-go */
169#define CONFIG_USBOTG USBOTG_ARC
170
171/* enable these for the experimental usb stack */
172#define HAVE_USBSTACK
173#define USE_ROCKBOX_USB
174#define USB_VENDOR_ID 0x0409
175#define USB_PRODUCT_ID 0x8038
176#define HAVE_USB_HID_MOUSE
177
178/* Define this if you have adjustable CPU frequency */
179#define HAVE_ADJUSTABLE_CPU_FREQ
180
181/* define this if the device has larger sectors when accessed via USB */
182/* (only relevant in disk.c, fat.c now always supports large virtual sectors) */
183/* #define MAX_LOG_SECTOR_SIZE 2048 */
184
185/* define this if the hard drive uses large physical sectors (ATA-7 feature) */
186/* and doesn't handle them in the drive firmware */
187/* #define MAX_PHYS_SECTOR_SIZE 1024 */
188
189#define BOOTFILE_EXT "mi4"
190#define BOOTFILE "rockbox." BOOTFILE_EXT
191#define BOOTDIR "/.system"
192
193#define ICODE_ATTR_TREMOR_NOT_MDCT
diff --git a/firmware/export/usb.h b/firmware/export/usb.h
index 59c0004416..e725f0aff4 100644
--- a/firmware/export/usb.h
+++ b/firmware/export/usb.h
@@ -98,6 +98,9 @@ enum {
98#elif CONFIG_KEYPAD == ONDAVX747_PAD 98#elif CONFIG_KEYPAD == ONDAVX747_PAD
99#define USBPOWER_BUTTON BUTTON_VOL_UP 99#define USBPOWER_BUTTON BUTTON_VOL_UP
100#define USBPOWER_BTN_IGNORE BUTTON_VOL_DOWN 100#define USBPOWER_BTN_IGNORE BUTTON_VOL_DOWN
101#elif CONFIG_KEYPAD == PBELL_VIBE500_PAD
102#define USBPOWER_BUTTON BUTTON_REC
103#define USBPOWER_BTN_IGNORE BUTTON_POWER
101#endif 104#endif
102#endif /* HAVE_USB_POWER */ 105#endif /* HAVE_USB_POWER */
103 106