Don't set CONFIG_CPU for __PCTOOL__, to avoid wrong asm
[maemo-rb.git] / firmware / export / config / ipod6g.h
blob1941074d57133cb758aab7e1d11cc9ad65e6ef4c
1 /*
2 * This config file is for iPod 6G / Classic
3 */
5 #define IPOD_ARCH 1
7 /* For Rolo and boot loader */
8 #define MODEL_NUMBER 71
10 #define MODEL_NAME "Apple iPod Classic/6G"
12 /* define this if you use an ATA controller */
13 #define CONFIG_STORAGE STORAGE_ATA
15 #define HAVE_ATA_DMA
16 #define ATA_MAX_UDMA 4
17 #define ATA_MAX_MWDMA 2
19 /* define this if the ATA controller and method of USB access support LBA48 */
20 #define HAVE_LBA48
22 /* define this if you have recording possibility */
23 //#define HAVE_RECORDING
25 /* Define bitmask of input sources - recordable bitmask can be defined
26 explicitly if different */
27 #define INPUT_SRC_CAPS (SRC_CAP_LINEIN)
29 /* define the bitmask of hardware sample rates */
30 #define HW_SAMPR_CAPS (SAMPR_CAP_44 | SAMPR_CAP_22 | SAMPR_CAP_11 \
31 | SAMPR_CAP_48 | SAMPR_CAP_24 | SAMPR_CAP_12 \
32 | SAMPR_CAP_32 | SAMPR_CAP_16 | SAMPR_CAP_8)
34 /* define the bitmask of recording sample rates */
35 #define REC_SAMPR_CAPS (SAMPR_CAP_44 | SAMPR_CAP_22 | SAMPR_CAP_11 \
36 | SAMPR_CAP_48 | SAMPR_CAP_24 | SAMPR_CAP_12 \
37 | SAMPR_CAP_32 | SAMPR_CAP_16 | SAMPR_CAP_8)
39 /* define this if you have a bitmap LCD display */
40 #define HAVE_LCD_BITMAP
42 /* define this if you can flip your LCD */
43 //#define HAVE_LCD_FLIP
45 /* define this if you have a colour LCD */
46 #define HAVE_LCD_COLOR
48 /* define this if you want album art for this target */
49 #define HAVE_ALBUMART
51 /* define this to enable bitmap scaling */
52 #define HAVE_BMP_SCALING
54 /* define this to enable JPEG decoding */
55 #define HAVE_JPEG
57 /* define this if you can invert the colours on your LCD */
58 //#define HAVE_LCD_INVERT
60 /* LCD stays visible without backlight - simulator hint */
61 #define HAVE_TRANSFLECTIVE_LCD
63 /* define this if you have access to the quickscreen */
64 #define HAVE_QUICKSCREEN
66 /* define this if you have access to the pitchscreen */
67 #define HAVE_PITCHSCREEN
69 /* define this if you would like tagcache to build on this target */
70 #define HAVE_TAGCACHE
72 /* define this if the unit uses a scrollwheel for navigation */
73 #define HAVE_SCROLLWHEEL
74 #define HAVE_WHEEL_ACCELERATION
75 #define WHEEL_ACCEL_START 270
76 #define WHEEL_ACCELERATION 3
78 /* Define this if you can detect headphones */
79 #define HAVE_HEADPHONE_DETECTION
81 /* LCD dimensions */
82 #define LCD_WIDTH 320
83 #define LCD_HEIGHT 240
84 #define LCD_DEPTH 16 /* pseudo 262.144 colors */
85 #define LCD_PIXELFORMAT RGB565 /* rgb565 */
87 /* Define this if the LCD can shut down */
88 #define HAVE_LCD_SHUTDOWN
90 /* Define this if your LCD can be enabled/disabled */
91 #define HAVE_LCD_ENABLE
93 /* Define this if your LCD can be put to sleep. HAVE_LCD_ENABLE
94 should be defined as well. */
95 #ifndef BOOTLOADER
96 #define HAVE_LCD_SLEEP
97 #define HAVE_LCD_SLEEP_SETTING
98 #endif
100 #define CONFIG_KEYPAD IPOD_4G_PAD
102 /* Define this to have CPU boosted while scrolling in the UI */
103 #define HAVE_GUI_BOOST
105 //#define AB_REPEAT_ENABLE
106 //#define ACTION_WPSAB_SINGLE ACTION_WPS_BROWSE
108 /* Define this to enable morse code input */
109 #define HAVE_MORSE_INPUT
111 /* Define this if you do software codec */
112 #define CONFIG_CODEC SWCODEC
114 /* define this if you have a real-time clock */
115 #define CONFIG_RTC RTC_NANO2G
117 /* Define if the device can wake from an RTC alarm */
118 //#define HAVE_RTC_ALARM
120 #define CONFIG_LCD LCD_IPOD6G
122 /* Define the type of audio codec */
123 #define HAVE_CS42L55
125 #define HAVE_PCM_DMA_ADDRESS
127 /* Define this for LCD backlight available */
128 #define HAVE_BACKLIGHT
129 #define HAVE_BACKLIGHT_BRIGHTNESS
131 /* Define this if you have a software controlled poweroff */
132 #define HAVE_SW_POWEROFF
134 /* The number of bytes reserved for loadable codecs */
135 #define CODEC_SIZE 0x100000
137 /* The number of bytes reserved for loadable plugins */
138 #define PLUGIN_BUFFER_SIZE 0x80000
140 /* 6g has a standard battery of 550mAh, except for the thick 6g (2007 160gb) which has a standard battery of 850mAh */
141 #define BATTERY_CAPACITY_DEFAULT 550 /* default battery capacity */
142 #define BATTERY_CAPACITY_MIN 300 /* min. capacity selectable */
143 #define BATTERY_CAPACITY_MAX 1000 /* max. capacity selectable */
144 #define BATTERY_CAPACITY_INC 10 /* capacity increment */
145 #define BATTERY_TYPES_COUNT 1 /* only one type */
147 #define CONFIG_BATTERY_MEASURE VOLTAGE_MEASURE
149 /* Hardware controlled charging with monitoring */
150 #define CONFIG_CHARGING CHARGING_MONITOR
152 /* define current usage levels */
153 //TODO: #define CURRENT_NORMAL 21 /* playback @48MHz clock, backlight off */
154 //TODO: #define CURRENT_BACKLIGHT 23 /* maximum brightness */
156 /* define this if the unit can be powered or charged via USB */
157 #define HAVE_USB_POWER
159 /* Define this if your LCD can set contrast */
160 //#define HAVE_LCD_CONTRAST
162 /* Define Apple remote tuner */
163 //#define CONFIG_TUNER IPOD_REMOTE_TUNER
164 //#define HAVE_RDS_CAP
166 /* The exact type of CPU */
167 #define CONFIG_CPU S5L8702
169 /* I2C interface */
170 #define CONFIG_I2C I2C_S5L8702
172 #define HAVE_USB_CHARGING_ENABLE
174 /* The size of the flash ROM */
175 #define FLASH_SIZE 0x1000000
177 /* Define this to the CPU frequency */
178 #define CPU_FREQ 216000000
180 /* define this if the hardware can be powered off while charging */
181 #define HAVE_POWEROFF_WHILE_CHARGING
183 /* Offset ( in the firmware file's header ) to the file CRC */
184 #define FIRMWARE_OFFSET_FILE_CRC 0
186 /* Offset ( in the firmware file's header ) to the real data */
187 #define FIRMWARE_OFFSET_FILE_DATA 8
189 /* Define this if you can read an absolute wheel position */
190 #define HAVE_WHEEL_POSITION
192 #define ATA_HAVE_BBT
193 #define ATA_BBT_PAGES 4096
195 #define SECTOR_SIZE 4096
197 #define STORAGE_NEEDS_ALIGN
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
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
207 #define HAVE_HARDWARE_CLICK
209 /* Define this if you have adjustable CPU frequency */
210 //#define HAVE_ADJUSTABLE_CPU_FREQ
212 #define BOOTFILE_EXT "ipod"
213 #define BOOTFILE "rockbox." BOOTFILE_EXT
214 #define BOOTDIR "/.rockbox"
216 /* Alternative bootfile extension - this is for encrypted images */
217 #define BOOTFILE_EXT2 "ipodx"
219 /* Define this for FM radio input available */
220 #define HAVE_FMRADIO_IN
222 /** Port-specific settings **/
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
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
236 /* USB defines */
237 #define HAVE_USBSTACK
238 #define HAVE_USB_HID_MOUSE
239 #define CONFIG_USBOTG USBOTG_S3C6400X
240 #define USB_VENDOR_ID 0x05AC
241 #define USB_PRODUCT_ID 0x1261
242 #define USB_NUM_ENDPOINTS 5
243 #define USE_ROCKBOX_USB
244 #define USB_DEVBSS_ATTR __attribute__((aligned(16)))
246 /* Define this if you can switch on/off the accessory power supply */
247 #define HAVE_ACCESSORY_SUPPLY
248 //#define IPOD_ACCESSORY_PROTOCOL
249 //#define HAVE_SERIAL
251 /* Define this, if you can switch on/off the lineout */
252 #define HAVE_LINEOUT_POWEROFF
254 #define USB_WRITE_BUFFER_SIZE (1024*64)
256 /* Define this if a programmable hotkey is mapped */
257 #define HAVE_HOTKEY