add global proxy / cache settings to httpget class. This removes the need of passing...
[Rockbox.git] / firmware / export / config-ipod4g.h
blobce2831f8484fc8a15367157e9e038aa3f3c1b1b5
1 /*
2 * This config file is for the Apple iPod 4g Grayscale
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 8
11 /* define this if you have recording possibility */
12 #define HAVE_RECORDING
14 /* Define bitmask of input sources - recordable bitmask can be defined
15 explicitly if different */
16 #define INPUT_SRC_CAPS (SRC_CAP_MIC | SRC_CAP_LINEIN)
18 /* define the bitmask of hardware sample rates */
19 #define HW_SAMPR_CAPS (SAMPR_CAP_44)
21 /* define the bitmask of recording sample rates */
22 #define REC_SAMPR_CAPS (SAMPR_CAP_44)
24 /* define this if you have a bitmap LCD display */
25 #define HAVE_LCD_BITMAP
27 /* define this if you want album art for this target */
28 #define HAVE_ALBUMART
30 /* define this if you can invert the colours on your LCD */
31 #define HAVE_LCD_INVERT
33 /* define this if the LCD needs to be shutdown */
34 #define HAVE_LCD_SHUTDOWN
36 /* define this if you have access to the quickscreen */
37 #define HAVE_QUICKSCREEN
38 /* define this if you have access to the pitchscreen */
39 #define HAVE_PITCHSCREEN
41 /* define this if you would like tagcache to build on this target */
42 #define HAVE_TAGCACHE
44 /* LCD dimensions */
45 #define LCD_WIDTH 160
46 #define LCD_HEIGHT 128
47 #define LCD_DEPTH 2 /* 4 colours - 2bpp */
48 #define LCD_PIXELFORMAT HORIZONTAL_PACKING
50 #define HAVE_LCD_CONTRAST
52 /* LCD contrast */
53 #define MIN_CONTRAST_SETTING 5
54 #define MAX_CONTRAST_SETTING 63
55 #define DEFAULT_CONTRAST_SETTING 40 /* Match boot contrast */
57 /* define this if you can flip your LCD */
58 #define HAVE_LCD_FLIP
60 #define CONFIG_KEYPAD IPOD_4G_PAD
62 /* Define this if you do software codec */
63 #define CONFIG_CODEC SWCODEC
65 /* define this if you have a real-time clock */
66 #define CONFIG_RTC RTC_PCF50605
68 /* Define if the device can wake from an RTC alarm */
69 #define HAVE_RTC_ALARM
71 /* Define this if you have a software controlled poweroff */
72 #define HAVE_SW_POWEROFF
74 /* The number of bytes reserved for loadable codecs */
75 #define CODEC_SIZE 0x80000
77 /* The number of bytes reserved for loadable plugins */
78 #define PLUGIN_BUFFER_SIZE 0x80000
80 /* Define this if you have the WM8975 audio codec */
81 #define HAVE_WM8975
83 #define AB_REPEAT_ENABLE 1
84 #define ACTION_WPSAB_SINGLE ACTION_WPS_BROWSE
86 /* Define this for LCD backlight available */
87 #define HAVE_BACKLIGHT
89 /* define this if the unit uses a scrollwheel for navigation */
90 #define HAVE_SCROLLWHEEL
91 /* define from which rotation speed [degree/sec] on the acceleration starts */
92 #define WHEEL_ACCEL_START 270
93 /* define type of acceleration (1 = ^2, 2 = ^3, 3 = ^4) */
94 #define WHEEL_ACCELERATION 3
96 /* Define this if you can detect headphones */
97 #define HAVE_HEADPHONE_DETECTION
99 #define BATTERY_CAPACITY_DEFAULT 630 /* default battery capacity */
100 #define BATTERY_CAPACITY_MIN 630 /* min. capacity selectable */
101 #define BATTERY_CAPACITY_MAX 1200 /* max. capacity selectable */
102 #define BATTERY_CAPACITY_INC 10 /* capacity increment */
103 #define BATTERY_TYPES_COUNT 1 /* only one type */
105 /* Hardware controlled charging? */
106 #define CONFIG_CHARGING CHARGING_MONITOR
108 /* define this if the unit can be powered or charged via USB */
109 #define HAVE_USB_POWER
111 #ifndef SIMULATOR
113 /* Define this if you have a PortalPlayer PP5020 */
114 #define CONFIG_CPU PP5020
116 /* Define this if you want to use the PP5020 i2c interface */
117 #define CONFIG_I2C I2C_PP5020
119 /* We're able to shut off power to the HDD */
120 #define HAVE_ATA_POWER_OFF
122 /* define this if the hardware can be powered off while charging */
123 //#define HAVE_POWEROFF_WHILE_CHARGING
125 /* The start address index for ROM builds */
126 #define ROM_START 0x00000000
128 /* The size of the flash ROM */
129 #define FLASH_SIZE 0x100000
131 /* Define this to the CPU frequency */
132 #define CPU_FREQ 11289600
134 #define CONFIG_LCD LCD_IPOD2BPP
136 /* Offset ( in the firmware file's header ) to the file length */
137 #define FIRMWARE_OFFSET_FILE_LENGTH 0
139 /* Offset ( in the firmware file's header ) to the file CRC */
140 #define FIRMWARE_OFFSET_FILE_CRC 0
142 /* Offset ( in the firmware file's header ) to the real data */
143 #define FIRMWARE_OFFSET_FILE_DATA 8
145 #define USB_IPODSTYLE
147 /* USB On-the-go */
148 #define CONFIG_USBOTG USBOTG_ARC
150 /* enable these for the experimental usb stack */
151 #define HAVE_USBSTACK
152 #define USB_VENDOR_ID 0x05ac
153 #define USB_PRODUCT_ID 0x1203
155 /* Virtual LED (icon) */
156 #define CONFIG_LED LED_VIRTUAL
158 /* Define this if you have adjustable CPU frequency */
159 #define HAVE_ADJUSTABLE_CPU_FREQ
161 /* Define this if you can read an absolute wheel position */
162 #define HAVE_WHEEL_POSITION
164 #define BOOTFILE_EXT "ipod"
165 #define BOOTFILE "rockbox." BOOTFILE_EXT
166 #define BOOTDIR "/.rockbox"
168 #define ICODE_ATTR_TREMOR_NOT_MDCT
170 #endif