2 * This config file is for the Apple iPod Mini (1st Gen)
4 #define TARGET_TREE /* this target is using the target tree system */
8 /* For Rolo and boot loader */
9 #define MODEL_NUMBER 9 /* TODO: change to 9 */
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 can invert the colours on your LCD */
18 #define HAVE_LCD_INVERT
20 /* define this if you have access to the quickscreen */
21 #define HAVE_QUICKSCREEN
22 /* define this if you have access to the pitchscreen */
23 #define HAVE_PITCHSCREEN
25 /* define this if you would like tagcache to build on this target */
30 #define LCD_HEIGHT 110
31 #define LCD_DEPTH 2 /* 4 colours - 2bpp */
33 #define LCD_PIXELFORMAT HORIZONTAL_PACKING
36 #define MIN_CONTRAST_SETTING 5
37 #define MAX_CONTRAST_SETTING 63
38 #define DEFAULT_CONTRAST_SETTING 40 /* Match boot contrast */
40 /* define this if you can flip your LCD */
43 #define CONFIG_KEYPAD IPOD_4G_PAD
45 /* Define this if you do software codec */
46 #define CONFIG_CODEC SWCODEC
48 /* define this if you have a real-time clock */
49 #define CONFIG_RTC RTC_PCF50605
51 /* Define this if you have a software controlled poweroff */
52 #define HAVE_SW_POWEROFF
54 /* The number of bytes reserved for loadable codecs */
55 #define CODEC_SIZE 0x80000
57 /* The number of bytes reserved for loadable plugins */
58 #define PLUGIN_BUFFER_SIZE 0x80000
60 /* Define this if you have the WM8721 audio codec */
61 #define HAVE_WM8721 /* actually WM8731 but no recording */
63 /* WM8721 has no tone controls, so we use the software ones */
64 #define HAVE_SW_TONE_CONTROLS
66 #define AB_REPEAT_ENABLE 1
67 #define ACTION_WPSAB_SINGLE ACTION_WPS_BROWSE
69 /* Define this for LCD backlight available */
70 #define CONFIG_BACKLIGHT BL_IPODMINI /* port controlled */
72 #define BATTERY_CAPACITY_DEFAULT 400 /* default battery capacity */
76 /* Define this if you have a PortalPlayer PP5020 */
77 #define CONFIG_CPU PP5020
79 /* Define this if you want to use the PP5020 i2c interface */
80 #define CONFIG_I2C I2C_PP5020
82 /* Type of mobile power */
83 #define CONFIG_BATTERY BATT_LIPOL1300
84 #define BATTERY_CAPACITY_MIN 400 /* min. capacity selectable */
85 #define BATTERY_CAPACITY_MAX 800 /* max. capacity selectable */
86 #define BATTERY_CAPACITY_INC 10 /* capacity increment */
87 #define BATTERY_TYPES_COUNT 1 /* only one type */
88 #define BATTERY_SCALE_FACTOR 5865
90 /* Hardware controlled charging? FIXME */
91 //#define CONFIG_CHARGING CHARGING_SIMPLE
93 /* define this if the hardware can be powered off while charging */
94 //#define HAVE_POWEROFF_WHILE_CHARGING
96 /* The start address index for ROM builds */
97 #define ROM_START 0x00000000
99 /* The size of the flash ROM */
100 #define FLASH_SIZE 0x100000
102 /* Define this to the CPU frequency */
103 #define CPU_FREQ 11289600
105 #define CONFIG_LCD LCD_IPODMINI
107 /* Offset ( in the firmware file's header ) to the file length */
108 #define FIRMWARE_OFFSET_FILE_LENGTH 0
110 /* Offset ( in the firmware file's header ) to the file CRC */
111 #define FIRMWARE_OFFSET_FILE_CRC 0
113 /* Offset ( in the firmware file's header ) to the real data */
114 #define FIRMWARE_OFFSET_FILE_DATA 8
116 #define USB_IPODSTYLE
119 #define CONFIG_USBOTG USBOTG_ARC
121 /* define this if the unit can be powered or charged via USB */
122 #define HAVE_USB_POWER
124 /* Virtual LED (icon) */
125 #define CONFIG_LED LED_VIRTUAL
127 /* Define if the device can wake from an RTC alarm */
128 #define HAVE_RTC_ALARM
130 /* Define this if you have adjustable CPU frequency */
131 #define HAVE_ADJUSTABLE_CPU_FREQ
133 /* Define this if you can detect headphones */
134 #define HAVE_HEADPHONE_DETECTION
136 #define BOOTFILE_EXT "ipod"
137 #define BOOTFILE "rockbox." BOOTFILE_EXT
138 #define BOOTDIR "/.rockbox"
140 #define ICODE_ATTR_TREMOR_NOT_MDCT