summaryrefslogtreecommitdiff
path: root/firmware/export
diff options
context:
space:
mode:
authorMark Arigo <markarigo@gmail.com>2008-06-27 18:40:25 +0000
committerMark Arigo <markarigo@gmail.com>2008-06-27 18:40:25 +0000
commit22e7bf32b894acc1f9e2820e213f05a57bd4148c (patch)
treecdecc7a9f0db0b41d7ac55680c2b3b2212ab4dda /firmware/export
parent78337961b72b76c410075a0d5fe6c3cf1269b5e8 (diff)
downloadrockbox-22e7bf32b894acc1f9e2820e213f05a57bd4148c.tar.gz
rockbox-22e7bf32b894acc1f9e2820e213f05a57bd4148c.zip
My Devcon 2008 contribution: port for Philips GoGear HDD1630 (PP5022-based). Current status is that the bootloader works to load Rockbox, but dual boot does not work: it freezes after decrypting the OF. When Rockbox boots, it freezes somewhere between showing the logo and the main menu. And there's no driver for the touchpad. So lots of work left.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17809 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/export')
-rwxr-xr-xfirmware/export/config-hdd1630.h189
-rw-r--r--firmware/export/config.h4
-rw-r--r--firmware/export/usb.h3
3 files changed, 196 insertions, 0 deletions
diff --git a/firmware/export/config-hdd1630.h b/firmware/export/config-hdd1630.h
new file mode 100755
index 0000000000..19ca190a57
--- /dev/null
+++ b/firmware/export/config-hdd1630.h
@@ -0,0 +1,189 @@
1/*
2 * This config file is for the iriver H10 20Gb
3 */
4
5#define TARGET_TREE /* this target is using the target tree system */
6
7/* For Rolo and boot loader */
8#define MODEL_NUMBER 31
9#define MODEL_NAME "Philips GoGear HDD1630"
10
11/* define this if you use an ATA controller */
12#define HAVE_ATA
13
14/* define this if you have recording possibility */
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_44)
23
24/* define the bitmask of recording sample rates */
25#define REC_SAMPR_CAPS (SAMPR_CAP_44)
26
27/* define this if you have a bitmap LCD display */
28#define HAVE_LCD_BITMAP
29
30/* define this if you have a colour LCD */
31#define HAVE_LCD_COLOR
32
33/* define this if you want album art for this target */
34#define HAVE_ALBUMART
35
36/* define this if you have access to the quickscreen */
37#define HAVE_QUICKSCREEN
38
39/* define this if you have access to the pitchscreen */
40#define HAVE_PITCHSCREEN
41
42/* define this if you would like tagcache to build on this target */
43#define HAVE_TAGCACHE
44
45/* LCD dimensions */
46#define LCD_WIDTH 128
47#define LCD_HEIGHT 128
48#define LCD_DEPTH 16 /* 65536 colours */
49#define LCD_PIXELFORMAT RGB565SWAPPED /* rgb565 byte-swapped */
50
51#ifndef BOOTLOADER
52/* Define this if your LCD can be enabled/disabled */
53/* #define HAVE_LCD_ENABLE */
54
55/* Define this if your LCD can be put to sleep. HAVE_LCD_ENABLE
56 * should be defined as well.
57 * We can currently put the lcd to sleep but it won't wake up properly */
58/* #define HAVE_LCD_SLEEP */
59/* #define HAVE_LCD_SLEEP_SETTING */
60#endif
61
62/* define this if you can flip your LCD */
63/* #define HAVE_LCD_FLIP */
64
65/* define this if you can invert the colours on your LCD */
66/* #define HAVE_LCD_INVERT */
67
68/* #define IRAM_LCDFRAMEBUFFER IDATA_ATTR *//* put the lcd frame buffer in IRAM */
69
70#define CONFIG_KEYPAD PHILIPS_HDD1630_PAD
71
72/* Define this if you do software codec */
73#define CONFIG_CODEC SWCODEC
74
75/* define this if you have a real-time clock */
76#ifndef BOOTLOADER
77/* #define CONFIG_RTC RTC_E8564 */
78/* #define HAVE_RTC_ALARM */
79#endif
80
81/* Define this if you have a software controlled poweroff */
82/* #define HAVE_SW_POWEROFF */
83
84/* The number of bytes reserved for loadable codecs */
85#define CODEC_SIZE 0x80000
86
87/* The number of bytes reserved for loadable plugins */
88#define PLUGIN_BUFFER_SIZE 0x80000
89
90/* Define this if you have the WM8731 audio codec */
91#define HAVE_WM8731
92
93/* WM8731 has no tone controls, so we use the software ones */
94#define HAVE_SW_TONE_CONTROLS
95
96#define AB_REPEAT_ENABLE 1
97
98/* FM Tuner */
99/* #define CONFIG_TUNER TEA5767 */
100/* #define CONFIG_TUNER_XTAL 32768 */
101
102/* Define this for LCD backlight available */
103#define HAVE_BACKLIGHT
104/* #define HAVE_BACKLIGHT_BRIGHTNESS */
105
106/* Main LCD backlight brightness range and defaults */
107#define MIN_BRIGHTNESS_SETTING 1
108#define MAX_BRIGHTNESS_SETTING 12
109#define DEFAULT_BRIGHTNESS_SETTING 6
110
111/* define this if you have a light associated with the buttons */
112/* #define HAVE_BUTTON_LIGHT */
113
114#define AB_REPEAT_ENABLE 1
115
116#define BATTERY_CAPACITY_DEFAULT 1550 /* default battery capacity */
117#define BATTERY_CAPACITY_MIN 1500 /* min. capacity selectable */
118#define BATTERY_CAPACITY_MAX 3200 /* max. capacity selectable */
119#define BATTERY_CAPACITY_INC 50 /* capacity increment */
120#define BATTERY_TYPES_COUNT 1 /* only one type */
121
122/* Hardware controlled charging */
123/* #define CONFIG_CHARGING CHARGING_SIMPLE */
124
125/* define this if the unit can be powered or charged via USB */
126#define HAVE_USB_POWER
127
128#ifndef SIMULATOR
129
130/* Define this if you have a PortalPlayer PP5020 */
131#define CONFIG_CPU PP5022
132
133/* Define this if you want to use the PP5020 i2c interface */
134#define CONFIG_I2C I2C_PP5020
135
136/* define this if the hardware can be powered off while charging */
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 0x100000
144
145/* Define this to the CPU frequency */
146#define CPU_FREQ 75000000
147
148/* Type of LCD */
149#define CONFIG_LCD LCD_HDD1630
150
151/* Define this if your LCD can set contrast */
152#define HAVE_LCD_CONTRAST
153
154#define MIN_CONTRAST_SETTING 0
155#define MAX_CONTRAST_SETTING 30
156#define DEFAULT_CONTRAST_SETTING 14 /* Match boot contrast */
157
158/* We're able to shut off power to the HDD */
159/* #define HAVE_ATA_POWER_OFF */
160
161/* Offset ( in the firmware file's header ) to the file CRC and data. These are
162 only used when loading the old format rockbox.e200 file */
163#define FIRMWARE_OFFSET_FILE_CRC 0x0
164#define FIRMWARE_OFFSET_FILE_DATA 0x8
165
166/* #define USB_IPODSTYLE */
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 USB_VENDOR_ID 0x0471
174#define USB_PRODUCT_ID 0x014C
175
176/* Virtual LED (icon) */
177#define CONFIG_LED LED_VIRTUAL
178
179/* Define this if you have adjustable CPU frequency */
180#define HAVE_ADJUSTABLE_CPU_FREQ
181
182#define MI4_FORMAT
183#define BOOTFILE_EXT "mi4"
184#define BOOTFILE "rockbox." BOOTFILE_EXT
185#define BOOTDIR "/.rockbox"
186
187#define ICODE_ATTR_TREMOR_NOT_MDCT
188
189#endif
diff --git a/firmware/export/config.h b/firmware/export/config.h
index 34d0bf27c6..1a6e5d6894 100644
--- a/firmware/export/config.h
+++ b/firmware/export/config.h
@@ -85,6 +85,7 @@
85#define CREATIVEZV_PAD 26 85#define CREATIVEZV_PAD 26
86#define PHILIPS_SA9200_PAD 27 86#define PHILIPS_SA9200_PAD 27
87#define SANSA_C100_PAD 28 87#define SANSA_C100_PAD 28
88#define PHILIPS_HDD1630_PAD 29
88 89
89/* CONFIG_REMOTE_KEYPAD */ 90/* CONFIG_REMOTE_KEYPAD */
90#define H100_REMOTE 1 91#define H100_REMOTE 1
@@ -125,6 +126,7 @@
125#define LCD_COWOND2 24 /* as used by Cowon D2 - LTV250QV, TCC7801 driver */ 126#define LCD_COWOND2 24 /* as used by Cowon D2 - LTV250QV, TCC7801 driver */
126#define LCD_SA9200 25 /* as used by the Philips SA9200 */ 127#define LCD_SA9200 25 /* as used by the Philips SA9200 */
127#define LCD_S6B33B2 26 /* as used by the Sansa c100 */ 128#define LCD_S6B33B2 26 /* as used by the Sansa c100 */
129#define LCD_HDD1630 27 /* as used by the Philips HDD1630 */
128 130
129/* LCD_PIXELFORMAT */ 131/* LCD_PIXELFORMAT */
130#define HORIZONTAL_PACKING 1 132#define HORIZONTAL_PACKING 1
@@ -265,6 +267,8 @@
265#include "config-creativezv.h" 267#include "config-creativezv.h"
266#elif defined(PHILIPS_SA9200) 268#elif defined(PHILIPS_SA9200)
267#include "config-sa9200.h" 269#include "config-sa9200.h"
270#elif defined(PHILIPS_HDD1630)
271#include "config-hdd1630.h"
268#elif defined(SANSA_C100) 272#elif defined(SANSA_C100)
269#include "config-c100.h" 273#include "config-c100.h"
270#else 274#else
diff --git a/firmware/export/usb.h b/firmware/export/usb.h
index 0590f702c5..05ea84148a 100644
--- a/firmware/export/usb.h
+++ b/firmware/export/usb.h
@@ -64,6 +64,9 @@ enum {
64 (CONFIG_KEYPAD == PHILIPS_SA9200_PAD) 64 (CONFIG_KEYPAD == PHILIPS_SA9200_PAD)
65#define USBPOWER_BUTTON BUTTON_SELECT 65#define USBPOWER_BUTTON BUTTON_SELECT
66#define USBPOWER_BTN_IGNORE BUTTON_POWER 66#define USBPOWER_BTN_IGNORE BUTTON_POWER
67#elif CONFIG_KEYPAD == PHILIPS_HDD1630_PAD
68#define USBPOWER_BUTTON BUTTON_PLAYLIST
69#define USBPOWER_BTN_IGNORE BUTTON_POWER
67#endif 70#endif
68#endif /* HAVE_USB_POWER */ 71#endif /* HAVE_USB_POWER */
69 72