blob: b4be39d935600912d4c094c68a3089ef38aa8282 [file] [log] [blame]
Michael Sparmann66131122011-11-06 12:06:20 +00001/*
2 * This config file is for iPod 6G / Classic
3 */
Michael Sparmann66131122011-11-06 12:06:20 +00004
5#define IPOD_ARCH 1
6
7/* For Rolo and boot loader */
8#define MODEL_NUMBER 71
9
10#define MODEL_NAME "Apple iPod Classic/6G"
11
12/* define this if you use an ATA controller */
13#define CONFIG_STORAGE STORAGE_ATA
14
15#define HAVE_ATA_DMA
16#define ATA_MAX_UDMA 4
17#define ATA_MAX_MWDMA 2
18
19/* define this if the ATA controller and method of USB access support LBA48 */
20#define HAVE_LBA48
21
22/* define this if you have recording possibility */
Cástor Muñoz291b2332014-12-06 19:00:34 +010023#define HAVE_RECORDING
24//#define HAVE_AGC
25//#define HAVE_HISTOGRAM
Michael Sparmann66131122011-11-06 12:06:20 +000026
27/* Define bitmask of input sources - recordable bitmask can be defined
28 explicitly if different */
Cástor Muñoz291b2332014-12-06 19:00:34 +010029#define INPUT_SRC_CAPS (SRC_CAP_MIC | SRC_CAP_LINEIN)
Michael Sparmann66131122011-11-06 12:06:20 +000030
31/* define the bitmask of hardware sample rates */
32#define HW_SAMPR_CAPS (SAMPR_CAP_44 | SAMPR_CAP_22 | SAMPR_CAP_11 \
33 | SAMPR_CAP_48 | SAMPR_CAP_24 | SAMPR_CAP_12 \
34 | SAMPR_CAP_32 | SAMPR_CAP_16 | SAMPR_CAP_8)
35
36/* define the bitmask of recording sample rates */
37#define REC_SAMPR_CAPS (SAMPR_CAP_44 | SAMPR_CAP_22 | SAMPR_CAP_11 \
38 | SAMPR_CAP_48 | SAMPR_CAP_24 | SAMPR_CAP_12 \
39 | SAMPR_CAP_32 | SAMPR_CAP_16 | SAMPR_CAP_8)
40
41/* define this if you have a bitmap LCD display */
42#define HAVE_LCD_BITMAP
43
44/* define this if you can flip your LCD */
45//#define HAVE_LCD_FLIP
46
47/* define this if you have a colour LCD */
48#define HAVE_LCD_COLOR
49
50/* define this if you want album art for this target */
51#define HAVE_ALBUMART
52
53/* define this to enable bitmap scaling */
54#define HAVE_BMP_SCALING
55
56/* define this to enable JPEG decoding */
57#define HAVE_JPEG
58
59/* define this if you can invert the colours on your LCD */
60//#define HAVE_LCD_INVERT
61
Michael Sparmann66131122011-11-06 12:06:20 +000062/* define this if you have access to the quickscreen */
63#define HAVE_QUICKSCREEN
64
Michael Sparmann66131122011-11-06 12:06:20 +000065/* define this if you would like tagcache to build on this target */
66#define HAVE_TAGCACHE
67
68/* define this if the unit uses a scrollwheel for navigation */
69#define HAVE_SCROLLWHEEL
70#define HAVE_WHEEL_ACCELERATION
71#define WHEEL_ACCEL_START 270
72#define WHEEL_ACCELERATION 3
73
74/* Define this if you can detect headphones */
75#define HAVE_HEADPHONE_DETECTION
76
77/* LCD dimensions */
78#define LCD_WIDTH 320
79#define LCD_HEIGHT 240
Thomas Martitz62524232014-01-23 08:23:34 +010080/* sqrt(320^2 + 240^2) / 2.5 = 160.0 */
81#define LCD_DPI 160
Michael Sparmann66131122011-11-06 12:06:20 +000082#define LCD_DEPTH 16 /* pseudo 262.144 colors */
83#define LCD_PIXELFORMAT RGB565 /* rgb565 */
84
85/* Define this if the LCD can shut down */
86#define HAVE_LCD_SHUTDOWN
87
88/* Define this if your LCD can be enabled/disabled */
89#define HAVE_LCD_ENABLE
90
91/* Define this if your LCD can be put to sleep. HAVE_LCD_ENABLE
92 should be defined as well. */
93#ifndef BOOTLOADER
Cástor Muñoz663667a2012-02-25 13:46:43 +010094#define HAVE_LCD_SLEEP
95#define HAVE_LCD_SLEEP_SETTING
Michael Sparmann66131122011-11-06 12:06:20 +000096#endif
97
98#define CONFIG_KEYPAD IPOD_4G_PAD
99
Andree Buschmannf1ee7402011-11-11 19:40:32 +0000100/* Define this to have CPU boosted while scrolling in the UI */
101#define HAVE_GUI_BOOST
102
Cástor Muñozd57e6512015-10-17 03:33:31 +0200103#define AB_REPEAT_ENABLE
104#define ACTION_WPSAB_SINGLE ACTION_WPS_BROWSE
Michael Sparmann66131122011-11-06 12:06:20 +0000105
Hayden Pearce6803d7b2012-12-30 09:18:25 +1300106/* define this if you have a disk storage, i.e. something
107 that needs spinups and can cause skips when shaked */
108#define HAVE_DISK_STORAGE
109
Michael Sparmann66131122011-11-06 12:06:20 +0000110/* Define this to enable morse code input */
111#define HAVE_MORSE_INPUT
112
113/* Define this if you do software codec */
114#define CONFIG_CODEC SWCODEC
115
116/* define this if you have a real-time clock */
117#define CONFIG_RTC RTC_NANO2G
118
119/* Define if the device can wake from an RTC alarm */
120//#define HAVE_RTC_ALARM
121
122#define CONFIG_LCD LCD_IPOD6G
123
124/* Define the type of audio codec */
125#define HAVE_CS42L55
126
127#define HAVE_PCM_DMA_ADDRESS
128
129/* Define this for LCD backlight available */
130#define HAVE_BACKLIGHT
131#define HAVE_BACKLIGHT_BRIGHTNESS
132
133/* Define this if you have a software controlled poweroff */
134#define HAVE_SW_POWEROFF
135
136/* The number of bytes reserved for loadable codecs */
137#define CODEC_SIZE 0x100000
138
139/* The number of bytes reserved for loadable plugins */
140#define PLUGIN_BUFFER_SIZE 0x80000
141
Albert Barca580303b2012-02-13 18:49:38 +0100142/* 6g has a standard battery of 550mAh, except for the thick 6g (2007 160gb) which has a standard battery of 850mAh */
143#define BATTERY_CAPACITY_DEFAULT 550 /* default battery capacity */
Michael Sparmann66131122011-11-06 12:06:20 +0000144#define BATTERY_CAPACITY_MIN 300 /* min. capacity selectable */
Albert Barca580303b2012-02-13 18:49:38 +0100145#define BATTERY_CAPACITY_MAX 1000 /* max. capacity selectable */
Michael Sparmann66131122011-11-06 12:06:20 +0000146#define BATTERY_CAPACITY_INC 10 /* capacity increment */
147#define BATTERY_TYPES_COUNT 1 /* only one type */
148
Thomas Martitzc1bd9b02012-01-03 23:44:38 +0000149#define CONFIG_BATTERY_MEASURE VOLTAGE_MEASURE
150
Michael Sparmann66131122011-11-06 12:06:20 +0000151/* Hardware controlled charging with monitoring */
152#define CONFIG_CHARGING CHARGING_MONITOR
153
154/* define current usage levels */
Michael Giacomelli5a149582012-11-25 22:32:50 +0100155#define CURRENT_NORMAL 18 /* playback @48MHz clock, backlight off */
156#define CURRENT_BACKLIGHT 23 /* maximum brightness */
Michael Sparmann66131122011-11-06 12:06:20 +0000157
158/* define this if the unit can be powered or charged via USB */
159#define HAVE_USB_POWER
160
161/* Define this if your LCD can set contrast */
162//#define HAVE_LCD_CONTRAST
163
164/* Define Apple remote tuner */
165//#define CONFIG_TUNER IPOD_REMOTE_TUNER
166//#define HAVE_RDS_CAP
Michael Sevakisfc9695e2017-01-30 09:52:05 -0500167//#define CONFIG_RDS RDS_CFG_PUSH
Michael Sparmann66131122011-11-06 12:06:20 +0000168
169/* The exact type of CPU */
170#define CONFIG_CPU S5L8702
171
172/* I2C interface */
173#define CONFIG_I2C I2C_S5L8702
174
175#define HAVE_USB_CHARGING_ENABLE
176
177/* The size of the flash ROM */
178#define FLASH_SIZE 0x1000000
179
180/* Define this to the CPU frequency */
181#define CPU_FREQ 216000000
182
183/* define this if the hardware can be powered off while charging */
184#define HAVE_POWEROFF_WHILE_CHARGING
185
186/* Offset ( in the firmware file's header ) to the file CRC */
187#define FIRMWARE_OFFSET_FILE_CRC 0
188
189/* Offset ( in the firmware file's header ) to the real data */
190#define FIRMWARE_OFFSET_FILE_DATA 8
191
192/* Define this if you can read an absolute wheel position */
193#define HAVE_WHEEL_POSITION
194
Michael Sparmann66131122011-11-06 12:06:20 +0000195#define SECTOR_SIZE 4096
196
Cástor Muñozd20185a2014-12-09 19:38:47 +0100197#define HAVE_ATA_SMART
198
Michael Sparmann66131122011-11-06 12:06:20 +0000199/* define this if the device has larger sectors when accessed via USB */
200/* (only relevant in disk.c, fat.c now always supports large virtual sectors) */
201//#define MAX_LOG_SECTOR_SIZE 4096
202
203/* define this if the hard drive uses large physical sectors (ATA-7 feature) */
204/* and doesn't handle them in the drive firmware */
205//#define MAX_PHYS_SECTOR_SIZE 4096
206
Cástor Muñoze29619b2012-02-11 23:41:54 +0100207#define HAVE_HARDWARE_CLICK
208
Michael Sparmann66131122011-11-06 12:06:20 +0000209/* Define this if you have adjustable CPU frequency */
Cástor Muñoza85780b2012-03-21 00:02:25 +0100210#define HAVE_ADJUSTABLE_CPU_FREQ
Michael Sparmann66131122011-11-06 12:06:20 +0000211
212#define BOOTFILE_EXT "ipod"
213#define BOOTFILE "rockbox." BOOTFILE_EXT
214#define BOOTDIR "/.rockbox"
215
216/* Alternative bootfile extension - this is for encrypted images */
217#define BOOTFILE_EXT2 "ipodx"
218
219/* Define this for FM radio input available */
220#define HAVE_FMRADIO_IN
221
222/** Port-specific settings **/
223
224#if 0
225/* Main LCD contrast range and defaults */
226#define MIN_CONTRAST_SETTING 1
227#define MAX_CONTRAST_SETTING 30
228#define DEFAULT_CONTRAST_SETTING 19 /* Match boot contrast */
229#endif
230
231/* Main LCD backlight brightness range and defaults */
232#define MIN_BRIGHTNESS_SETTING 1
233#define MAX_BRIGHTNESS_SETTING 0x3f
234#define DEFAULT_BRIGHTNESS_SETTING 0x20
235
236/* USB defines */
Cástor Muñoz3c5aa752016-07-31 03:40:32 +0200237#define CONFIG_USBOTG USBOTG_DESIGNWARE
238#define USB_DW_CLOCK 0
239#define USB_DW_TURNAROUND 5
240/* logf() over USB serial (http://www.rockbox.org/wiki/PortalPlayerUsb) */
241//#define USB_ENABLE_SERIAL
Michael Sparmann66131122011-11-06 12:06:20 +0000242#define HAVE_USBSTACK
Michael Sparmannd46afc62012-01-01 21:28:03 +0000243#define HAVE_USB_HID_MOUSE
Michael Sparmann66131122011-11-06 12:06:20 +0000244#define USB_VENDOR_ID 0x05AC
245#define USB_PRODUCT_ID 0x1261
Cástor Muñoz31d90842016-02-14 11:47:09 +0100246#define USB_DEVBSS_ATTR __attribute__((aligned(32)))
Cástor Muñoz882921e2016-02-05 02:02:02 +0100247#define HAVE_BOOTLOADER_USB_MODE
248#ifdef BOOTLOADER
249#define USBPOWER_BTN_IGNORE (~0)
250#endif
Michael Sparmann66131122011-11-06 12:06:20 +0000251
Cástor Muñoz00a36582016-05-15 03:22:31 +0200252#define USB_READ_BUFFER_SIZE (1024*24)
253
Cástor Muñoz882921e2016-02-05 02:02:02 +0100254/* Serial */
255#ifdef BOOTLOADER
256#if 0 /* Enable/disable LOGF_SERIAL for bootloader */
257#define HAVE_SERIAL
258#define ROCKBOX_HAS_LOGF
259#define LOGF_SERIAL
260#endif
261#else /* !BOOTLOADER */
Cástor Muñozefd047a2014-12-06 23:13:44 +0100262#define HAVE_SERIAL
263/* Disable iAP when LOGF_SERIAL is enabled to avoid conflicts */
264#ifndef LOGF_SERIAL
265#define IPOD_ACCESSORY_PROTOCOL
266#endif
Cástor Muñoz882921e2016-02-05 02:02:02 +0100267#endif
Cástor Muñozefd047a2014-12-06 23:13:44 +0100268
Michael Sparmann66131122011-11-06 12:06:20 +0000269/* Define this if you can switch on/off the accessory power supply */
270#define HAVE_ACCESSORY_SUPPLY
Michael Sparmann66131122011-11-06 12:06:20 +0000271
272/* Define this, if you can switch on/off the lineout */
273#define HAVE_LINEOUT_POWEROFF
274
Michael Sparmann66131122011-11-06 12:06:20 +0000275/* Define this if a programmable hotkey is mapped */
276#define HAVE_HOTKEY