summaryrefslogtreecommitdiff
path: root/firmware/export
diff options
context:
space:
mode:
authorMarcin Bukat <marcin.bukat@gmail.com>2010-11-26 23:28:08 +0000
committerMarcin Bukat <marcin.bukat@gmail.com>2010-11-26 23:28:08 +0000
commit9a24892e2e8b6ef9f8a616c630d1bb123ce713e7 (patch)
treed341118a6d8beefbf6e0da1761c7f8990967a8d1 /firmware/export
parent608bc4ed4bc74560e1d2e6333d25d1254fb9058a (diff)
downloadrockbox-9a24892e2e8b6ef9f8a616c630d1bb123ce713e7.tar.gz
rockbox-9a24892e2e8b6ef9f8a616c630d1bb123ce713e7.zip
MPIO HD300 - initial commit
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28680 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/export')
-rw-r--r--firmware/export/config.h3
-rw-r--r--firmware/export/config/mpiohd300.h186
2 files changed, 189 insertions, 0 deletions
diff --git a/firmware/export/config.h b/firmware/export/config.h
index 3a7328315b..52cb79bdae 100644
--- a/firmware/export/config.h
+++ b/firmware/export/config.h
@@ -130,6 +130,7 @@
130#define MPIO_HD200_PAD 44 130#define MPIO_HD200_PAD 44
131#define ANDROID_PAD 45 131#define ANDROID_PAD 45
132#define SDL_PAD 46 132#define SDL_PAD 46
133#define MPIO_HD300_PAD 47
133 134
134/* CONFIG_REMOTE_KEYPAD */ 135/* CONFIG_REMOTE_KEYPAD */
135#define H100_REMOTE 1 136#define H100_REMOTE 1
@@ -428,6 +429,8 @@ Lyre prototype 1 */
428#include "config/vibe500.h" 429#include "config/vibe500.h"
429#elif defined(MPIO_HD200) 430#elif defined(MPIO_HD200)
430#include "config/mpiohd200.h" 431#include "config/mpiohd200.h"
432#elif defined(MPIO_HD300)
433#include "config/mpiohd300.h"
431 434
432#elif defined(APPLICATION) 435#elif defined(APPLICATION)
433#include "config/application.h" 436#include "config/application.h"
diff --git a/firmware/export/config/mpiohd300.h b/firmware/export/config/mpiohd300.h
new file mode 100644
index 0000000000..37f79b4d47
--- /dev/null
+++ b/firmware/export/config/mpiohd300.h
@@ -0,0 +1,186 @@
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 70
8
9#define MODEL_NAME "MPIO HD300"
10
11/* define this if you use an ATA controller */
12#define CONFIG_STORAGE STORAGE_ATA
13#define HAVE_LBA48
14#define ATA_SWAP_WORDS
15
16/* define this if you have recording possibility */
17#define HAVE_RECORDING
18
19/* Define bitmask of input sources - recordable bitmask can be defined
20 * explicitly if different
21 */
22#define INPUT_SRC_CAPS (SRC_CAP_MIC | SRC_CAP_FMRADIO)
23
24/* define the bitmask of hardware sample rates */
25#define HW_SAMPR_CAPS (SAMPR_CAP_88 | SAMPR_CAP_44 | SAMPR_CAP_22 | SAMPR_CAP_11)
26
27/* define the bitmask of recording sample rates */
28#define REC_SAMPR_CAPS (SAMPR_CAP_88 | SAMPR_CAP_44 | SAMPR_CAP_22 | SAMPR_CAP_11)
29
30/* define this if you have a bitmap LCD display */
31#define HAVE_LCD_BITMAP
32
33/* define this if you want album art for this target */
34#define HAVE_ALBUMART
35
36/* define this to enable bitmap scaling */
37#define HAVE_BMP_SCALING
38
39/* define this to enable JPEG decoding */
40#define HAVE_JPEG
41
42/* define this if you can flip your LCD */
43#define HAVE_LCD_FLIP
44
45/* define this if you can invert the colours on your LCD */
46#define HAVE_LCD_INVERT
47
48/* define this if you have access to the quickscreen */
49/* #define HAVE_QUICKSCREEN */
50
51/* define this if you have access to the pitchscreen */
52#define HAVE_PITCHSCREEN
53
54/* define this if you would like tagcache to build on this target */
55#define HAVE_TAGCACHE
56
57/* LCD dimensions */
58#define LCD_WIDTH 160
59#define LCD_HEIGHT 128
60#define LCD_DEPTH 2
61
62#define LCD_PIXELFORMAT VERTICAL_PACKING
63
64/* Display colours, for screenshots and sim (0xRRGGBB) */
65#define LCD_DARKCOLOR 0x000000
66#define LCD_BRIGHTCOLOR 0x5a915a
67#define LCD_BL_DARKCOLOR 0x000000
68#define LCD_BL_BRIGHTCOLOR 0x82b4fa
69
70#define CONFIG_KEYPAD MPIO_HD300_PAD
71
72/* Define this if you do software codec */
73#define CONFIG_CODEC SWCODEC
74
75/* Define this if you have RTC */
76#define CONFIG_RTC RTC_S35390A
77
78#define CONFIG_LCD LCD_S1D15E06
79
80/* Define this for LCD backlight available */
81#define HAVE_BACKLIGHT
82#define HAVE_BACKLIGHT_BRIGHTNESS
83#define MIN_BRIGHTNESS_SETTING 0
84#define MAX_BRIGHTNESS_SETTING 31
85#define DEFAULT_BRIGHTNESS_SETTING 20
86
87
88/* define this if you have a disk storage, i.e. something
89 that needs spinups and can cause skips when shaked */
90#define HAVE_DISK_STORAGE
91
92/* Define this if you have a software controlled poweroff */
93#define HAVE_SW_POWEROFF
94
95/* The number of bytes reserved for loadable codecs */
96#define CODEC_SIZE 0x100000
97
98/* The number of bytes reserved for loadable plugins */
99#define PLUGIN_BUFFER_SIZE 0x80000
100
101/* FM Tuner
102 * turn off for now
103 */
104#define CONFIG_TUNER TEA5767
105#define CONFIG_TUNER_XTAL 32768
106
107
108/* we have WM8750 codec in I2S master mode */
109#define HAVE_WM8750
110
111/* clocking setup based on 11.2896 MHz master clock
112 * provided to the codec by MCU
113 * WM8750L Datasheet Table 40, page 46
114 */
115#define CODEC_SRCTRL_11025HZ (0x18 << 1)
116#define CODEC_SRCTRL_22050HZ (0x1A << 1)
117#define CODEC_SRCTRL_44100HZ (0x10 << 1)
118#define CODEC_SRCTRL_88200HZ (0x1E << 1)
119
120/* copied from HD200 for now needs calibration */
121#define BATTERY_TYPES_COUNT 1
122#define BATTERY_CAPACITY_DEFAULT 850 /* this is wild guess */
123#define BATTERY_CAPACITY_MIN 800 /* min. capacity selectable */
124#define BATTERY_CAPACITY_MAX 2500 /* max. capacity selectable */
125#define BATTERY_CAPACITY_INC 50 /* capacity increment */
126
127#define CURRENT_NORMAL 68 /* measured during playback unboosted */
128#define CURRENT_BACKLIGHT 24 /* measured */
129#define CURRENT_RECORD 40 /* additional current while recording */
130#define CURRENT_ATA 100 /* additional current when ata system is ON */
131/* #define CURRENT_REMOTE 0 additional current when remote connected */
132
133#define CONFIG_CHARGING CHARGING_MONITOR
134
135#ifndef SIMULATOR
136
137/* Define this if your LCD can set contrast */
138#define HAVE_LCD_CONTRAST
139
140/* Define this if you have a Motorola SCF5249 */
141#define CONFIG_CPU MCF5249
142
143/* Define this if you want to use coldfire's i2c interface */
144#define CONFIG_I2C I2C_COLDFIRE
145
146/* define this if the hardware can be powered off while charging */
147/* #define HAVE_POWEROFF_WHILE_CHARGING */
148
149/* The size of the flash ROM */
150#define FLASH_SIZE 0x200000
151
152/* Define this to the CPU frequency */
153#define CPU_FREQ 11289600
154
155/* Define this if you have ATA power-off control */
156#define HAVE_ATA_POWER_OFF
157
158/* Offset ( in the firmware file's header ) to the file length */
159#define FIRMWARE_OFFSET_FILE_LENGTH 0
160
161/* Offset ( in the firmware file's header ) to the file CRC */
162#define FIRMWARE_OFFSET_FILE_CRC 0
163
164/* Offset ( in the firmware file's header ) to the real data */
165#define FIRMWARE_OFFSET_FILE_DATA 8
166
167/* Define this if you have adjustable CPU frequency */
168#define HAVE_ADJUSTABLE_CPU_FREQ
169
170#define BOOTFILE_EXT "mpio"
171#define BOOTFILE "rockbox." BOOTFILE_EXT
172#define BOOTDIR "/.rockbox"
173
174#define BOOTLOADER_ENTRYPOINT 0x001F0000
175#define FLASH_ENTRYPOINT 0x00001000
176#define FLASH_MAGIC 0xfbfbfbf1
177
178#endif /* SIMULATOR */
179
180/** Port-specific settings **/
181
182#define MIN_CONTRAST_SETTING 20
183#define MAX_CONTRAST_SETTING 32
184#define DEFAULT_CONTRAST_SETTING 24
185
186#define IRAM_LCDFRAMEBUFFER IBSS_ATTR /* put the lcd frame buffer in IRAM */