HD200: comment out CURRENT_REMOTE as remote doesn't draw additional current (no lcd)
[kugel-rb.git] / firmware / export / config / mpiohd200.h
blob072b4590851622b758ff1b465be907b3f4f70188
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 #define HAVE_RECORDING
19 /* Define bitmask of input sources - recordable bitmask can be defined
20 * explicitly if different
22 #define INPUT_SRC_CAPS (SRC_CAP_MIC | SRC_CAP_LINEIN | SRC_CAP_FMRADIO)
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)
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)
30 /* define this if you have a bitmap LCD display */
31 #define HAVE_LCD_BITMAP
33 /* define this if you want album art for this target */
34 #define HAVE_ALBUMART
36 /* define this to enable bitmap scaling */
37 #define HAVE_BMP_SCALING
39 /* define this to enable JPEG decoding */
40 #define HAVE_JPEG
42 /* define this if you can flip your LCD */
43 #define HAVE_LCD_FLIP
45 /* define this if you can invert the colours on your LCD */
46 #define HAVE_LCD_INVERT
48 /* define this if you have access to the quickscreen */
49 #define HAVE_QUICKSCREEN
51 /* define this if you have access to the pitchscreen */
52 #define HAVE_PITCHSCREEN
54 /* define this if you would like tagcache to build on this target */
55 #define HAVE_TAGCACHE
57 /* LCD dimensions */
58 #define LCD_WIDTH 128
59 #define LCD_HEIGHT 128
60 #define LCD_DEPTH 2
62 #define LCD_PIXELFORMAT VERTICAL_INTERLEAVED
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
70 #define CONFIG_KEYPAD MPIO_HD200_PAD
72 /* Define this if you do software codec */
73 #define CONFIG_CODEC SWCODEC
75 #define CONFIG_LCD LCD_TL0350A
76 #define HAVE_LCD_SHUTDOWN
78 /* Define this for LCD backlight available */
79 #define HAVE_BACKLIGHT
80 #define HAVE_BACKLIGHT_BRIGHTNESS
81 #define MIN_BRIGHTNESS_SETTING 0
82 #define MAX_BRIGHTNESS_SETTING 31
83 #define DEFAULT_BRIGHTNESS_SETTING 20
86 /* define this if you have a disk storage, i.e. something
87 that needs spinups and can cause skips when shaked */
88 #define HAVE_DISK_STORAGE
90 /* Define this if you have a software controlled poweroff */
91 #define HAVE_SW_POWEROFF
93 /* The number of bytes reserved for loadable codecs */
94 #define CODEC_SIZE 0x100000
96 /* The number of bytes reserved for loadable plugins */
97 #define PLUGIN_BUFFER_SIZE 0x80000
99 /* FM Tuner
100 * turn off for now
102 #define CONFIG_TUNER TEA5767
103 #define CONFIG_TUNER_XTAL 32768
106 /* we have WM8750 codec in I2S master mode */
107 #define HAVE_WM8750
109 /* clocking setup based on 11.2896 MHz master clock
110 * provided to the codec by MCU
111 * WM8750L Datasheet Table 40, page 46
113 #define CODEC_SRCTRL_11025HZ (0x18 << 1)
114 #define CODEC_SRCTRL_22050HZ (0x1A << 1)
115 #define CODEC_SRCTRL_44100HZ (0x10 << 1)
116 #define CODEC_SRCTRL_88200HZ (0x1E << 1)
118 #define BATTERY_TYPES_COUNT 1
119 #define BATTERY_CAPACITY_DEFAULT 850 /* this is wild guess */
120 #define BATTERY_CAPACITY_MIN 800 /* min. capacity selectable */
121 #define BATTERY_CAPACITY_MAX 2500 /* max. capacity selectable */
122 #define BATTERY_CAPACITY_INC 50 /* capacity increment */
124 #define CURRENT_NORMAL 68 /* measured during playback unboosted */
125 #define CURRENT_BACKLIGHT 24 /* measured */
126 #define CURRENT_RECORD 40 /* additional current while recording */
127 /* #define CURRENT_REMOTE 0 additional current when remote connected */
129 #define CONFIG_CHARGING CHARGING_MONITOR
131 #ifndef SIMULATOR
133 /* Define this if your LCD can set contrast */
134 #define HAVE_LCD_CONTRAST
136 /* Define this if you have a Motorola SCF5249 */
137 #define CONFIG_CPU MCF5249
139 /* Define this if you want to use coldfire's i2c interface */
140 #define CONFIG_I2C I2C_COLDFIRE
142 /* define this if the hardware can be powered off while charging */
143 /* #define HAVE_POWEROFF_WHILE_CHARGING */
145 /* The size of the flash ROM */
146 #define FLASH_SIZE 0x200000
148 /* Define this to the CPU frequency */
149 #define CPU_FREQ 11289600
151 /* Define this if you have ATA power-off control */
152 #define HAVE_ATA_POWER_OFF
154 /* Offset ( in the firmware file's header ) to the file length */
155 #define FIRMWARE_OFFSET_FILE_LENGTH 0
157 /* Offset ( in the firmware file's header ) to the file CRC */
158 #define FIRMWARE_OFFSET_FILE_CRC 0
160 /* Offset ( in the firmware file's header ) to the real data */
161 #define FIRMWARE_OFFSET_FILE_DATA 8
163 /* Define this if you have adjustable CPU frequency */
164 #define HAVE_ADJUSTABLE_CPU_FREQ
166 #define BOOTFILE_EXT "mpio"
167 #define BOOTFILE "rockbox." BOOTFILE_EXT
168 #define BOOTDIR "/.rockbox"
170 #define BOOTLOADER_ENTRYPOINT 0x001F0000
171 #define FLASH_ENTRYPOINT 0x00001000
172 #define FLASH_MAGIC 0xfbfbfbf1
174 #endif /* SIMULATOR */
176 /** Port-specific settings **/
178 /* Main LCD contrast range and defaults taken from OF*/
179 #define MIN_CONTRAST_SETTING 24
180 #define MAX_CONTRAST_SETTING 63
181 #define DEFAULT_CONTRAST_SETTING 27 /* 0x1B */
183 #define IRAM_LCDFRAMEBUFFER IBSS_ATTR /* put the lcd frame buffer in IRAM */