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