Don't set CONFIG_CPU for __PCTOOL__, to avoid wrong asm
[maemo-rb.git] / firmware / export / config / ipod1g2g.h
blob8dccb842ec96b6e35fbafb57c20ca28a5d384ee7
1 /*
2 * This config file is for the Apple iPod 1g and 2g
3 */
5 #define IPOD_ARCH 1
7 #define MODEL_NAME "Apple iPod 1g/2g"
9 /* For Rolo and boot loader */
10 #define MODEL_NUMBER 19
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 0x648764
65 #define LCD_BL_DARKCOLOR 0x000000
66 #define LCD_BL_BRIGHTCOLOR 0xdfd8ff
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 30 /* Match boot contrast */
78 #define CONFIG_KEYPAD IPOD_1G2G_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 software controlled poweroff */
99 #define HAVE_SW_POWEROFF
101 /* The number of bytes reserved for loadable codecs */
102 #define CODEC_SIZE 0x100000
104 /* The number of bytes reserved for loadable plugins */
105 #define PLUGIN_BUFFER_SIZE 0x80000
107 /* Define this if you have the WM8731L audio codec */
108 #define HAVE_WM8721
110 /* define this if you have a disk storage, i.e. something
111 that needs spinups and can cause skips when shaked */
112 #define HAVE_DISK_STORAGE
114 /* WM8721 has no tone controls, so we use the software ones */
115 #define HAVE_SW_TONE_CONTROLS
117 /* Define this for LCD backlight available */
118 #define HAVE_BACKLIGHT
120 /* Define this if the backlight unverts LCD appearance */
121 #define HAVE_BACKLIGHT_INVERSION
123 /* Define this if you can detect headphones */
124 #define HAVE_HEADPHONE_DETECTION
126 #define BATTERY_CAPACITY_DEFAULT 1200 /* default battery capacity */
127 #define BATTERY_CAPACITY_MIN 1200 /* min. capacity selectable */
128 #define BATTERY_CAPACITY_MAX 1900 /* max. capacity selectable */
129 #define BATTERY_CAPACITY_INC 50 /* capacity increment */
130 #define BATTERY_TYPES_COUNT 1 /* only one type */
132 #define CONFIG_BATTERY_MEASURE VOLTAGE_MEASURE
134 /* Hardware controlled charging? FIXME */
135 //#define CONFIG_CHARGING CHARGING_SIMPLE
137 /* FIXME: Don't shutdown on low battery until we have proper suspend. */
138 #define NO_LOW_BATTERY_SHUTDOWN
140 /* Define this if you have a PortalPlayer PP5002 */
141 #define CONFIG_CPU PP5002
143 /* We're able to shut off power to the HDD */
144 #define HAVE_ATA_POWER_OFF
146 /* Define this if you want to use the PP5002 i2c interface */
147 #define CONFIG_I2C I2C_PP5002
149 /* define this if the hardware can be powered off while charging */
150 //#define HAVE_POWEROFF_WHILE_CHARGING
152 /* The start address index for ROM builds */
153 #define ROM_START 0x00000000
155 /* The size of the flash ROM */
156 #define FLASH_SIZE 0x100000
158 /* Define this to the CPU frequency */
159 #define CPU_FREQ 11289600
161 #define CONFIG_LCD LCD_IPOD2BPP
163 /* Offset ( in the firmware file's header ) to the file length */
164 #define FIRMWARE_OFFSET_FILE_LENGTH 0
166 /* Offset ( in the firmware file's header ) to the file CRC */
167 #define FIRMWARE_OFFSET_FILE_CRC 0
169 /* Offset ( in the firmware file's header ) to the real data */
170 #define FIRMWARE_OFFSET_FILE_DATA 8
172 #define USB_HANDLED_BY_OF
173 /* actually firewire only, but handled like USB */
175 /* Define this if you have adjustable CPU frequency */
176 #define HAVE_ADJUSTABLE_CPU_FREQ
178 #define BOOTFILE_EXT "ipod"
179 #define BOOTFILE "rockbox." BOOTFILE_EXT
180 #define BOOTDIR "/.rockbox"
182 #define ICODE_ATTR_TREMOR_NOT_MDCT
184 #define IRAM_LCDFRAMEBUFFER IBSS_ATTR /* put the lcd frame buffer in IRAM */
186 /* Define this if a programmable hotkey is mapped */
187 #define HAVE_HOTKEY