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