TARGET_TREE is not needed anymore
[maemo-rb.git] / firmware / export / config / mpiohd200.h
blobd40e39104dacb430c6820a05a29f65fe240e9ccb
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 have access to the pitchscreen */
51 #define HAVE_PITCHSCREEN
53 /* define this if you would like tagcache to build on this target */
54 #define HAVE_TAGCACHE
56 /* LCD dimensions */
57 #define LCD_WIDTH 128
58 #define LCD_HEIGHT 128
59 #define LCD_DEPTH 2
61 #define LCD_PIXELFORMAT VERTICAL_INTERLEAVED
63 /* Display colours, for screenshots and sim (0xRRGGBB) */
64 #define LCD_DARKCOLOR 0x000000
65 #define LCD_BRIGHTCOLOR 0x5a915a
66 #define LCD_BL_DARKCOLOR 0x000000
67 #define LCD_BL_BRIGHTCOLOR 0x82b4fa
69 #define CONFIG_KEYPAD MPIO_HD200_PAD
71 /* Define this if you do software codec */
72 #define CONFIG_CODEC SWCODEC
74 #define CONFIG_LCD LCD_TL0350A
75 #define HAVE_LCD_SHUTDOWN
77 /* Define this for LCD backlight available */
78 #define HAVE_BACKLIGHT
79 #define HAVE_BACKLIGHT_BRIGHTNESS
80 #define MIN_BRIGHTNESS_SETTING 0
81 #define MAX_BRIGHTNESS_SETTING 31
82 #define DEFAULT_BRIGHTNESS_SETTING 20
85 /* define this if you have a disk storage, i.e. something
86 that needs spinups and can cause skips when shaked */
87 #define HAVE_DISK_STORAGE
89 /* Define this if you have a software controlled poweroff */
90 #define HAVE_SW_POWEROFF
92 /* The number of bytes reserved for loadable codecs */
93 #define CODEC_SIZE 0x100000
95 /* The number of bytes reserved for loadable plugins */
96 #define PLUGIN_BUFFER_SIZE 0x80000
98 /* FM Tuner
99 * turn off for now
101 #define CONFIG_TUNER TEA5767
102 #define CONFIG_TUNER_XTAL 32768
105 /* we have WM8750 codec in I2S master mode */
106 #define HAVE_WM8750
108 /* clocking setup based on 11.2896 MHz master clock
109 * provided to the codec by MCU
110 * WM8750L Datasheet Table 40, page 46
112 #define CODEC_SRCTRL_11025HZ (0x18 << 1)
113 #define CODEC_SRCTRL_22050HZ (0x1A << 1)
114 #define CODEC_SRCTRL_44100HZ (0x10 << 1)
115 #define CODEC_SRCTRL_88200HZ (0x1E << 1)
117 #define BATTERY_TYPES_COUNT 1
119 #define CONFIG_BATTERY_MEASURE VOLTAGE_MEASURE
120 #define BATTERY_CAPACITY_DEFAULT 850 /* this is wild guess */
121 #define BATTERY_CAPACITY_MIN 800 /* min. capacity selectable */
122 #define BATTERY_CAPACITY_MAX 2500 /* max. capacity selectable */
123 #define BATTERY_CAPACITY_INC 50 /* capacity increment */
125 #define CURRENT_NORMAL 68 /* measured during playback unboosted */
126 #define CURRENT_BACKLIGHT 24 /* measured */
127 #define CURRENT_RECORD 40 /* additional current while recording */
128 #define CURRENT_ATA 100 /* additional current when ata system is ON */
129 /* #define CURRENT_REMOTE 0 additional current when remote connected */
131 #define CONFIG_CHARGING CHARGING_MONITOR
133 #ifndef SIMULATOR
135 /* Define this if your LCD can set contrast */
136 #define HAVE_LCD_CONTRAST
138 /* Define this if you have a Motorola SCF5249 */
139 #define CONFIG_CPU MCF5249
141 /* Define this if you want to use coldfire's i2c interface */
142 #define CONFIG_I2C I2C_COLDFIRE
144 /* define this if the hardware can be powered off while charging */
145 /* #define HAVE_POWEROFF_WHILE_CHARGING */
147 /* The size of the flash ROM */
148 #define FLASH_SIZE 0x200000
150 /* Define this to the CPU frequency */
151 #define CPU_FREQ 11289600
153 /* Define this if you have ATA power-off control */
154 #define HAVE_ATA_POWER_OFF
156 /* Offset ( in the firmware file's header ) to the file length */
157 #define FIRMWARE_OFFSET_FILE_LENGTH 0
159 /* Offset ( in the firmware file's header ) to the file CRC */
160 #define FIRMWARE_OFFSET_FILE_CRC 0
162 /* Offset ( in the firmware file's header ) to the real data */
163 #define FIRMWARE_OFFSET_FILE_DATA 8
165 /* Define this if you have adjustable CPU frequency */
166 #define HAVE_ADJUSTABLE_CPU_FREQ
168 #define BOOTFILE_EXT "mpio"
169 #define BOOTFILE "rockbox." BOOTFILE_EXT
170 #define BOOTDIR "/.rockbox"
172 #define BOOTLOADER_ENTRYPOINT 0x001F0000
173 #define FLASH_ENTRYPOINT 0x00001000
174 #define FLASH_MAGIC 0xfbfbfbf1
176 #endif /* SIMULATOR */
178 /** Port-specific settings **/
180 /* Main LCD contrast range and defaults taken from OF*/
181 #define MIN_CONTRAST_SETTING 24
182 #define MAX_CONTRAST_SETTING 63
183 #define DEFAULT_CONTRAST_SETTING 27 /* 0x1B */
185 #define IRAM_LCDFRAMEBUFFER IBSS_ATTR /* put the lcd frame buffer in IRAM */