diff options
author | Marcin Bukat <marcin.bukat@gmail.com> | 2010-04-26 21:40:16 +0000 |
---|---|---|
committer | Marcin Bukat <marcin.bukat@gmail.com> | 2010-04-26 21:40:16 +0000 |
commit | 28d54c6016459ffe93c0be2efea7de27c38d783c (patch) | |
tree | 9a7a71481f0a82599616a3e9f4e5bdad9fee8d6c /firmware/export | |
parent | b09d3aec392538ca0934644ff6357c41aaa4c323 (diff) | |
download | rockbox-28d54c6016459ffe93c0be2efea7de27c38d783c.tar.gz rockbox-28d54c6016459ffe93c0be2efea7de27c38d783c.zip |
Add MPIO HD200 port - new files
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25725 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/export')
-rw-r--r-- | firmware/export/config/mpiohd200.h | 191 |
1 files changed, 191 insertions, 0 deletions
diff --git a/firmware/export/config/mpiohd200.h b/firmware/export/config/mpiohd200.h new file mode 100644 index 0000000000..369f443cb2 --- /dev/null +++ b/firmware/export/config/mpiohd200.h | |||
@@ -0,0 +1,191 @@ | |||
1 | /* | ||
2 | * This config file is for MPIO HD200 | ||
3 | */ | ||
4 | #define TARGET_TREE /* this target is using the target tree system */ | ||
5 | |||
6 | /* For Rolo and boot loader */ | ||
7 | #define MODEL_NUMBER 69 | ||
8 | |||
9 | #define MODEL_NAME "MPIO HD200" | ||
10 | |||
11 | /* define this if you use an ATA controller */ | ||
12 | #define CONFIG_STORAGE STORAGE_ATA | ||
13 | #define HAVE_LBA48 | ||
14 | |||
15 | /* define this if you have recording possibility */ | ||
16 | /* not implemented yet | ||
17 | * #define HAVE_RECORDING | ||
18 | */ | ||
19 | |||
20 | |||
21 | /* Define bitmask of input sources - recordable bitmask can be defined | ||
22 | * explicitly if different | ||
23 | * not implemented yet | ||
24 | */ | ||
25 | |||
26 | #define INPUT_SRC_CAPS (SRC_CAP_MIC | SRC_CAP_LINEIN | SRC_CAP_FMRADIO) | ||
27 | |||
28 | |||
29 | /* define the bitmask of hardware sample rates */ | ||
30 | #define HW_SAMPR_CAPS (SAMPR_CAP_88 | SAMPR_CAP_44 | SAMPR_CAP_22 | SAMPR_CAP_11) | ||
31 | |||
32 | /* define the bitmask of recording sample rates | ||
33 | * not implemented yet | ||
34 | *#define REC_SAMPR_CAPS (SAMPR_CAP_88 | SAMPR_CAP_44 | SAMPR_CAP_22 | SAMPR_CAP_11) | ||
35 | */ | ||
36 | |||
37 | /* define this if you have a bitmap LCD display */ | ||
38 | #define HAVE_LCD_BITMAP | ||
39 | |||
40 | /* define this if you want album art for this target */ | ||
41 | #define HAVE_ALBUMART | ||
42 | |||
43 | /* define this to enable bitmap scaling */ | ||
44 | #define HAVE_BMP_SCALING | ||
45 | |||
46 | /* define this to enable JPEG decoding */ | ||
47 | #define HAVE_JPEG | ||
48 | |||
49 | /* define this if you can flip your LCD */ | ||
50 | #define HAVE_LCD_FLIP | ||
51 | |||
52 | /* define this if you can invert the colours on your LCD */ | ||
53 | #define HAVE_LCD_INVERT | ||
54 | |||
55 | /* define this if you have access to the quickscreen */ | ||
56 | #define HAVE_QUICKSCREEN | ||
57 | |||
58 | /* define this if you have access to the pitchscreen */ | ||
59 | #define HAVE_PITCHSCREEN | ||
60 | |||
61 | /* define this if you would like tagcache to build on this target */ | ||
62 | #define HAVE_TAGCACHE | ||
63 | |||
64 | /* LCD dimensions */ | ||
65 | #define LCD_WIDTH 128 | ||
66 | #define LCD_HEIGHT 128 | ||
67 | #define LCD_DEPTH 2 | ||
68 | |||
69 | #define LCD_PIXELFORMAT VERTICAL_INTERLEAVED | ||
70 | |||
71 | /* Display colours, for screenshots and sim (0xRRGGBB) */ | ||
72 | #define LCD_DARKCOLOR 0x000000 | ||
73 | #define LCD_BRIGHTCOLOR 0x5a915a | ||
74 | #define LCD_BL_DARKCOLOR 0x000000 | ||
75 | #define LCD_BL_BRIGHTCOLOR 0x82b4fa | ||
76 | |||
77 | #define CONFIG_KEYPAD MPIO_HD200_PAD | ||
78 | |||
79 | #define AB_REPEAT_ENABLE 1 | ||
80 | #define ACTION_WPSAB_SINGLE ACTION_WPS_BROWSE | ||
81 | |||
82 | /* Define this if you do software codec */ | ||
83 | #define CONFIG_CODEC SWCODEC | ||
84 | |||
85 | #define CONFIG_LCD LCD_TL0350A | ||
86 | #define HAVE_LCD_SHUTDOWN | ||
87 | |||
88 | /* Define this for LCD backlight available */ | ||
89 | #define HAVE_BACKLIGHT | ||
90 | #define HAVE_BACKLIGHT_BRIGHTNESS | ||
91 | #define MIN_BRIGHTNESS_SETTING 0 | ||
92 | #define MAX_BRIGHTNESS_SETTING 31 | ||
93 | #define DEFAULT_BRIGHTNESS_SETTING 20 | ||
94 | |||
95 | |||
96 | /* define this if you have a disk storage, i.e. something | ||
97 | that needs spinups and can cause skips when shaked */ | ||
98 | #define HAVE_DISK_STORAGE | ||
99 | |||
100 | /* Define this if you have a software controlled poweroff */ | ||
101 | #define HAVE_SW_POWEROFF | ||
102 | |||
103 | /* The number of bytes reserved for loadable codecs */ | ||
104 | #define CODEC_SIZE 0x100000 | ||
105 | |||
106 | /* The number of bytes reserved for loadable plugins */ | ||
107 | #define PLUGIN_BUFFER_SIZE 0x80000 | ||
108 | |||
109 | /* FM Tuner | ||
110 | * turn off for now | ||
111 | */ | ||
112 | #define CONFIG_TUNER TEA5767 | ||
113 | #define CONFIG_TUNER_XTAL 32768 | ||
114 | |||
115 | |||
116 | /* we have WM8750 codec in I2S slave mode */ | ||
117 | #define HAVE_WM8750 | ||
118 | #define CODEC_SLAVE | ||
119 | |||
120 | #define BATTERY_CAPACITY_DEFAULT 950 /* default battery capacity */ | ||
121 | #define BATTERY_CAPACITY_MIN 950 /* min. capacity selectable */ | ||
122 | #define BATTERY_CAPACITY_MAX 2250 /* max. capacity selectable */ | ||
123 | #define BATTERY_CAPACITY_INC 50 /* capacity increment */ | ||
124 | #define BATTERY_TYPES_COUNT 1 /* only one type */ | ||
125 | |||
126 | #define CONFIG_CHARGING CHARGING_MONITOR | ||
127 | |||
128 | /* define current usage levels */ | ||
129 | /* additional current when remote connected */ | ||
130 | /* | ||
131 | #define CURRENT_REMOTE 8 | ||
132 | */ | ||
133 | #ifndef SIMULATOR | ||
134 | |||
135 | /* Define this if your LCD can set contrast */ | ||
136 | #define HAVE_LCD_CONTRAST | ||
137 | |||
138 | /* Define this if you have a Motorola SCF5249 */ | ||
139 | #define CONFIG_CPU MCF5249 | ||
140 | |||
141 | /* Define this if you want to use coldfire's i2c interface */ | ||
142 | #define CONFIG_I2C I2C_COLDFIRE | ||
143 | |||
144 | /* OF resets device instead of poweroff while charging | ||
145 | * this triggers bootloader code which takes care of charging. | ||
146 | * I have feeling that powering off while charging may cause | ||
147 | * partition table corruption I am experiencing from time to time | ||
148 | */ | ||
149 | |||
150 | /* define this if the hardware can be powered off while charging */ | ||
151 | /* #define HAVE_POWEROFF_WHILE_CHARGING */ | ||
152 | |||
153 | /* The size of the flash ROM */ | ||
154 | #define FLASH_SIZE 0x200000 | ||
155 | |||
156 | /* Define this to the CPU frequency */ | ||
157 | #define CPU_FREQ 11289600 | ||
158 | |||
159 | /* Define this if you have ATA power-off control */ | ||
160 | #define HAVE_ATA_POWER_OFF | ||
161 | |||
162 | /* Offset ( in the firmware file's header ) to the file length */ | ||
163 | #define FIRMWARE_OFFSET_FILE_LENGTH 0 | ||
164 | |||
165 | /* Offset ( in the firmware file's header ) to the file CRC */ | ||
166 | #define FIRMWARE_OFFSET_FILE_CRC 0 | ||
167 | |||
168 | /* Offset ( in the firmware file's header ) to the real data */ | ||
169 | #define FIRMWARE_OFFSET_FILE_DATA 8 | ||
170 | |||
171 | /* Define this if you have adjustable CPU frequency */ | ||
172 | #define HAVE_ADJUSTABLE_CPU_FREQ | ||
173 | |||
174 | #define BOOTFILE_EXT "mpio" | ||
175 | #define BOOTFILE "rockbox." BOOTFILE_EXT | ||
176 | #define BOOTDIR "/.rockbox" | ||
177 | |||
178 | #define BOOTLOADER_ENTRYPOINT 0x001F0000 | ||
179 | #define FLASH_ENTRYPOINT 0x00001000 | ||
180 | #define FLASH_MAGIC 0xfbfbfbf1 | ||
181 | |||
182 | #endif /* SIMULATOR */ | ||
183 | |||
184 | /** Port-specific settings **/ | ||
185 | |||
186 | /* Main LCD contrast range and defaults taken from OF*/ | ||
187 | #define MIN_CONTRAST_SETTING 24 | ||
188 | #define MAX_CONTRAST_SETTING 63 | ||
189 | #define DEFAULT_CONTRAST_SETTING 27 /* 0x1B */ | ||
190 | |||
191 | #define IRAM_LCDFRAMEBUFFER IBSS_ATTR /* put the lcd frame buffer in IRAM */ | ||