Prepare new maemo release
[maemo-rb.git] / firmware / export / config / mpiohd200.h
blobec5a0b3bef0b999a3a4a729f8fc29f7a0d8069d2
1 /*
2 * This config file is for MPIO HD200
3 */
5 /* For Rolo and boot loader */
6 #define MODEL_NUMBER 69
8 #define MODEL_NAME "MPIO HD200"
10 /* define this if you use an ATA controller */
11 #define CONFIG_STORAGE STORAGE_ATA
12 #define HAVE_LBA48
13 #define ATA_SWAP_WORDS
15 /* define this if you have recording possibility */
16 #define HAVE_RECORDING
18 /* Define bitmask of input sources - recordable bitmask can be defined
19 * explicitly if different
21 #define INPUT_SRC_CAPS (SRC_CAP_MIC | SRC_CAP_LINEIN | SRC_CAP_FMRADIO)
23 /* define the bitmask of hardware sample rates */
24 #define HW_SAMPR_CAPS (SAMPR_CAP_88 | SAMPR_CAP_44 | SAMPR_CAP_22 | SAMPR_CAP_11)
26 /* define the bitmask of recording sample rates */
27 #define REC_SAMPR_CAPS (SAMPR_CAP_88 | SAMPR_CAP_44 | SAMPR_CAP_22 | SAMPR_CAP_11)
29 /* define this if you have a bitmap LCD display */
30 #define HAVE_LCD_BITMAP
32 /* define this if you want album art for this target */
33 #define HAVE_ALBUMART
35 /* define this to enable bitmap scaling */
36 #define HAVE_BMP_SCALING
38 /* define this to enable JPEG decoding */
39 #define HAVE_JPEG
41 /* define this if you can flip your LCD */
42 #define HAVE_LCD_FLIP
44 /* define this if you can invert the colours on your LCD */
45 #define HAVE_LCD_INVERT
47 /* define this if you have access to the quickscreen */
48 /* #define HAVE_QUICKSCREEN */
50 /* define this if you would like tagcache to build on this target */
51 #define HAVE_TAGCACHE
53 /* LCD dimensions */
54 #define LCD_WIDTH 128
55 #define LCD_HEIGHT 128
56 #define LCD_DEPTH 2
58 #define LCD_PIXELFORMAT VERTICAL_INTERLEAVED
60 /* Display colours, for screenshots and sim (0xRRGGBB) */
61 #define LCD_DARKCOLOR 0x000000
62 #define LCD_BRIGHTCOLOR 0x5a915a
63 #define LCD_BL_DARKCOLOR 0x000000
64 #define LCD_BL_BRIGHTCOLOR 0x82b4fa
66 #define CONFIG_KEYPAD MPIO_HD200_PAD
68 /* Define this if you do software codec */
69 #define CONFIG_CODEC SWCODEC
71 #define CONFIG_LCD LCD_TL0350A
72 #define HAVE_LCD_SHUTDOWN
74 /* Define this for LCD backlight available */
75 #define HAVE_BACKLIGHT
76 #define HAVE_BACKLIGHT_BRIGHTNESS
77 #define MIN_BRIGHTNESS_SETTING 0
78 #define MAX_BRIGHTNESS_SETTING 31
79 #define DEFAULT_BRIGHTNESS_SETTING 20
82 /* define this if you have a disk storage, i.e. something
83 that needs spinups and can cause skips when shaked */
84 #define HAVE_DISK_STORAGE
86 /* Define this if you have a software controlled poweroff */
87 #define HAVE_SW_POWEROFF
89 /* The number of bytes reserved for loadable codecs */
90 #define CODEC_SIZE 0x100000
92 /* The number of bytes reserved for loadable plugins */
93 #define PLUGIN_BUFFER_SIZE 0x80000
95 /* FM Tuner
96 * turn off for now
98 #define CONFIG_TUNER TEA5767
99 #define CONFIG_TUNER_XTAL 32768
102 /* we have WM8750 codec in I2S master mode */
103 #define HAVE_WM8750
105 /* clocking setup based on 11.2896 MHz master clock
106 * provided to the codec by MCU
107 * WM8750L Datasheet Table 40, page 46
109 #define CODEC_SRCTRL_11025HZ (0x18 << 1)
110 #define CODEC_SRCTRL_22050HZ (0x1A << 1)
111 #define CODEC_SRCTRL_44100HZ (0x10 << 1)
112 #define CODEC_SRCTRL_88200HZ (0x1E << 1)
114 #define BATTERY_TYPES_COUNT 1
116 #define CONFIG_BATTERY_MEASURE VOLTAGE_MEASURE
117 #define BATTERY_CAPACITY_DEFAULT 850 /* this is wild guess */
118 #define BATTERY_CAPACITY_MIN 800 /* min. capacity selectable */
119 #define BATTERY_CAPACITY_MAX 2500 /* max. capacity selectable */
120 #define BATTERY_CAPACITY_INC 50 /* capacity increment */
122 #define CURRENT_NORMAL 68 /* measured during playback unboosted */
123 #define CURRENT_BACKLIGHT 24 /* measured */
124 #define CURRENT_RECORD 40 /* additional current while recording */
125 #define CURRENT_ATA 100 /* additional current when ata system is ON */
126 /* #define CURRENT_REMOTE 0 additional current when remote connected */
128 #define CONFIG_CHARGING CHARGING_MONITOR
130 #ifndef SIMULATOR
132 /* Define this if your LCD can set contrast */
133 #define HAVE_LCD_CONTRAST
135 /* Define this if you have a Motorola SCF5249 */
136 #define CONFIG_CPU MCF5249
138 /* Define this if you want to use coldfire's i2c interface */
139 #define CONFIG_I2C I2C_COLDFIRE
141 /* define this if the hardware can be powered off while charging */
142 /* #define HAVE_POWEROFF_WHILE_CHARGING */
144 /* The size of the flash ROM */
145 #define FLASH_SIZE 0x200000
147 /* Define this to the CPU frequency */
148 #define CPU_FREQ 11289600
150 /* Define this if you have ATA power-off control */
151 #define HAVE_ATA_POWER_OFF
153 /* Offset ( in the firmware file's header ) to the file length */
154 #define FIRMWARE_OFFSET_FILE_LENGTH 0
156 /* Offset ( in the firmware file's header ) to the file CRC */
157 #define FIRMWARE_OFFSET_FILE_CRC 0
159 /* Offset ( in the firmware file's header ) to the real data */
160 #define FIRMWARE_OFFSET_FILE_DATA 8
162 /* Define this if you have adjustable CPU frequency */
163 #define HAVE_ADJUSTABLE_CPU_FREQ
165 #define BOOTFILE_EXT "mpio"
166 #define BOOTFILE "rockbox." BOOTFILE_EXT
167 #define BOOTDIR "/.rockbox"
169 #define BOOTLOADER_ENTRYPOINT 0x001F0000
170 #define FLASH_ENTRYPOINT 0x00001000
171 #define FLASH_MAGIC 0xfbfbfbf1
173 #endif /* SIMULATOR */
175 /** Port-specific settings **/
177 /* Main LCD contrast range and defaults taken from OF*/
178 #define MIN_CONTRAST_SETTING 24
179 #define MAX_CONTRAST_SETTING 63
180 #define DEFAULT_CONTRAST_SETTING 27 /* 0x1B */
182 #define IRAM_LCDFRAMEBUFFER IBSS_ATTR /* put the lcd frame buffer in IRAM */