2 * This config file is for iAudio M5
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 have recording possibility */
10 #define HAVE_RECORDING
12 /* define the bitmask of hardware sample rates */
13 #define HW_SAMPR_CAPS (SAMPR_CAP_88 | SAMPR_CAP_44 | SAMPR_CAP_22 | SAMPR_CAP_11)
15 /* define the bitmask of recording sample rates */
16 #define REC_SAMPR_CAPS (SAMPR_CAP_88 | SAMPR_CAP_44 | SAMPR_CAP_22 | SAMPR_CAP_11)
18 /* define this if you have a bitmap LCD display */
19 #define HAVE_LCD_BITMAP
21 /* define this if you can flip your LCD */
24 /* define this if you can invert the colours on your LCD */
25 #define HAVE_LCD_INVERT
27 /* define this if you have access to the quickscreen */
28 #define HAVE_QUICKSCREEN
30 /* define this if you have access to the pitchscreen */
31 #define HAVE_PITCHSCREEN
33 /* define this if you would like tagcache to build on this target */
38 #define LCD_HEIGHT 128
41 #define LCD_PIXELFORMAT VERTICAL_PACKING
44 #define LCD_REMOTE_WIDTH 128
45 #define LCD_REMOTE_HEIGHT 96
46 #define LCD_REMOTE_DEPTH 2
48 #define LCD_REMOTE_PIXELFORMAT VERTICAL_INTERLEAVED
50 #define CONFIG_KEYPAD IAUDIO_X5M5_PAD
52 #define AB_REPEAT_ENABLE 1
53 #define ACTION_WPSAB_SINGLE ACTION_WPS_BROWSE
55 /* Define this if you do software codec */
56 #define CONFIG_CODEC SWCODEC
58 /* define this if you have a real-time clock */
59 #define CONFIG_RTC RTC_PCF50606
61 /* Define this if you have an remote lcd */
62 #define HAVE_REMOTE_LCD
64 #define CONFIG_LCD LCD_S1D15E06
66 /* Define this for LCD backlight available */
67 #define CONFIG_BACKLIGHT BL_M5 /* PCF50606 I2C */
69 /* Define this if you have a software controlled poweroff */
70 #define HAVE_SW_POWEROFF
72 /* The number of bytes reserved for loadable codecs */
73 #define CODEC_SIZE 0x80000
75 /* The number of bytes reserved for loadable plugins */
76 #define PLUGIN_BUFFER_SIZE 0x80000
78 #define BATTERY_CAPACITY_DEFAULT 950 /* default battery capacity */
82 /* TLV320 has no tone controls, so we use the software ones */
83 #define HAVE_SW_TONE_CONTROLS
87 /* Define this if your LCD can set contrast */
88 #define HAVE_LCD_CONTRAST
90 /* Define this if you have a Motorola SCF5250 */
91 #define CONFIG_CPU MCF5250
93 /* Define this if you want to use coldfire's i2c interface */
94 #define CONFIG_I2C I2C_COLDFIRE
96 /* Hardware controlled charging? FIXME */
97 #define CONFIG_CHARGING CHARGING_SIMPLE
99 /* define this if the hardware can be powered off while charging */
100 #define HAVE_POWEROFF_WHILE_CHARGING
102 /* The size of the flash ROM */
103 #define FLASH_SIZE 0x400000
105 /* Define this to the CPU frequency */
106 #define CPU_FREQ 11289600
108 /* Type of mobile power */
109 #define X5_BATT_CONFIG 2
110 #define CONFIG_BATTERY BATT_IAUDIO_X5M5
111 #define BATTERY_CAPACITY_MIN 950 /* min. capacity selectable */
112 #define BATTERY_CAPACITY_MAX 2250 /* max. capacity selectable */
113 #define BATTERY_CAPACITY_INC 50 /* capacity increment */
114 #define BATTERY_TYPES_COUNT 1 /* only one type */
115 #define BATTERY_SCALE_FACTOR 5859 /* (420703125 + 35900) / 71800 */
117 /* Define this if you have ATA power-off control */
118 #define HAVE_ATA_POWER_OFF
120 /* Virtual LED (icon) */
121 #define CONFIG_LED LED_VIRTUAL
123 /* Offset ( in the firmware file's header ) to the file CRC */
124 #define FIRMWARE_OFFSET_FILE_CRC 0
126 /* Offset ( in the firmware file's header ) to the real data */
127 #define FIRMWARE_OFFSET_FILE_DATA 8
129 #define USB_X5M5_STYLE
131 /* Define this if you have adjustable CPU frequency */
132 #define HAVE_ADJUSTABLE_CPU_FREQ
134 #define BOOTFILE_EXT "iaudio"
135 #define BOOTFILE "rockbox." BOOTFILE_EXT
136 #define BOOTDIR "/.rockbox"
138 #define BOOTLOADER_ENTRYPOINT 0x001F0000
139 #define FLASH_ENTRYPOINT 0x00001000
140 #define FLASH_MAGIC 0xfbfbfbf1
142 #endif /* SIMULATOR */
144 /** Port-specific settings **/
146 /* Main LCD contrast range and defaults */
147 #define MIN_CONTRAST_SETTING 24
148 #define MAX_CONTRAST_SETTING 63
149 #define DEFAULT_CONTRAST_SETTING 40
151 /* Remote LCD contrast range and defaults */
152 #define MIN_REMOTE_CONTRAST_SETTING 10
153 #define MAX_REMOTE_CONTRAST_SETTING 35
154 #define DEFAULT_REMOTE_CONTRAST_SETTING 24 /* Match boot contrast */