TARGET_TREE is not needed anymore
[maemo-rb.git] / firmware / export / config / ipodmini1g.h
blob815b6d22423e2507396142eec8d83f9a16d2e3a7
1 /*
2 * This config file is for the Apple iPod Mini (1st Gen)
3 */
5 #define IPOD_ARCH 1
7 #define MODEL_NAME "Apple iPod Mini 1g"
9 /* For Rolo and boot loader */
10 #define MODEL_NUMBER 9
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 138
57 #define LCD_HEIGHT 110
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 HAVE_LCD_CONTRAST
70 /* LCD contrast */
71 #define MIN_CONTRAST_SETTING 5
72 #define MAX_CONTRAST_SETTING 63
73 #define DEFAULT_CONTRAST_SETTING 40 /* Match boot contrast */
75 /* define this if you can flip your LCD */
76 #define HAVE_LCD_FLIP
78 #define CONFIG_KEYPAD IPOD_4G_PAD
80 /* Define this to have CPU boosted while scrolling in the UI */
81 #define HAVE_GUI_BOOST
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 WM8721 audio codec */
116 #define HAVE_WM8731
118 /* WM8721 has no tone controls, so we use the software ones */
119 #define HAVE_SW_TONE_CONTROLS
121 #define AB_REPEAT_ENABLE
122 #define ACTION_WPSAB_SINGLE ACTION_WPS_BROWSE
124 /* define this if you have a disk storage, i.e. something
125 that needs spinups and can cause skips when shaked */
126 #define HAVE_DISK_STORAGE
128 /* Define this for LCD backlight available */
129 #define HAVE_BACKLIGHT
131 /* We can fade the backlight by using PWM */
132 #define CONFIG_BACKLIGHT_FADING BACKLIGHT_FADING_PWM
134 /* Define this if you can detect headphones */
135 #define HAVE_HEADPHONE_DETECTION
137 #define BATTERY_CAPACITY_DEFAULT 400 /* default battery capacity */
138 #define BATTERY_CAPACITY_MIN 400 /* min. capacity selectable */
139 #define BATTERY_CAPACITY_MAX 1500 /* max. capacity selectable */
140 #define BATTERY_CAPACITY_INC 10 /* capacity increment */
141 #define BATTERY_TYPES_COUNT 1 /* only one type */
143 #define CONFIG_BATTERY_MEASURE VOLTAGE_MEASURE
145 /* define current usage levels */
146 #define CURRENT_NORMAL 50 /* PP5024 uses ~40mA, so add some for disk */
147 #define CURRENT_BACKLIGHT 20 /* FIXME: This needs to be measured */
148 #define CURRENT_RECORD 110 /* FIXME: Needs to be measured */
150 /* Hardware controlled charging? */
151 #define CONFIG_CHARGING CHARGING_MONITOR
153 /* define this if the unit can be powered or charged via USB */
154 #define HAVE_USB_POWER
156 /* define this if the unit can have USB charging disabled by user -
158 * if USB/MAIN power is discernable and hardware doesn't compel charging */
159 #define HAVE_USB_CHARGING_ENABLE
161 /* Define this if you have a PortalPlayer PP5020 */
162 #define CONFIG_CPU PP5020
164 /* Define this if you want to use the PP5020 i2c interface */
165 #define CONFIG_I2C I2C_PP5020
167 /* We're able to shut off power to the HDD */
168 #define HAVE_ATA_POWER_OFF
170 /* define this if the hardware can be powered off while charging */
171 //#define HAVE_POWEROFF_WHILE_CHARGING
173 /* The start address index for ROM builds */
174 #define ROM_START 0x00000000
176 /* The size of the flash ROM */
177 #define FLASH_SIZE 0x100000
179 /* Define this to the CPU frequency */
180 #define CPU_FREQ 11289600
182 #define CONFIG_LCD LCD_IPODMINI
184 /* Offset ( in the firmware file's header ) to the file length */
185 #define FIRMWARE_OFFSET_FILE_LENGTH 0
187 /* Offset ( in the firmware file's header ) to the file CRC */
188 #define FIRMWARE_OFFSET_FILE_CRC 0
190 /* Offset ( in the firmware file's header ) to the real data */
191 #define FIRMWARE_OFFSET_FILE_DATA 8
193 /* USB On-the-go */
194 #define CONFIG_USBOTG USBOTG_ARC
196 /* enable these for the experimental usb stack */
197 #define HAVE_USBSTACK
198 #define USE_ROCKBOX_USB
199 #define USB_VENDOR_ID 0x05ac
200 #define USB_PRODUCT_ID 0x1205
201 #define HAVE_USB_HID_MOUSE
203 /* Define this if you have adjustable CPU frequency */
204 #define HAVE_ADJUSTABLE_CPU_FREQ
206 #define HAVE_HARDWARE_CLICK
208 #define BOOTFILE_EXT "ipod"
209 #define BOOTFILE "rockbox." BOOTFILE_EXT
210 #define BOOTDIR "/.rockbox"
212 #define ICODE_ATTR_TREMOR_NOT_MDCT
214 #define IRAM_LCDFRAMEBUFFER IBSS_ATTR /* put the lcd frame buffer in IRAM */
217 /* DMA is used only for reading on PP502x because although reads are ~8x faster
218 * writes appear to be ~25% slower.
220 /* Switched off due to reported instabilities. #define HAVE_ATA_DMA */
222 /* Define this if a programmable hotkey is mapped */
223 #define HAVE_HOTKEY