When setting a cache path also enable the cache implicitly.
[Rockbox.git] / firmware / export / config-ipodcolor.h
blob9a7c055d5398a1c717143ef95a8b3849d150706f
1 /*
2 * This config file is for the Apple iPod Color/Photo
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 3
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 have a colour LCD */
31 #define HAVE_LCD_COLOR
33 /* define this if you want album art for this target */
34 #define HAVE_ALBUMART
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 220
46 #define LCD_HEIGHT 176
47 #define LCD_DEPTH 16 /* 65536 colours */
48 #define LCD_PIXELFORMAT RGB565SWAPPED /* rgb565 byte-swapped */
50 #define CONFIG_KEYPAD IPOD_4G_PAD
52 /* Define this if you do software codec */
53 #define CONFIG_CODEC SWCODEC
55 /* define this if you have a real-time clock */
56 #define CONFIG_RTC RTC_PCF50605
58 /* Define if the device can wake from an RTC alarm */
59 #define HAVE_RTC_ALARM
61 /* Define this if you can switch on/off the accessory power supply */
62 #define HAVE_ACCESSORY_SUPPLY
64 /* Define this if you have a software controlled poweroff */
65 #define HAVE_SW_POWEROFF
67 /* The number of bytes reserved for loadable codecs */
68 #define CODEC_SIZE 0x80000
70 /* The number of bytes reserved for loadable plugins */
71 #define PLUGIN_BUFFER_SIZE 0x80000
73 /* Define this if you have the WM8975 audio codec */
74 #define HAVE_WM8975
76 #define AB_REPEAT_ENABLE 1
77 #define ACTION_WPSAB_SINGLE ACTION_WPS_BROWSE
79 /* Define this for LCD backlight available */
80 #define HAVE_BACKLIGHT
82 /* define this if the unit uses a scrollwheel for navigation */
83 #define HAVE_SCROLLWHEEL
84 /* define from which rotation speed [degree/sec] on the acceleration starts */
85 #define WHEEL_ACCEL_START 270
86 /* define type of acceleration (1 = ^2, 2 = ^3, 3 = ^4) */
87 #define WHEEL_ACCELERATION 3
89 /* Define this if you can detect headphones */
90 #define HAVE_HEADPHONE_DETECTION
92 #define BATTERY_CAPACITY_DEFAULT 700 /* default battery capacity */
93 #define BATTERY_CAPACITY_MIN 700 /* min. capacity selectable */
94 #define BATTERY_CAPACITY_MAX 1200 /* max. capacity selectable */
95 #define BATTERY_CAPACITY_INC 10 /* capacity increment */
96 #define BATTERY_TYPES_COUNT 1 /* only one type */
98 /* Hardware controlled charging? */
99 #define CONFIG_CHARGING CHARGING_MONITOR
101 /* define this if the unit can be powered or charged via USB */
102 #define HAVE_USB_POWER
104 #ifndef SIMULATOR
106 /* Define this if you have a PortalPlayer PP5020 */
107 #define CONFIG_CPU PP5020
109 /* Define this if you want to use the PP5020 i2c interface */
110 #define CONFIG_I2C I2C_PP5020
112 /* We're able to shut off power to the HDD */
113 #define HAVE_ATA_POWER_OFF
115 /* define this if the hardware can be powered off while charging */
116 //#define HAVE_POWEROFF_WHILE_CHARGING
118 /* The start address index for ROM builds */
119 #define ROM_START 0x00000000
121 /* The size of the flash ROM */
122 #define FLASH_SIZE 0x100000
124 /* Define this to the CPU frequency */
125 #define CPU_FREQ 11289600
127 #define CONFIG_LCD LCD_IPODCOLOR
129 /* Offset ( in the firmware file's header ) to the file length */
130 #define FIRMWARE_OFFSET_FILE_LENGTH 0
132 /* Offset ( in the firmware file's header ) to the file CRC */
133 #define FIRMWARE_OFFSET_FILE_CRC 0
135 /* Offset ( in the firmware file's header ) to the real data */
136 #define FIRMWARE_OFFSET_FILE_DATA 8
138 #define USB_IPODSTYLE
140 /* USB On-the-go */
141 #define CONFIG_USBOTG USBOTG_ARC
143 /* enable these for the experimental usb stack */
144 #define HAVE_USBSTACK
145 #define USB_VENDOR_ID 0x05ac
146 #define USB_PRODUCT_ID 0x1204
148 /* Virtual LED (icon) */
149 #define CONFIG_LED LED_VIRTUAL
151 /* Define this if you have adjustable CPU frequency */
152 #define HAVE_ADJUSTABLE_CPU_FREQ
154 /* Define this if you can read an absolute wheel position */
155 #define HAVE_WHEEL_POSITION
157 #define BOOTFILE_EXT "ipod"
158 #define BOOTFILE "rockbox." BOOTFILE_EXT
159 #define BOOTDIR "/.rockbox"
161 #define ICODE_ATTR_TREMOR_NOT_MDCT
163 #endif