as3514: mute headphones at the lowest volume
[kugel-rb.git] / firmware / export / config / ipodmini2g.h
blobb9b4f485554bba92fe63aebee3238329b7dd1090
1 /*
2 * This config file is for the Apple iPod Mini 2nd Gen
3 */
4 #define TARGET_TREE /* this target is using the target tree system */
6 #define IPOD_ARCH 1
8 #define MODEL_NAME "Apple iPod Mini 2g"
10 /* For Rolo and boot loader */
11 #define MODEL_NUMBER 11
13 /* define this if you use an ATA controller */
14 #define CONFIG_STORAGE STORAGE_ATA
16 /*define this if the ATA controller and method of USB access support LBA48 */
17 #define HAVE_LBA48
19 /* define this if you have recording possibility */
20 /*#define HAVE_RECORDING*/
22 /* define the bitmask of hardware sample rates */
23 #define HW_SAMPR_CAPS (SAMPR_CAP_96 | SAMPR_CAP_88 | SAMPR_CAP_48 | \
24 SAMPR_CAP_44 | SAMPR_CAP_32 | SAMPR_CAP_8)
26 /* define the bitmask of recording sample rates
27 #define REC_SAMPR_CAPS (SAMPR_CAP_96 | SAMPR_CAP_88 | SAMPR_CAP_48 | \
28 SAMPR_CAP_44 | SAMPR_CAP_32 | SAMPR_CAP_8) */
30 /* define this if you have a bitmap LCD display */
31 #define HAVE_LCD_BITMAP
33 /* define this if you want album art for this target */
34 #define HAVE_ALBUMART
36 /* define this to enable bitmap scaling */
37 #define HAVE_BMP_SCALING
39 /* define this to enable JPEG decoding */
40 #define HAVE_JPEG
42 /* define this if you can invert the colours on your LCD */
43 #define HAVE_LCD_INVERT
45 /* define this if the LCD needs to be shutdown */
46 #define HAVE_LCD_SHUTDOWN
48 /* define this if you have access to the quickscreen */
49 #define HAVE_QUICKSCREEN
50 /* define this if you have access to the pitchscreen */
51 #define HAVE_PITCHSCREEN
53 /* define this if you would like tagcache to build on this target */
54 #define HAVE_TAGCACHE
56 /* LCD dimensions */
57 #define LCD_WIDTH 138
58 #define LCD_HEIGHT 110
59 #define LCD_DEPTH 2 /* 4 colours - 2bpp */
61 #define LCD_PIXELFORMAT HORIZONTAL_PACKING
63 /* Display colours, for screenshots and sim (0xRRGGBB) */
64 #define LCD_DARKCOLOR 0x000000
65 #define LCD_BRIGHTCOLOR 0x648764
66 #define LCD_BL_DARKCOLOR 0x000000
67 #define LCD_BL_BRIGHTCOLOR 0xdfd8ff
69 #define HAVE_LCD_CONTRAST
71 /* LCD contrast */
72 #define MIN_CONTRAST_SETTING 5
73 #define MAX_CONTRAST_SETTING 63
74 #define DEFAULT_CONTRAST_SETTING 40 /* Match boot contrast */
76 /* define this if you can flip your LCD */
77 #define HAVE_LCD_FLIP
79 #define CONFIG_KEYPAD IPOD_4G_PAD
81 /* Define this to enable morse code input */
82 #define HAVE_MORSE_INPUT
84 /* Define this if you do software codec */
85 #define CONFIG_CODEC SWCODEC
87 /* define this if you have a real-time clock */
88 #define CONFIG_RTC RTC_PCF50605
90 /* Define if the device can wake from an RTC alarm */
91 #define HAVE_RTC_ALARM
93 /* Define this if you can switch on/off the accessory power supply */
94 #define HAVE_ACCESSORY_SUPPLY
96 /* Define this if you have a software controlled poweroff */
97 #define HAVE_SW_POWEROFF
99 /* The number of bytes reserved for loadable codecs */
100 #define CODEC_SIZE 0x100000
102 /* The number of bytes reserved for loadable plugins */
103 #define PLUGIN_BUFFER_SIZE 0x80000
105 /* Define this if you have the WM8711 audio codec */
106 #define HAVE_WM8711
108 /* WM8721 has no tone controls, so we use the software ones */
109 #define HAVE_SW_TONE_CONTROLS
111 #define AB_REPEAT_ENABLE 1
112 #define ACTION_WPSAB_SINGLE ACTION_WPS_BROWSE
114 /* define this if you have a disk storage, i.e. something
115 that needs spinups and can cause skips when shaked */
116 #define HAVE_DISK_STORAGE
118 /* Define this for LCD backlight available */
119 #define HAVE_BACKLIGHT
121 /* We can fade the backlight by using PWM */
122 #define CONFIG_BACKLIGHT_FADING BACKLIGHT_FADING_PWM
124 /* define this if the unit uses a scrollwheel for navigation */
125 #define HAVE_SCROLLWHEEL
126 /* define to activate advanced wheel acceleration code */
127 #define HAVE_WHEEL_ACCELERATION
128 /* define from which rotation speed [degree/sec] on the acceleration starts */
129 #define WHEEL_ACCEL_START 270
130 /* define type of acceleration (1 = ^2, 2 = ^3, 3 = ^4) */
131 #define WHEEL_ACCELERATION 3
133 /* Define this if you can detect headphones */
134 #define HAVE_HEADPHONE_DETECTION
136 #define BATTERY_CAPACITY_DEFAULT 400 /* default battery capacity */
137 #define BATTERY_CAPACITY_MIN 400 /* min. capacity selectable */
138 #define BATTERY_CAPACITY_MAX 1000 /* max. capacity selectable */
139 #define BATTERY_CAPACITY_INC 50 /* capacity increment */
140 #define BATTERY_TYPES_COUNT 1 /* only one type */
142 /* define current usage levels */
143 #define CURRENT_NORMAL 50 /* PP5024 uses ~40mA, so add some for disk */
144 #define CURRENT_BACKLIGHT 20 /* FIXME: This needs to be measured */
145 #define CURRENT_RECORD 110 /* FIXME: Needs to be measured */
147 /* Hardware controlled charging? */
148 #define CONFIG_CHARGING CHARGING_MONITOR
150 /* define this if the unit can be powered or charged via USB */
151 #define HAVE_USB_POWER
153 /* Define this if you have a PortalPlayer PP5022 */
154 #define CONFIG_CPU PP5022
156 /* Define this if you want to use the PP5020 i2c interface */
157 #define CONFIG_I2C I2C_PP5020
159 /* We're able to shut off power to the HDD */
160 #define HAVE_ATA_POWER_OFF
162 /* define this if the hardware can be powered off while charging */
163 //#define HAVE_POWEROFF_WHILE_CHARGING
165 /* The start address index for ROM builds */
166 #define ROM_START 0x00000000
168 /* The size of the flash ROM */
169 #define FLASH_SIZE 0x100000
171 /* Define this to the CPU frequency */
172 #define CPU_FREQ 11289600
174 #define CONFIG_LCD LCD_IPODMINI
176 /* Offset ( in the firmware file's header ) to the file length */
177 #define FIRMWARE_OFFSET_FILE_LENGTH 0
179 /* Offset ( in the firmware file's header ) to the file CRC */
180 #define FIRMWARE_OFFSET_FILE_CRC 0
182 /* Offset ( in the firmware file's header ) to the real data */
183 #define FIRMWARE_OFFSET_FILE_DATA 8
185 /* USB On-the-go */
186 #define CONFIG_USBOTG USBOTG_ARC
188 /* enable these for the experimental usb stack */
189 #define HAVE_USBSTACK
190 #define USE_ROCKBOX_USB
191 #define USB_VENDOR_ID 0x05ac
192 #define USB_PRODUCT_ID 0x1205
193 #define HAVE_USB_HID_MOUSE
195 /* Define this if you have adjustable CPU frequency */
196 #define HAVE_ADJUSTABLE_CPU_FREQ
198 /* Define this if you can read an absolute wheel position */
199 #define HAVE_WHEEL_POSITION
201 #define BOOTFILE_EXT "ipod"
202 #define BOOTFILE "rockbox." BOOTFILE_EXT
203 #define BOOTDIR "/.rockbox"
205 #define ICODE_ATTR_TREMOR_NOT_MDCT
207 #define IRAM_LCDFRAMEBUFFER IBSS_ATTR /* put the lcd frame buffer in IRAM */
210 /* DMA is used only for reading on PP502x because although reads are ~8x faster
211 * writes appear to be ~25% slower.
213 #define HAVE_ATA_DMA
215 /* Define this if a programmable hotkey is mapped */
216 #define HAVE_HOTKEY