add global proxy / cache settings to httpget class. This removes the need of passing...
[Rockbox.git] / firmware / export / config-ipodmini.h
blobf38de3e352f3b9c82ee6d116378162ee1a4ded9a
1 /*
2 * This config file is for the Apple iPod Mini (1st 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 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 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 #define HAVE_LCD_CONTRAST
43 /* LCD contrast */
44 #define MIN_CONTRAST_SETTING 5
45 #define MAX_CONTRAST_SETTING 63
46 #define DEFAULT_CONTRAST_SETTING 40 /* Match boot contrast */
48 /* define this if you can flip your LCD */
49 #define HAVE_LCD_FLIP
51 #define CONFIG_KEYPAD IPOD_4G_PAD
53 /* Define this if you do software codec */
54 #define CONFIG_CODEC SWCODEC
56 /* define this if you have a real-time clock */
57 #define CONFIG_RTC RTC_PCF50605
59 /* Define if the device can wake from an RTC alarm */
60 #define HAVE_RTC_ALARM
62 /* Define this if you have a software controlled poweroff */
63 #define HAVE_SW_POWEROFF
65 /* The number of bytes reserved for loadable codecs */
66 #define CODEC_SIZE 0x80000
68 /* The number of bytes reserved for loadable plugins */
69 #define PLUGIN_BUFFER_SIZE 0x80000
71 /* Define this if you have the WM8721 audio codec */
72 #define HAVE_WM8721 /* actually WM8731 but no recording */
74 /* WM8721 has no tone controls, so we use the software ones */
75 #define HAVE_SW_TONE_CONTROLS
77 #define AB_REPEAT_ENABLE 1
78 #define ACTION_WPSAB_SINGLE ACTION_WPS_BROWSE
80 /* Define this for LCD backlight available */
81 #define HAVE_BACKLIGHT
83 /* We can fade the backlight by using PWM */
84 #define HAVE_BACKLIGHT_PWM_FADING
86 /* Define this if you can detect headphones */
87 #define HAVE_HEADPHONE_DETECTION
89 #define BATTERY_CAPACITY_DEFAULT 400 /* default battery capacity */
90 #define BATTERY_CAPACITY_MIN 400 /* min. capacity selectable */
91 #define BATTERY_CAPACITY_MAX 800 /* max. capacity selectable */
92 #define BATTERY_CAPACITY_INC 10 /* capacity increment */
93 #define BATTERY_TYPES_COUNT 1 /* only one type */
95 /* Hardware controlled charging? */
96 #define CONFIG_CHARGING CHARGING_MONITOR
98 /* define this if the unit can be powered or charged via USB */
99 #define HAVE_USB_POWER
101 #ifndef SIMULATOR
103 /* Define this if you have a PortalPlayer PP5020 */
104 #define CONFIG_CPU PP5020
106 /* Define this if you want to use the PP5020 i2c interface */
107 #define CONFIG_I2C I2C_PP5020
109 /* We're able to shut off power to the HDD */
110 #define HAVE_ATA_POWER_OFF
112 /* define this if the hardware can be powered off while charging */
113 //#define HAVE_POWEROFF_WHILE_CHARGING
115 /* The start address index for ROM builds */
116 #define ROM_START 0x00000000
118 /* The size of the flash ROM */
119 #define FLASH_SIZE 0x100000
121 /* Define this to the CPU frequency */
122 #define CPU_FREQ 11289600
124 #define CONFIG_LCD LCD_IPODMINI
126 /* Offset ( in the firmware file's header ) to the file length */
127 #define FIRMWARE_OFFSET_FILE_LENGTH 0
129 /* Offset ( in the firmware file's header ) to the file CRC */
130 #define FIRMWARE_OFFSET_FILE_CRC 0
132 /* Offset ( in the firmware file's header ) to the real data */
133 #define FIRMWARE_OFFSET_FILE_DATA 8
135 #define USB_IPODSTYLE
137 /* USB On-the-go */
138 #define CONFIG_USBOTG USBOTG_ARC
140 /* enable these for the experimental usb stack */
141 #define HAVE_USBSTACK
142 #define USB_VENDOR_ID 0x05ac
143 #define USB_PRODUCT_ID 0x1205
145 /* Virtual LED (icon) */
146 #define CONFIG_LED LED_VIRTUAL
148 /* Define this if you have adjustable CPU frequency */
149 #define HAVE_ADJUSTABLE_CPU_FREQ
151 #define BOOTFILE_EXT "ipod"
152 #define BOOTFILE "rockbox." BOOTFILE_EXT
153 #define BOOTDIR "/.rockbox"
155 #define ICODE_ATTR_TREMOR_NOT_MDCT
157 #endif