Michael Sparmann | 6613112 | 2011-11-06 12:06:20 +0000 | [diff] [blame] | 1 | /* |
| 2 | * This config file is for iPod 6G / Classic |
| 3 | */ |
Michael Sparmann | 6613112 | 2011-11-06 12:06:20 +0000 | [diff] [blame] | 4 | |
| 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ñoz | 291b233 | 2014-12-06 19:00:34 +0100 | [diff] [blame] | 23 | #define HAVE_RECORDING |
| 24 | //#define HAVE_AGC |
| 25 | //#define HAVE_HISTOGRAM |
Michael Sparmann | 6613112 | 2011-11-06 12:06:20 +0000 | [diff] [blame] | 26 | |
| 27 | /* Define bitmask of input sources - recordable bitmask can be defined |
| 28 | explicitly if different */ |
Cástor Muñoz | 291b233 | 2014-12-06 19:00:34 +0100 | [diff] [blame] | 29 | #define INPUT_SRC_CAPS (SRC_CAP_MIC | SRC_CAP_LINEIN) |
Michael Sparmann | 6613112 | 2011-11-06 12:06:20 +0000 | [diff] [blame] | 30 | |
| 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 Sparmann | 6613112 | 2011-11-06 12:06:20 +0000 | [diff] [blame] | 62 | /* define this if you have access to the quickscreen */ |
| 63 | #define HAVE_QUICKSCREEN |
| 64 | |
Michael Sparmann | 6613112 | 2011-11-06 12:06:20 +0000 | [diff] [blame] | 65 | /* 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 Martitz | 6252423 | 2014-01-23 08:23:34 +0100 | [diff] [blame] | 80 | /* sqrt(320^2 + 240^2) / 2.5 = 160.0 */ |
| 81 | #define LCD_DPI 160 |
Michael Sparmann | 6613112 | 2011-11-06 12:06:20 +0000 | [diff] [blame] | 82 | #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ñoz | 663667a | 2012-02-25 13:46:43 +0100 | [diff] [blame] | 94 | #define HAVE_LCD_SLEEP |
| 95 | #define HAVE_LCD_SLEEP_SETTING |
Michael Sparmann | 6613112 | 2011-11-06 12:06:20 +0000 | [diff] [blame] | 96 | #endif |
| 97 | |
| 98 | #define CONFIG_KEYPAD IPOD_4G_PAD |
| 99 | |
Andree Buschmann | f1ee740 | 2011-11-11 19:40:32 +0000 | [diff] [blame] | 100 | /* Define this to have CPU boosted while scrolling in the UI */ |
| 101 | #define HAVE_GUI_BOOST |
| 102 | |
Cástor Muñoz | d57e651 | 2015-10-17 03:33:31 +0200 | [diff] [blame] | 103 | #define AB_REPEAT_ENABLE |
| 104 | #define ACTION_WPSAB_SINGLE ACTION_WPS_BROWSE |
Michael Sparmann | 6613112 | 2011-11-06 12:06:20 +0000 | [diff] [blame] | 105 | |
Hayden Pearce | 6803d7b | 2012-12-30 09:18:25 +1300 | [diff] [blame] | 106 | /* 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 Sparmann | 6613112 | 2011-11-06 12:06:20 +0000 | [diff] [blame] | 110 | /* 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 Barca | 580303b | 2012-02-13 18:49:38 +0100 | [diff] [blame] | 142 | /* 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 Sparmann | 6613112 | 2011-11-06 12:06:20 +0000 | [diff] [blame] | 144 | #define BATTERY_CAPACITY_MIN 300 /* min. capacity selectable */ |
Albert Barca | 580303b | 2012-02-13 18:49:38 +0100 | [diff] [blame] | 145 | #define BATTERY_CAPACITY_MAX 1000 /* max. capacity selectable */ |
Michael Sparmann | 6613112 | 2011-11-06 12:06:20 +0000 | [diff] [blame] | 146 | #define BATTERY_CAPACITY_INC 10 /* capacity increment */ |
| 147 | #define BATTERY_TYPES_COUNT 1 /* only one type */ |
| 148 | |
Thomas Martitz | c1bd9b0 | 2012-01-03 23:44:38 +0000 | [diff] [blame] | 149 | #define CONFIG_BATTERY_MEASURE VOLTAGE_MEASURE |
| 150 | |
Michael Sparmann | 6613112 | 2011-11-06 12:06:20 +0000 | [diff] [blame] | 151 | /* Hardware controlled charging with monitoring */ |
| 152 | #define CONFIG_CHARGING CHARGING_MONITOR |
| 153 | |
| 154 | /* define current usage levels */ |
Michael Giacomelli | 5a14958 | 2012-11-25 22:32:50 +0100 | [diff] [blame] | 155 | #define CURRENT_NORMAL 18 /* playback @48MHz clock, backlight off */ |
| 156 | #define CURRENT_BACKLIGHT 23 /* maximum brightness */ |
Michael Sparmann | 6613112 | 2011-11-06 12:06:20 +0000 | [diff] [blame] | 157 | |
| 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 Sevakis | fc9695e | 2017-01-30 09:52:05 -0500 | [diff] [blame] | 167 | //#define CONFIG_RDS RDS_CFG_PUSH |
Michael Sparmann | 6613112 | 2011-11-06 12:06:20 +0000 | [diff] [blame] | 168 | |
| 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 Sparmann | 6613112 | 2011-11-06 12:06:20 +0000 | [diff] [blame] | 195 | #define SECTOR_SIZE 4096 |
| 196 | |
Cástor Muñoz | d20185a | 2014-12-09 19:38:47 +0100 | [diff] [blame] | 197 | #define HAVE_ATA_SMART |
| 198 | |
Michael Sparmann | 6613112 | 2011-11-06 12:06:20 +0000 | [diff] [blame] | 199 | /* 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ñoz | e29619b | 2012-02-11 23:41:54 +0100 | [diff] [blame] | 207 | #define HAVE_HARDWARE_CLICK |
| 208 | |
Michael Sparmann | 6613112 | 2011-11-06 12:06:20 +0000 | [diff] [blame] | 209 | /* Define this if you have adjustable CPU frequency */ |
Cástor Muñoz | a85780b | 2012-03-21 00:02:25 +0100 | [diff] [blame] | 210 | #define HAVE_ADJUSTABLE_CPU_FREQ |
Michael Sparmann | 6613112 | 2011-11-06 12:06:20 +0000 | [diff] [blame] | 211 | |
| 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ñoz | 3c5aa75 | 2016-07-31 03:40:32 +0200 | [diff] [blame] | 237 | #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 Sparmann | 6613112 | 2011-11-06 12:06:20 +0000 | [diff] [blame] | 242 | #define HAVE_USBSTACK |
Michael Sparmann | d46afc6 | 2012-01-01 21:28:03 +0000 | [diff] [blame] | 243 | #define HAVE_USB_HID_MOUSE |
Michael Sparmann | 6613112 | 2011-11-06 12:06:20 +0000 | [diff] [blame] | 244 | #define USB_VENDOR_ID 0x05AC |
| 245 | #define USB_PRODUCT_ID 0x1261 |
Cástor Muñoz | 31d9084 | 2016-02-14 11:47:09 +0100 | [diff] [blame] | 246 | #define USB_DEVBSS_ATTR __attribute__((aligned(32))) |
Cástor Muñoz | 882921e | 2016-02-05 02:02:02 +0100 | [diff] [blame] | 247 | #define HAVE_BOOTLOADER_USB_MODE |
| 248 | #ifdef BOOTLOADER |
| 249 | #define USBPOWER_BTN_IGNORE (~0) |
| 250 | #endif |
Michael Sparmann | 6613112 | 2011-11-06 12:06:20 +0000 | [diff] [blame] | 251 | |
Cástor Muñoz | 00a3658 | 2016-05-15 03:22:31 +0200 | [diff] [blame] | 252 | #define USB_READ_BUFFER_SIZE (1024*24) |
| 253 | |
Cástor Muñoz | 882921e | 2016-02-05 02:02:02 +0100 | [diff] [blame] | 254 | /* 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ñoz | efd047a | 2014-12-06 23:13:44 +0100 | [diff] [blame] | 262 | #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ñoz | 882921e | 2016-02-05 02:02:02 +0100 | [diff] [blame] | 267 | #endif |
Cástor Muñoz | efd047a | 2014-12-06 23:13:44 +0100 | [diff] [blame] | 268 | |
Michael Sparmann | 6613112 | 2011-11-06 12:06:20 +0000 | [diff] [blame] | 269 | /* Define this if you can switch on/off the accessory power supply */ |
| 270 | #define HAVE_ACCESSORY_SUPPLY |
Michael Sparmann | 6613112 | 2011-11-06 12:06:20 +0000 | [diff] [blame] | 271 | |
| 272 | /* Define this, if you can switch on/off the lineout */ |
| 273 | #define HAVE_LINEOUT_POWEROFF |
| 274 | |
Michael Sparmann | 6613112 | 2011-11-06 12:06:20 +0000 | [diff] [blame] | 275 | /* Define this if a programmable hotkey is mapped */ |
| 276 | #define HAVE_HOTKEY |