Improve insert of playlists. Decode M3U files using current code page and strip any...
[kugel-rb.git] / firmware / export / config-ipodmini2g.h
blob0f82d099b95f4ab308f37d85895e639cf372cc1b
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 /* For Rolo and boot loader */
9 #define MODEL_NUMBER 11
11 /* define this if you have recording possibility */
12 /*#define HAVE_RECORDING*/
14 /* define this if you have a bitmap LCD display */
15 #define HAVE_LCD_BITMAP
17 /* define this if you want album art for this target */
18 #define HAVE_ALBUMART
20 /* define this if you can invert the colours on your LCD */
21 #define HAVE_LCD_INVERT
23 /* define this if the LCD needs to be shutdown */
24 #define HAVE_LCD_SHUTDOWN
26 /* define this if you have access to the quickscreen */
27 #define HAVE_QUICKSCREEN
28 /* define this if you have access to the pitchscreen */
29 #define HAVE_PITCHSCREEN
31 /* define this if you would like tagcache to build on this target */
32 #define HAVE_TAGCACHE
34 /* LCD dimensions */
35 #define LCD_WIDTH 138
36 #define LCD_HEIGHT 110
37 #define LCD_DEPTH 2 /* 4 colours - 2bpp */
39 #define LCD_PIXELFORMAT HORIZONTAL_PACKING
41 /* LCD contrast */
42 #define MIN_CONTRAST_SETTING 5
43 #define MAX_CONTRAST_SETTING 63
44 #define DEFAULT_CONTRAST_SETTING 40 /* Match boot contrast */
46 /* define this if you can flip your LCD */
47 #define HAVE_LCD_FLIP
49 #define CONFIG_KEYPAD IPOD_4G_PAD
51 /* Define this if you do software codec */
52 #define CONFIG_CODEC SWCODEC
54 /* define this if you have a real-time clock */
55 #define CONFIG_RTC RTC_PCF50605
57 /* Define if the device can wake from an RTC alarm */
58 #define HAVE_RTC_ALARM
60 /* Define this if you have a software controlled poweroff */
61 #define HAVE_SW_POWEROFF
63 /* The number of bytes reserved for loadable codecs */
64 #define CODEC_SIZE 0x80000
66 /* The number of bytes reserved for loadable plugins */
67 #define PLUGIN_BUFFER_SIZE 0x80000
69 /* Define this if you have the WM8721 audio codec */
70 #define HAVE_WM8721 /* actually WM8731 but no recording */
72 /* WM8721 has no tone controls, so we use the software ones */
73 #define HAVE_SW_TONE_CONTROLS
75 #define AB_REPEAT_ENABLE 1
76 #define ACTION_WPSAB_SINGLE ACTION_WPS_BROWSE
78 /* Define this for LCD backlight available */
79 #define HAVE_BACKLIGHT
81 /* We can fade the backlight by using PWM */
82 #define HAVE_BACKLIGHT_PWM_FADING
84 /* Define this if you can detect headphones */
85 #define HAVE_HEADPHONE_DETECTION
87 #define BATTERY_CAPACITY_DEFAULT 400 /* default battery capacity */
88 #define BATTERY_CAPACITY_MIN 400 /* min. capacity selectable */
89 #define BATTERY_CAPACITY_MAX 800 /* max. capacity selectable */
90 #define BATTERY_CAPACITY_INC 50 /* capacity increment */
91 #define BATTERY_TYPES_COUNT 1 /* only one type */
93 /* Hardware controlled charging? FIXME */
94 //#define CONFIG_CHARGING CHARGING_SIMPLE
96 /* define this if the unit can be powered or charged via USB */
97 #define HAVE_USB_POWER
99 #ifndef SIMULATOR
101 /* Define this if you have a PortalPlayer PP5022 */
102 #define CONFIG_CPU PP5022
104 /* Define this if you want to use the PP5020 i2c interface */
105 #define CONFIG_I2C I2C_PP5020
107 /* We're able to shut off power to the HDD */
108 #define HAVE_ATA_POWER_OFF
110 /* define this if the hardware can be powered off while charging */
111 //#define HAVE_POWEROFF_WHILE_CHARGING
113 /* The start address index for ROM builds */
114 #define ROM_START 0x00000000
116 /* The size of the flash ROM */
117 #define FLASH_SIZE 0x100000
119 /* Define this to the CPU frequency */
120 #define CPU_FREQ 11289600
122 #define CONFIG_LCD LCD_IPODMINI
124 /* Offset ( in the firmware file's header ) to the file length */
125 #define FIRMWARE_OFFSET_FILE_LENGTH 0
127 /* Offset ( in the firmware file's header ) to the file CRC */
128 #define FIRMWARE_OFFSET_FILE_CRC 0
130 /* Offset ( in the firmware file's header ) to the real data */
131 #define FIRMWARE_OFFSET_FILE_DATA 8
133 #define USB_IPODSTYLE
135 /* USB On-the-go */
136 #define CONFIG_USBOTG USBOTG_ARC
138 /* enable these for the experimental usb stack
139 #define HAVE_USBSTACK
140 #define USBSTACK_CAPS CONTROLLER_DEVICE
143 /* Virtual LED (icon) */
144 #define CONFIG_LED LED_VIRTUAL
146 /* Define this if you have adjustable CPU frequency */
147 #define HAVE_ADJUSTABLE_CPU_FREQ
149 /* Define this if you can read an absolute wheel position */
150 #define HAVE_WHEEL_POSITION
152 #define BOOTFILE_EXT "ipod"
153 #define BOOTFILE "rockbox." BOOTFILE_EXT
154 #define BOOTDIR "/.rockbox"
156 #define ICODE_ATTR_TREMOR_NOT_MDCT
158 #endif