When setting a cache path also enable the cache implicitly.
[Rockbox.git] / firmware / export / config-iaudiom5.h
blobe54fb152314819aad17bcfa137d3d364911f389d
1 /*
2 * This config file is for iAudio M5
3 */
4 #define TARGET_TREE /* this target is using the target tree system */
6 /* For Rolo and boot loader */
7 #define MODEL_NUMBER 17
9 /* define this if you use an ATA controller */
10 #define HAVE_ATA
12 /* define this if you have recording possibility */
13 #define HAVE_RECORDING
15 /* Define bitmask of input sources - recordable bitmask can be defined
16 explicitly if different */
17 #define INPUT_SRC_CAPS (SRC_CAP_MIC | SRC_CAP_LINEIN)
19 /* define the bitmask of hardware sample rates */
20 #define HW_SAMPR_CAPS (SAMPR_CAP_88 | SAMPR_CAP_44 | SAMPR_CAP_22 | SAMPR_CAP_11)
22 /* define the bitmask of recording sample rates */
23 #define REC_SAMPR_CAPS (SAMPR_CAP_88 | SAMPR_CAP_44 | SAMPR_CAP_22 | SAMPR_CAP_11)
25 /* define this if you have a bitmap LCD display */
26 #define HAVE_LCD_BITMAP
28 /* define this if you want album art for this target */
29 #define HAVE_ALBUMART
31 /* define this if you can flip your LCD */
32 #define HAVE_LCD_FLIP
34 /* define this if you can invert the colours on your LCD */
35 #define HAVE_LCD_INVERT
37 /* define this if you have access to the quickscreen */
38 #define HAVE_QUICKSCREEN
40 /* define this if you have access to the pitchscreen */
41 #define HAVE_PITCHSCREEN
43 /* define this if you would like tagcache to build on this target */
44 #define HAVE_TAGCACHE
46 /* LCD dimensions */
47 #define LCD_WIDTH 160
48 #define LCD_HEIGHT 128
49 #define LCD_DEPTH 2
51 #define LCD_PIXELFORMAT VERTICAL_PACKING
53 /* remote LCD */
54 #define LCD_REMOTE_WIDTH 128
55 #define LCD_REMOTE_HEIGHT 96
56 #define LCD_REMOTE_DEPTH 2
58 #define LCD_REMOTE_PIXELFORMAT VERTICAL_INTERLEAVED
60 #define CONFIG_KEYPAD IAUDIO_X5M5_PAD
62 #define AB_REPEAT_ENABLE 1
63 #define ACTION_WPSAB_SINGLE ACTION_WPS_BROWSE
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_PCF50606
71 /* Define this if you have an remote lcd */
72 #define HAVE_REMOTE_LCD
74 #define CONFIG_LCD LCD_S1D15E06
76 /* Define this for LCD backlight available */
77 #define HAVE_BACKLIGHT
79 /* Define this if you have a software controlled poweroff */
80 #define HAVE_SW_POWEROFF
82 /* The number of bytes reserved for loadable codecs */
83 #define CODEC_SIZE 0x80000
85 /* The number of bytes reserved for loadable plugins */
86 #define PLUGIN_BUFFER_SIZE 0x80000
88 #define HAVE_TLV320
90 /* TLV320 has no tone controls, so we use the software ones */
91 #define HAVE_SW_TONE_CONTROLS
93 #define BATTERY_CAPACITY_DEFAULT 950 /* default battery capacity */
94 #define BATTERY_CAPACITY_MIN 950 /* min. capacity selectable */
95 #define BATTERY_CAPACITY_MAX 2250 /* max. capacity selectable */
96 #define BATTERY_CAPACITY_INC 50 /* capacity increment */
97 #define BATTERY_TYPES_COUNT 1 /* only one type */
99 /* Hardware controlled charging? FIXME */
100 #define CONFIG_CHARGING CHARGING_SIMPLE
102 #ifndef SIMULATOR
104 /* Define this if your LCD can set contrast */
105 #define HAVE_LCD_CONTRAST
107 /* Define this if you have a Motorola SCF5250 */
108 #define CONFIG_CPU MCF5250
110 /* Define this if you want to use coldfire's i2c interface */
111 #define CONFIG_I2C I2C_COLDFIRE
113 /* define this if the hardware can be powered off while charging */
114 #define HAVE_POWEROFF_WHILE_CHARGING
116 /* The size of the flash ROM */
117 #define FLASH_SIZE 0x400000
119 /* Define this to the CPU frequency */
120 #define CPU_FREQ 11289600
122 /* Define this if you have ATA power-off control */
123 #define HAVE_ATA_POWER_OFF
125 /* Virtual LED (icon) */
126 #define CONFIG_LED LED_VIRTUAL
128 /* Offset ( in the firmware file's header ) to the file CRC */
129 #define FIRMWARE_OFFSET_FILE_CRC 0
131 /* Offset ( in the firmware file's header ) to the real data */
132 #define FIRMWARE_OFFSET_FILE_DATA 8
134 /* Define this if you have adjustable CPU frequency */
135 #define HAVE_ADJUSTABLE_CPU_FREQ
137 #define BOOTFILE_EXT "iaudio"
138 #define BOOTFILE "rockbox." BOOTFILE_EXT
139 #define BOOTDIR "/.rockbox"
141 #define BOOTLOADER_ENTRYPOINT 0x001F0000
142 #define FLASH_ENTRYPOINT 0x00001000
143 #define FLASH_MAGIC 0xfbfbfbf1
145 #endif /* SIMULATOR */
147 /** Port-specific settings **/
149 /* Main LCD contrast range and defaults */
150 #define MIN_CONTRAST_SETTING 24
151 #define MAX_CONTRAST_SETTING 63
152 #define DEFAULT_CONTRAST_SETTING 40
154 /* Remote LCD contrast range and defaults */
155 #define MIN_REMOTE_CONTRAST_SETTING 10
156 #define MAX_REMOTE_CONTRAST_SETTING 35
157 #define DEFAULT_REMOTE_CONTRAST_SETTING 24 /* Match boot contrast */