Should clear up rest of red. Add a required #define in the config for c200. Fix up...
[kugel-rb.git] / firmware / export / config / mpiohd200.h
blob465154a4bd620daaedddfccc13330a0c994797ca
1 /*
2 * This config file is for MPIO HD200
3 */
4 #define TARGET_TREE /* this target is using the target tree system */
6 /* For Rolo and boot loader */
7 #define MODEL_NUMBER 69
9 #define MODEL_NAME "MPIO HD200"
11 /* define this if you use an ATA controller */
12 #define CONFIG_STORAGE STORAGE_ATA
13 #define HAVE_LBA48
14 #define ATA_SWAP_WORDS
16 /* define this if you have recording possibility */
17 /* not implemented yet
18 * #define HAVE_RECORDING
22 /* Define bitmask of input sources - recordable bitmask can be defined
23 * explicitly if different
24 * not implemented yet
27 #define INPUT_SRC_CAPS (SRC_CAP_MIC | SRC_CAP_LINEIN | SRC_CAP_FMRADIO)
30 /* define the bitmask of hardware sample rates */
31 #define HW_SAMPR_CAPS (SAMPR_CAP_88 | SAMPR_CAP_44 | SAMPR_CAP_22 | SAMPR_CAP_11)
33 /* define the bitmask of recording sample rates
34 * not implemented yet
35 *#define REC_SAMPR_CAPS (SAMPR_CAP_88 | SAMPR_CAP_44 | SAMPR_CAP_22 | SAMPR_CAP_11)
38 /* define this if you have a bitmap LCD display */
39 #define HAVE_LCD_BITMAP
41 /* define this if you want album art for this target */
42 #define HAVE_ALBUMART
44 /* define this to enable bitmap scaling */
45 #define HAVE_BMP_SCALING
47 /* define this to enable JPEG decoding */
48 #define HAVE_JPEG
50 /* define this if you can flip your LCD */
51 #define HAVE_LCD_FLIP
53 /* define this if you can invert the colours on your LCD */
54 #define HAVE_LCD_INVERT
56 /* define this if you have access to the quickscreen */
57 #define HAVE_QUICKSCREEN
59 /* define this if you have access to the pitchscreen */
60 #define HAVE_PITCHSCREEN
62 /* define this if you would like tagcache to build on this target */
63 #define HAVE_TAGCACHE
65 /* LCD dimensions */
66 #define LCD_WIDTH 128
67 #define LCD_HEIGHT 128
68 #define LCD_DEPTH 2
70 #define LCD_PIXELFORMAT VERTICAL_INTERLEAVED
72 /* Display colours, for screenshots and sim (0xRRGGBB) */
73 #define LCD_DARKCOLOR 0x000000
74 #define LCD_BRIGHTCOLOR 0x5a915a
75 #define LCD_BL_DARKCOLOR 0x000000
76 #define LCD_BL_BRIGHTCOLOR 0x82b4fa
78 #define CONFIG_KEYPAD MPIO_HD200_PAD
80 #define AB_REPEAT_ENABLE 1
81 #define ACTION_WPSAB_SINGLE ACTION_WPS_BROWSE
83 /* Define this if you do software codec */
84 #define CONFIG_CODEC SWCODEC
86 #define CONFIG_LCD LCD_TL0350A
87 #define HAVE_LCD_SHUTDOWN
89 /* Define this for LCD backlight available */
90 #define HAVE_BACKLIGHT
91 #define HAVE_BACKLIGHT_BRIGHTNESS
92 #define MIN_BRIGHTNESS_SETTING 0
93 #define MAX_BRIGHTNESS_SETTING 31
94 #define DEFAULT_BRIGHTNESS_SETTING 20
97 /* define this if you have a disk storage, i.e. something
98 that needs spinups and can cause skips when shaked */
99 #define HAVE_DISK_STORAGE
101 /* Define this if you have a software controlled poweroff */
102 #define HAVE_SW_POWEROFF
104 /* The number of bytes reserved for loadable codecs */
105 #define CODEC_SIZE 0x100000
107 /* The number of bytes reserved for loadable plugins */
108 #define PLUGIN_BUFFER_SIZE 0x80000
110 /* FM Tuner
111 * turn off for now
113 #define CONFIG_TUNER TEA5767
114 #define CONFIG_TUNER_XTAL 32768
117 /* we have WM8750 codec in I2S slave mode */
118 #define HAVE_WM8750
119 #define CODEC_SLAVE
121 #define BATTERY_CAPACITY_DEFAULT 950 /* default battery capacity */
122 #define BATTERY_CAPACITY_MIN 950 /* min. capacity selectable */
123 #define BATTERY_CAPACITY_MAX 2250 /* max. capacity selectable */
124 #define BATTERY_CAPACITY_INC 50 /* capacity increment */
125 #define BATTERY_TYPES_COUNT 1 /* only one type */
127 #define CONFIG_CHARGING CHARGING_MONITOR
129 /* define current usage levels */
130 /* additional current when remote connected */
132 #define CURRENT_REMOTE 8
134 #ifndef SIMULATOR
136 /* Define this if your LCD can set contrast */
137 #define HAVE_LCD_CONTRAST
139 /* Define this if you have a Motorola SCF5249 */
140 #define CONFIG_CPU MCF5249
142 /* Define this if you want to use coldfire's i2c interface */
143 #define CONFIG_I2C I2C_COLDFIRE
145 /* OF resets device instead of poweroff while charging
146 * this triggers bootloader code which takes care of charging.
147 * I have feeling that powering off while charging may cause
148 * partition table corruption I am experiencing from time to time
151 /* define this if the hardware can be powered off while charging */
152 /* #define HAVE_POWEROFF_WHILE_CHARGING */
154 /* The size of the flash ROM */
155 #define FLASH_SIZE 0x200000
157 /* Define this to the CPU frequency */
158 #define CPU_FREQ 11289600
160 /* Define this if you have ATA power-off control */
161 #define HAVE_ATA_POWER_OFF
163 /* Offset ( in the firmware file's header ) to the file length */
164 #define FIRMWARE_OFFSET_FILE_LENGTH 0
166 /* Offset ( in the firmware file's header ) to the file CRC */
167 #define FIRMWARE_OFFSET_FILE_CRC 0
169 /* Offset ( in the firmware file's header ) to the real data */
170 #define FIRMWARE_OFFSET_FILE_DATA 8
172 /* Define this if you have adjustable CPU frequency */
173 #define HAVE_ADJUSTABLE_CPU_FREQ
175 #define BOOTFILE_EXT "mpio"
176 #define BOOTFILE "rockbox." BOOTFILE_EXT
177 #define BOOTDIR "/.rockbox"
179 #define BOOTLOADER_ENTRYPOINT 0x001F0000
180 #define FLASH_ENTRYPOINT 0x00001000
181 #define FLASH_MAGIC 0xfbfbfbf1
183 #endif /* SIMULATOR */
185 /** Port-specific settings **/
187 /* Main LCD contrast range and defaults taken from OF*/
188 #define MIN_CONTRAST_SETTING 24
189 #define MAX_CONTRAST_SETTING 63
190 #define DEFAULT_CONTRAST_SETTING 27 /* 0x1B */
192 #define IRAM_LCDFRAMEBUFFER IBSS_ATTR /* put the lcd frame buffer in IRAM */