Add a patch file in libwmapro to make it easier to add the library and the decoder...
[kugel-rb.git] / firmware / export / config / ipod3g.h
blobee59a1bc7673ca87316d8cf9a35440145ceb6899
1 /*
2 * This config file is for the Apple iPod 3g
3 */
5 #define TARGET_TREE /* this target is using the target tree system */
7 #define IPOD_ARCH 1
9 #define MODEL_NAME "Apple iPod 3g"
11 /* For Rolo and boot loader */
12 #define MODEL_NUMBER 7
14 /* define this if you use an ATA controller */
15 #define CONFIG_STORAGE STORAGE_ATA
17 /*define this if the ATA controller and method of USB access support LBA48 */
18 #define HAVE_LBA48
20 /* define this if you have recording possibility */
21 /*#define HAVE_RECORDING*/
23 /* define the bitmask of hardware sample rates */
24 #define HW_SAMPR_CAPS (SAMPR_CAP_96 | SAMPR_CAP_88 | SAMPR_CAP_48 | \
25 SAMPR_CAP_44 | SAMPR_CAP_32 | SAMPR_CAP_8)
27 /* define the bitmask of recording sample rates
28 #define REC_SAMPR_CAPS (SAMPR_CAP_96 | SAMPR_CAP_88 | SAMPR_CAP_48 | \
29 SAMPR_CAP_44 | SAMPR_CAP_32 | SAMPR_CAP_8) */
31 /* define this if you have a bitmap LCD display */
32 #define HAVE_LCD_BITMAP
34 /* define this if you want album art for this target */
35 #define HAVE_ALBUMART
37 /* define this to enable bitmap scaling */
38 #define HAVE_BMP_SCALING
40 /* define this to enable JPEG decoding */
41 #define HAVE_JPEG
43 /* define this if you can invert the colours on your LCD */
44 #define HAVE_LCD_INVERT
46 /* define this if the LCD needs to be shutdown */
47 #define HAVE_LCD_SHUTDOWN
49 /* define this if you have access to the quickscreen */
50 #define HAVE_QUICKSCREEN
51 /* define this if you have access to the pitchscreen */
52 #define HAVE_PITCHSCREEN
54 /* define this if you would like tagcache to build on this target */
55 #define HAVE_TAGCACHE
57 /* LCD dimensions */
58 #define LCD_WIDTH 160
59 #define LCD_HEIGHT 128
60 #define LCD_DEPTH 2 /* 4 colours - 2bpp */
62 #define LCD_PIXELFORMAT HORIZONTAL_PACKING
64 /* Display colours, for screenshots and sim (0xRRGGBB) */
65 #define LCD_DARKCOLOR 0x000000
66 #define LCD_BRIGHTCOLOR 0x5a915a
67 #define LCD_BL_DARKCOLOR 0x000000
68 #define LCD_BL_BRIGHTCOLOR 0xadd8e6
70 /* define this if you can flip your LCD */
71 #define HAVE_LCD_FLIP
73 #define HAVE_LCD_CONTRAST
75 /* LCD contrast */
76 #define MIN_CONTRAST_SETTING 5
77 #define MAX_CONTRAST_SETTING 63
78 #define DEFAULT_CONTRAST_SETTING 40 /* Match boot contrast */
80 #define CONFIG_KEYPAD IPOD_3G_PAD
82 /* define this if the unit uses a scrollwheel for navigation */
83 #define HAVE_SCROLLWHEEL
84 /* define to activate advanced wheel acceleration code */
85 #define HAVE_WHEEL_ACCELERATION
86 /* define from which rotation speed [degree/sec] on the acceleration starts */
87 #define WHEEL_ACCEL_START 360
88 /* define type of acceleration (1 = ^2, 2 = ^3, 3 = ^4) */
89 #define WHEEL_ACCELERATION 1
91 /* Define this to enable morse code input */
92 #define HAVE_MORSE_INPUT
94 /* Define this if you do software codec */
95 #define CONFIG_CODEC SWCODEC
97 /* define this if you have a real-time clock */
98 #define CONFIG_RTC RTC_PCF50605
100 /* Define if the device can wake from an RTC alarm */
101 #define HAVE_RTC_ALARM
103 /* Define this if you can switch on/off the accessory power supply */
104 #define HAVE_ACCESSORY_SUPPLY
106 /* Define this if you have a software controlled poweroff */
107 #define HAVE_SW_POWEROFF
109 /* The number of bytes reserved for loadable codecs */
110 #define CODEC_SIZE 0x100000
112 /* The number of bytes reserved for loadable plugins */
113 #define PLUGIN_BUFFER_SIZE 0x80000
115 /* Define this if you have the WM8731L audio codec */
116 #define HAVE_WM8731
118 /* WM8731 has no tone controls, so we use the software ones */
119 #define HAVE_SW_TONE_CONTROLS
121 /* define this if you have a disk storage, i.e. something
122 that needs spinups and can cause skips when shaked */
123 #define HAVE_DISK_STORAGE
125 /* Define this for LCD backlight available */
126 #define HAVE_BACKLIGHT
128 /* Define this if you can detect headphones */
129 #define HAVE_HEADPHONE_DETECTION
131 #define BATTERY_CAPACITY_DEFAULT 630 /* default battery capacity */
132 #define BATTERY_CAPACITY_MIN 630 /* min. capacity selectable */
133 #define BATTERY_CAPACITY_MAX 1200 /* max. capacity selectable */
134 #define BATTERY_CAPACITY_INC 10 /* capacity increment */
135 #define BATTERY_TYPES_COUNT 1 /* only one type */
137 /* Hardware controlled charging? FIXME */
138 #define CONFIG_CHARGING CHARGING_SIMPLE
140 /* define current usage levels */
141 #define CURRENT_NORMAL 275 /* ~4h (1100mAh) */
142 #define CURRENT_BACKLIGHT 20 /* FIXME: this needs adjusting */
143 #if defined(HAVE_RECORDING)
144 #define CURRENT_RECORD 35 /* FIXME: this needs adjusting */
145 #endif
147 /* Define this if you have a PortalPlayer PP5002 */
148 #define CONFIG_CPU PP5002
150 /* We're able to shut off power to the HDD */
151 #define HAVE_ATA_POWER_OFF
153 /* Define this if you want to use the PP5002 i2c interface */
154 #define CONFIG_I2C I2C_PP5002
156 /* define this if the hardware can be powered off while charging */
157 //#define HAVE_POWEROFF_WHILE_CHARGING
159 /* The start address index for ROM builds */
160 #define ROM_START 0x00000000
162 /* The size of the flash ROM */
163 #define FLASH_SIZE 0x100000
165 /* Define this to the CPU frequency */
166 #define CPU_FREQ 11289600
168 #define CONFIG_LCD LCD_IPOD2BPP
170 /* Offset ( in the firmware file's header ) to the file length */
171 #define FIRMWARE_OFFSET_FILE_LENGTH 0
173 /* Offset ( in the firmware file's header ) to the file CRC */
174 #define FIRMWARE_OFFSET_FILE_CRC 0
176 /* Offset ( in the firmware file's header ) to the real data */
177 #define FIRMWARE_OFFSET_FILE_DATA 8
179 #define USB_HANDLED_BY_OF
180 /* actually both firewire and USB, USB isn't handled yet */
182 /* Define this if you have adjustable CPU frequency */
183 #define HAVE_ADJUSTABLE_CPU_FREQ
185 #define BOOTFILE_EXT "ipod"
186 #define BOOTFILE "rockbox." BOOTFILE_EXT
187 #define BOOTDIR "/.rockbox"
189 #define ICODE_ATTR_TREMOR_NOT_MDCT
191 #define IRAM_LCDFRAMEBUFFER IBSS_ATTR /* put the lcd frame buffer in IRAM */
193 /* Define this if a programmable hotkey is mapped */
194 #define HAVE_HOTKEY