summaryrefslogtreecommitdiff
path: root/firmware/export
diff options
context:
space:
mode:
authorMichael Sparmann <theseven@rockbox.org>2011-11-06 12:06:20 +0000
committerMichael Sparmann <theseven@rockbox.org>2011-11-06 12:06:20 +0000
commit661311256a3d3bc81faa2409823338d85571ab59 (patch)
tree2f7437b88019e5cc204c87aa541ac5d2065d1c5d /firmware/export
parentca2b82b7553022009085a74bb24018c7b1c07d4d (diff)
downloadrockbox-661311256a3d3bc81faa2409823338d85571ab59.tar.gz
rockbox-661311256a3d3bc81faa2409823338d85571ab59.zip
Commit FS#12209 by Vencislav Atanasov: iPod 6g/classic usb product id
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30911 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/export')
-rw-r--r--firmware/export/config/ipod6g.h503
1 files changed, 251 insertions, 252 deletions
diff --git a/firmware/export/config/ipod6g.h b/firmware/export/config/ipod6g.h
index 17fc3ab076..dae9340d5a 100644
--- a/firmware/export/config/ipod6g.h
+++ b/firmware/export/config/ipod6g.h
@@ -1,252 +1,251 @@
1/* 1/*
2 * This config file is for iPod 6G / Classic 2 * This config file is for iPod 6G / Classic
3 */ 3 */
4#define TARGET_TREE /* this target is using the target tree system */ 4#define TARGET_TREE /* this target is using the target tree system */
5 5
6#define IPOD_ARCH 1 6#define IPOD_ARCH 1
7 7
8/* For Rolo and boot loader */ 8/* For Rolo and boot loader */
9#define MODEL_NUMBER 71 9#define MODEL_NUMBER 71
10 10
11#define MODEL_NAME "Apple iPod Classic/6G" 11#define MODEL_NAME "Apple iPod Classic/6G"
12 12
13/* define this if you use an ATA controller */ 13/* define this if you use an ATA controller */
14#define CONFIG_STORAGE STORAGE_ATA 14#define CONFIG_STORAGE STORAGE_ATA
15 15
16#define HAVE_ATA_DMA 16#define HAVE_ATA_DMA
17#define ATA_MAX_UDMA 4 17#define ATA_MAX_UDMA 4
18#define ATA_MAX_MWDMA 2 18#define ATA_MAX_MWDMA 2
19 19
20/* define this if the ATA controller and method of USB access support LBA48 */ 20/* define this if the ATA controller and method of USB access support LBA48 */
21#define HAVE_LBA48 21#define HAVE_LBA48
22 22
23/* define this if you have recording possibility */ 23/* define this if you have recording possibility */
24//#define HAVE_RECORDING 24//#define HAVE_RECORDING
25 25
26/* Define bitmask of input sources - recordable bitmask can be defined 26/* Define bitmask of input sources - recordable bitmask can be defined
27 explicitly if different */ 27 explicitly if different */
28#define INPUT_SRC_CAPS (SRC_CAP_LINEIN) 28#define INPUT_SRC_CAPS (SRC_CAP_LINEIN)
29 29
30/* define the bitmask of hardware sample rates */ 30/* define the bitmask of hardware sample rates */
31#define HW_SAMPR_CAPS (SAMPR_CAP_44 | SAMPR_CAP_22 | SAMPR_CAP_11 \ 31#define HW_SAMPR_CAPS (SAMPR_CAP_44 | SAMPR_CAP_22 | SAMPR_CAP_11 \
32 | SAMPR_CAP_48 | SAMPR_CAP_24 | SAMPR_CAP_12 \ 32 | SAMPR_CAP_48 | SAMPR_CAP_24 | SAMPR_CAP_12 \
33 | SAMPR_CAP_32 | SAMPR_CAP_16 | SAMPR_CAP_8) 33 | SAMPR_CAP_32 | SAMPR_CAP_16 | SAMPR_CAP_8)
34 34
35/* define the bitmask of recording sample rates */ 35/* define the bitmask of recording sample rates */
36#define REC_SAMPR_CAPS (SAMPR_CAP_44 | SAMPR_CAP_22 | SAMPR_CAP_11 \ 36#define REC_SAMPR_CAPS (SAMPR_CAP_44 | SAMPR_CAP_22 | SAMPR_CAP_11 \
37 | SAMPR_CAP_48 | SAMPR_CAP_24 | SAMPR_CAP_12 \ 37 | SAMPR_CAP_48 | SAMPR_CAP_24 | SAMPR_CAP_12 \
38 | SAMPR_CAP_32 | SAMPR_CAP_16 | SAMPR_CAP_8) 38 | SAMPR_CAP_32 | SAMPR_CAP_16 | SAMPR_CAP_8)
39 39
40/* define this if you have a bitmap LCD display */ 40/* define this if you have a bitmap LCD display */
41#define HAVE_LCD_BITMAP 41#define HAVE_LCD_BITMAP
42 42
43/* define this if you can flip your LCD */ 43/* define this if you can flip your LCD */
44//#define HAVE_LCD_FLIP 44//#define HAVE_LCD_FLIP
45 45
46/* define this if you have a colour LCD */ 46/* define this if you have a colour LCD */
47#define HAVE_LCD_COLOR 47#define HAVE_LCD_COLOR
48 48
49/* define this if you want album art for this target */ 49/* define this if you want album art for this target */
50#define HAVE_ALBUMART 50#define HAVE_ALBUMART
51 51
52/* define this to enable bitmap scaling */ 52/* define this to enable bitmap scaling */
53#define HAVE_BMP_SCALING 53#define HAVE_BMP_SCALING
54 54
55/* define this to enable JPEG decoding */ 55/* define this to enable JPEG decoding */
56#define HAVE_JPEG 56#define HAVE_JPEG
57 57
58/* define this if you can invert the colours on your LCD */ 58/* define this if you can invert the colours on your LCD */
59//#define HAVE_LCD_INVERT 59//#define HAVE_LCD_INVERT
60 60
61/* LCD stays visible without backlight - simulator hint */ 61/* LCD stays visible without backlight - simulator hint */
62#define HAVE_TRANSFLECTIVE_LCD 62#define HAVE_TRANSFLECTIVE_LCD
63 63
64/* define this if you have access to the quickscreen */ 64/* define this if you have access to the quickscreen */
65#define HAVE_QUICKSCREEN 65#define HAVE_QUICKSCREEN
66 66
67/* define this if you have access to the pitchscreen */ 67/* define this if you have access to the pitchscreen */
68#define HAVE_PITCHSCREEN 68#define HAVE_PITCHSCREEN
69 69
70/* define this if you would like tagcache to build on this target */ 70/* define this if you would like tagcache to build on this target */
71#define HAVE_TAGCACHE 71#define HAVE_TAGCACHE
72 72
73/* define this if the unit uses a scrollwheel for navigation */ 73/* define this if the unit uses a scrollwheel for navigation */
74#define HAVE_SCROLLWHEEL 74#define HAVE_SCROLLWHEEL
75#define HAVE_WHEEL_ACCELERATION 75#define HAVE_WHEEL_ACCELERATION
76#define WHEEL_ACCEL_START 270 76#define WHEEL_ACCEL_START 270
77#define WHEEL_ACCELERATION 3 77#define WHEEL_ACCELERATION 3
78 78
79/* Define this if you can detect headphones */ 79/* Define this if you can detect headphones */
80#define HAVE_HEADPHONE_DETECTION 80#define HAVE_HEADPHONE_DETECTION
81 81
82/* LCD dimensions */ 82/* LCD dimensions */
83#define LCD_WIDTH 320 83#define LCD_WIDTH 320
84#define LCD_HEIGHT 240 84#define LCD_HEIGHT 240
85#define LCD_DEPTH 16 /* pseudo 262.144 colors */ 85#define LCD_DEPTH 16 /* pseudo 262.144 colors */
86#define LCD_PIXELFORMAT RGB565 /* rgb565 */ 86#define LCD_PIXELFORMAT RGB565 /* rgb565 */
87 87
88/* Define this if the LCD can shut down */ 88/* Define this if the LCD can shut down */
89#define HAVE_LCD_SHUTDOWN 89#define HAVE_LCD_SHUTDOWN
90 90
91/* Define this if your LCD can be enabled/disabled */ 91/* Define this if your LCD can be enabled/disabled */
92#define HAVE_LCD_ENABLE 92#define HAVE_LCD_ENABLE
93 93
94/* Define this if your LCD can be put to sleep. HAVE_LCD_ENABLE 94/* Define this if your LCD can be put to sleep. HAVE_LCD_ENABLE
95 should be defined as well. */ 95 should be defined as well. */
96#ifndef BOOTLOADER 96#ifndef BOOTLOADER
97//TODO: #define HAVE_LCD_SLEEP 97//TODO: #define HAVE_LCD_SLEEP
98//TODO: #define HAVE_LCD_SLEEP_SETTING 98//TODO: #define HAVE_LCD_SLEEP_SETTING
99#endif 99#endif
100 100
101#define CONFIG_KEYPAD IPOD_4G_PAD 101#define CONFIG_KEYPAD IPOD_4G_PAD
102 102
103//#define AB_REPEAT_ENABLE 103//#define AB_REPEAT_ENABLE
104//#define ACTION_WPSAB_SINGLE ACTION_WPS_BROWSE 104//#define ACTION_WPSAB_SINGLE ACTION_WPS_BROWSE
105 105
106/* Define this to enable morse code input */ 106/* Define this to enable morse code input */
107#define HAVE_MORSE_INPUT 107#define HAVE_MORSE_INPUT
108 108
109/* Define this if you do software codec */ 109/* Define this if you do software codec */
110#define CONFIG_CODEC SWCODEC 110#define CONFIG_CODEC SWCODEC
111 111
112/* define this if you have a real-time clock */ 112/* define this if you have a real-time clock */
113#define CONFIG_RTC RTC_NANO2G 113#define CONFIG_RTC RTC_NANO2G
114 114
115/* Define if the device can wake from an RTC alarm */ 115/* Define if the device can wake from an RTC alarm */
116//#define HAVE_RTC_ALARM 116//#define HAVE_RTC_ALARM
117 117
118#define CONFIG_LCD LCD_IPOD6G 118#define CONFIG_LCD LCD_IPOD6G
119 119
120/* Define the type of audio codec */ 120/* Define the type of audio codec */
121#define HAVE_CS42L55 121#define HAVE_CS42L55
122 122
123#define HAVE_PCM_DMA_ADDRESS 123#define HAVE_PCM_DMA_ADDRESS
124 124
125/* Define this for LCD backlight available */ 125/* Define this for LCD backlight available */
126#define HAVE_BACKLIGHT 126#define HAVE_BACKLIGHT
127#define HAVE_BACKLIGHT_BRIGHTNESS 127#define HAVE_BACKLIGHT_BRIGHTNESS
128 128
129/* Define this if you have a software controlled poweroff */ 129/* Define this if you have a software controlled poweroff */
130#define HAVE_SW_POWEROFF 130#define HAVE_SW_POWEROFF
131 131
132/* The number of bytes reserved for loadable codecs */ 132/* The number of bytes reserved for loadable codecs */
133#define CODEC_SIZE 0x100000 133#define CODEC_SIZE 0x100000
134 134
135/* The number of bytes reserved for loadable plugins */ 135/* The number of bytes reserved for loadable plugins */
136#define PLUGIN_BUFFER_SIZE 0x80000 136#define PLUGIN_BUFFER_SIZE 0x80000
137 137
138// TODO: Figure out real values 138// TODO: Figure out real values
139#define BATTERY_CAPACITY_DEFAULT 400 /* default battery capacity */ 139#define BATTERY_CAPACITY_DEFAULT 400 /* default battery capacity */
140#define BATTERY_CAPACITY_MIN 300 /* min. capacity selectable */ 140#define BATTERY_CAPACITY_MIN 300 /* min. capacity selectable */
141#define BATTERY_CAPACITY_MAX 500 /* max. capacity selectable */ 141#define BATTERY_CAPACITY_MAX 500 /* max. capacity selectable */
142#define BATTERY_CAPACITY_INC 10 /* capacity increment */ 142#define BATTERY_CAPACITY_INC 10 /* capacity increment */
143#define BATTERY_TYPES_COUNT 1 /* only one type */ 143#define BATTERY_TYPES_COUNT 1 /* only one type */
144 144
145/* Hardware controlled charging with monitoring */ 145/* Hardware controlled charging with monitoring */
146#define CONFIG_CHARGING CHARGING_MONITOR 146#define CONFIG_CHARGING CHARGING_MONITOR
147 147
148/* define current usage levels */ 148/* define current usage levels */
149//TODO: #define CURRENT_NORMAL 21 /* playback @48MHz clock, backlight off */ 149//TODO: #define CURRENT_NORMAL 21 /* playback @48MHz clock, backlight off */
150//TODO: #define CURRENT_BACKLIGHT 23 /* maximum brightness */ 150//TODO: #define CURRENT_BACKLIGHT 23 /* maximum brightness */
151 151
152/* define this if the unit can be powered or charged via USB */ 152/* define this if the unit can be powered or charged via USB */
153#define HAVE_USB_POWER 153#define HAVE_USB_POWER
154 154
155/* Define this if your LCD can set contrast */ 155/* Define this if your LCD can set contrast */
156//#define HAVE_LCD_CONTRAST 156//#define HAVE_LCD_CONTRAST
157 157
158/* Define Apple remote tuner */ 158/* Define Apple remote tuner */
159//#define CONFIG_TUNER IPOD_REMOTE_TUNER 159//#define CONFIG_TUNER IPOD_REMOTE_TUNER
160//#define HAVE_RDS_CAP 160//#define HAVE_RDS_CAP
161 161
162/* The exact type of CPU */ 162/* The exact type of CPU */
163#define CONFIG_CPU S5L8702 163#define CONFIG_CPU S5L8702
164 164
165/* I2C interface */ 165/* I2C interface */
166#define CONFIG_I2C I2C_S5L8702 166#define CONFIG_I2C I2C_S5L8702
167 167
168#define HAVE_USB_CHARGING_ENABLE 168#define HAVE_USB_CHARGING_ENABLE
169 169
170/* The size of the flash ROM */ 170/* The size of the flash ROM */
171#define FLASH_SIZE 0x1000000 171#define FLASH_SIZE 0x1000000
172 172
173/* Define this to the CPU frequency */ 173/* Define this to the CPU frequency */
174#define CPU_FREQ 216000000 174#define CPU_FREQ 216000000
175 175
176/* define this if the hardware can be powered off while charging */ 176/* define this if the hardware can be powered off while charging */
177#define HAVE_POWEROFF_WHILE_CHARGING 177#define HAVE_POWEROFF_WHILE_CHARGING
178 178
179/* Offset ( in the firmware file's header ) to the file CRC */ 179/* Offset ( in the firmware file's header ) to the file CRC */
180#define FIRMWARE_OFFSET_FILE_CRC 0 180#define FIRMWARE_OFFSET_FILE_CRC 0
181 181
182/* Offset ( in the firmware file's header ) to the real data */ 182/* Offset ( in the firmware file's header ) to the real data */
183#define FIRMWARE_OFFSET_FILE_DATA 8 183#define FIRMWARE_OFFSET_FILE_DATA 8
184 184
185/* Define this if you can read an absolute wheel position */ 185/* Define this if you can read an absolute wheel position */
186#define HAVE_WHEEL_POSITION 186#define HAVE_WHEEL_POSITION
187 187
188//#define ATA_HAVE_BBT 188#define ATA_HAVE_BBT
189//#define ATA_BBT_PAGES 3072 189#define ATA_BBT_PAGES 3520
190 190
191#define SECTOR_SIZE 4096 191#define SECTOR_SIZE 4096
192 192
193#define STORAGE_NEEDS_ALIGN 193#define STORAGE_NEEDS_ALIGN
194 194
195/* define this if the device has larger sectors when accessed via USB */ 195/* define this if the device has larger sectors when accessed via USB */
196/* (only relevant in disk.c, fat.c now always supports large virtual sectors) */ 196/* (only relevant in disk.c, fat.c now always supports large virtual sectors) */
197//#define MAX_LOG_SECTOR_SIZE 4096 197//#define MAX_LOG_SECTOR_SIZE 4096
198 198
199/* define this if the hard drive uses large physical sectors (ATA-7 feature) */ 199/* define this if the hard drive uses large physical sectors (ATA-7 feature) */
200/* and doesn't handle them in the drive firmware */ 200/* and doesn't handle them in the drive firmware */
201//#define MAX_PHYS_SECTOR_SIZE 4096 201//#define MAX_PHYS_SECTOR_SIZE 4096
202 202
203/* Define this if you have adjustable CPU frequency */ 203/* Define this if you have adjustable CPU frequency */
204//#define HAVE_ADJUSTABLE_CPU_FREQ 204//#define HAVE_ADJUSTABLE_CPU_FREQ
205 205
206#define BOOTFILE_EXT "ipod" 206#define BOOTFILE_EXT "ipod"
207#define BOOTFILE "rockbox." BOOTFILE_EXT 207#define BOOTFILE "rockbox." BOOTFILE_EXT
208#define BOOTDIR "/.rockbox" 208#define BOOTDIR "/.rockbox"
209 209
210/* Alternative bootfile extension - this is for encrypted images */ 210/* Alternative bootfile extension - this is for encrypted images */
211#define BOOTFILE_EXT2 "ipodx" 211#define BOOTFILE_EXT2 "ipodx"
212 212
213/* Define this for FM radio input available */ 213/* Define this for FM radio input available */
214#define HAVE_FMRADIO_IN 214#define HAVE_FMRADIO_IN
215 215
216/** Port-specific settings **/ 216/** Port-specific settings **/
217 217
218#if 0 218#if 0
219/* Main LCD contrast range and defaults */ 219/* Main LCD contrast range and defaults */
220#define MIN_CONTRAST_SETTING 1 220#define MIN_CONTRAST_SETTING 1
221#define MAX_CONTRAST_SETTING 30 221#define MAX_CONTRAST_SETTING 30
222#define DEFAULT_CONTRAST_SETTING 19 /* Match boot contrast */ 222#define DEFAULT_CONTRAST_SETTING 19 /* Match boot contrast */
223#endif 223#endif
224 224
225/* Main LCD backlight brightness range and defaults */ 225/* Main LCD backlight brightness range and defaults */
226#define MIN_BRIGHTNESS_SETTING 1 226#define MIN_BRIGHTNESS_SETTING 1
227#define MAX_BRIGHTNESS_SETTING 0x3f 227#define MAX_BRIGHTNESS_SETTING 0x3f
228#define DEFAULT_BRIGHTNESS_SETTING 0x20 228#define DEFAULT_BRIGHTNESS_SETTING 0x20
229 229
230/* USB defines */ 230/* USB defines */
231#define HAVE_USBSTACK 231#define HAVE_USBSTACK
232//#define HAVE_USB_HID_MOUSE - broken? 232//#define HAVE_USB_HID_MOUSE - broken?
233#define CONFIG_USBOTG USBOTG_S3C6400X 233#define CONFIG_USBOTG USBOTG_S3C6400X
234#define USB_VENDOR_ID 0x05AC 234#define USB_VENDOR_ID 0x05AC
235//TODO: This is still the Nano2G product ID. Figure out the real one. 235#define USB_PRODUCT_ID 0x1261
236#define USB_PRODUCT_ID 0x1260 236#define USB_NUM_ENDPOINTS 5
237#define USB_NUM_ENDPOINTS 5 237#define USE_ROCKBOX_USB
238#define USE_ROCKBOX_USB 238#define USB_DEVBSS_ATTR __attribute__((aligned(16)))
239#define USB_DEVBSS_ATTR __attribute__((aligned(16))) 239
240 240/* Define this if you can switch on/off the accessory power supply */
241/* Define this if you can switch on/off the accessory power supply */ 241#define HAVE_ACCESSORY_SUPPLY
242#define HAVE_ACCESSORY_SUPPLY 242//#define IPOD_ACCESSORY_PROTOCOL
243//#define IPOD_ACCESSORY_PROTOCOL 243//#define HAVE_SERIAL
244//#define HAVE_SERIAL 244
245 245/* Define this, if you can switch on/off the lineout */
246/* Define this, if you can switch on/off the lineout */ 246#define HAVE_LINEOUT_POWEROFF
247#define HAVE_LINEOUT_POWEROFF 247
248 248#define USB_WRITE_BUFFER_SIZE (1024*64)
249#define USB_WRITE_BUFFER_SIZE (1024*64) 249
250 250/* Define this if a programmable hotkey is mapped */
251/* Define this if a programmable hotkey is mapped */ 251#define HAVE_HOTKEY
252#define HAVE_HOTKEY