TARGET_TREE is not needed anymore
[maemo-rb.git] / firmware / export / config / iriverh100.h
blobdd50d40f3f087dd7a4da4985140c8f1beec0b2af
1 /*
2 * This config file is for iriver iHP-100, iHP-110, iHP-115
3 */
4 #define IRIVER_H100_SERIES 1
6 #define MODEL_NAME "iriver iHP-100 series"
8 /* For Rolo and boot loader */
9 #define MODEL_NUMBER 1
11 /* define this if you use an ATA controller */
12 #define CONFIG_STORAGE STORAGE_ATA
14 /*define this if the ATA controller and method of USB access support LBA48 */
15 #define HAVE_LBA48
17 /* define this if you have a bitmap LCD display */
18 #define HAVE_LCD_BITMAP
20 /* define this if you want album art for this target */
21 #define HAVE_ALBUMART
23 /* define this to enable bitmap scaling */
24 #define HAVE_BMP_SCALING
26 /* define this to enable JPEG decoding */
27 #define HAVE_JPEG
29 /* define this if you can flip your LCD */
30 #define HAVE_LCD_FLIP
32 /* define this if you can invert the colours on your LCD */
33 #define HAVE_LCD_INVERT
35 /* define this if you have access to the quickscreen */
36 #define HAVE_QUICKSCREEN
37 /* define this if you have access to the pitchscreen */
38 #define HAVE_PITCHSCREEN
40 /* define this if you would like tagcache to build on this target */
41 #define HAVE_TAGCACHE
43 /* LCD dimensions */
44 #define LCD_WIDTH 160
45 #define LCD_HEIGHT 128
46 #define LCD_DEPTH 2
48 #define LCD_PIXELFORMAT VERTICAL_PACKING
50 /* Display colours, for screenshots and sim (0xRRGGBB) */
51 #define LCD_DARKCOLOR 0x000000
52 #define LCD_BRIGHTCOLOR 0x5a915a
53 #define LCD_BL_DARKCOLOR 0x000000
54 #define LCD_BL_BRIGHTCOLOR 0xadd8e6
56 /* remote LCD */
57 #define LCD_REMOTE_WIDTH 128
58 #define LCD_REMOTE_HEIGHT 64
59 #define LCD_REMOTE_DEPTH 1
61 #define LCD_REMOTE_PIXELFORMAT VERTICAL_PACKING
63 /* Remote display colours, for screenshots and sim (0xRRGGBB) */
64 #define LCD_REMOTE_DARKCOLOR 0x000000
65 #define LCD_REMOTE_BRIGHTCOLOR 0x5a915a
66 #define LCD_REMOTE_BL_DARKCOLOR 0x000000
67 #define LCD_REMOTE_BL_BRIGHTCOLOR 0x82b4fa
69 #define CONFIG_KEYPAD IRIVER_H100_PAD
71 #define CONFIG_REMOTE_KEYPAD H100_REMOTE
73 /* Define this to enable morse code input */
74 #define HAVE_MORSE_INPUT
76 /* Define this if you do software codec */
77 #define CONFIG_CODEC SWCODEC
79 /* Define this if you have an remote lcd */
80 #define HAVE_REMOTE_LCD
82 /* Define if we have a hardware defect that causes ticking on the audio line */
83 #define HAVE_REMOTE_LCD_TICKING
85 #define CONFIG_LCD LCD_S1D15E06
87 /* define this if you have a disk storage, i.e. something
88 that needs spinups and can cause skips when shaked */
89 #define HAVE_DISK_STORAGE
91 /* Define this for LCD backlight available */
92 #define HAVE_BACKLIGHT
94 /* We can fade the backlight by using PWM */
95 #define CONFIG_BACKLIGHT_FADING BACKLIGHT_FADING_PWM
97 /* Define this if you have a software controlled poweroff */
98 #define HAVE_SW_POWEROFF
100 /* The number of bytes reserved for loadable codecs */
101 #define CODEC_SIZE 0x100000
103 /* The number of bytes reserved for loadable plugins */
104 #define PLUGIN_BUFFER_SIZE 0x80000
106 #define AB_REPEAT_ENABLE
108 #define CONFIG_TUNER TEA5767
109 #define CONFIG_TUNER_XTAL 32768
111 #define HAVE_UDA1380
113 /* define this if you have recording possibility */
114 #define HAVE_RECORDING
116 /* define hardware samples rate caps mask */
117 #define HW_SAMPR_CAPS (SAMPR_CAP_88 | SAMPR_CAP_44 | SAMPR_CAP_22 | SAMPR_CAP_11)
119 /* define the bitmask of recording sample rates */
120 #define REC_SAMPR_CAPS (SAMPR_CAP_44 | SAMPR_CAP_22 | SAMPR_CAP_11)
122 #define HAVE_AGC
124 #define HAVE_HISTOGRAM
126 #define BATTERY_CAPACITY_DEFAULT 1300 /* default battery capacity */
127 #define BATTERY_CAPACITY_MIN 1300 /* min. capacity selectable */
128 #define BATTERY_CAPACITY_MAX 3200 /* max. capacity selectable */
129 #define BATTERY_CAPACITY_INC 50 /* capacity increment */
130 #define BATTERY_TYPES_COUNT 1 /* only one type */
132 #define CONFIG_BATTERY_MEASURE VOLTAGE_MEASURE
134 /* Hardware controlled charging */
135 #define CONFIG_CHARGING CHARGING_SIMPLE
137 /* define current usage levels */
138 #define CURRENT_NORMAL 80 /* 16h playback on 1300mAh battery */
139 #define CURRENT_BACKLIGHT 23 /* from IriverBattery twiki page */
140 #define CURRENT_SPDIF_OUT 10 /* optical SPDIF output on */
141 #define CURRENT_RECORD 105 /* additional current while recording */
142 #define CURRENT_REMOTE 8 /* additional current when remote connected */
144 /* Define this if you have a Motorola SCF5249 */
145 #define CONFIG_CPU MCF5249
147 /* Define this if you want to use coldfire's i2c interface */
148 #define CONFIG_I2C I2C_COLDFIRE
150 /* Define this if you can run rockbox from flash memory */
151 /* In theory we can, but somebody needs to verify there are no issues. */
152 #define HAVE_FLASHED_ROCKBOX
154 /* define this if the hardware can be powered off while charging */
155 #define HAVE_POWEROFF_WHILE_CHARGING
157 /* The size of the flash ROM */
158 #define FLASH_SIZE 0x200000
160 /* Define this to the CPU frequency */
161 #define CPU_FREQ 11289600
163 /* Define this if you have ATA power-off control */
164 #define HAVE_ATA_POWER_OFF
166 /* Offset ( in the firmware file's header ) to the file CRC */
167 #define FIRMWARE_OFFSET_FILE_CRC 0
169 /* Offset ( in the firmware file's header ) to the real data */
170 #define FIRMWARE_OFFSET_FILE_DATA 8
172 #define HAVE_ATA_LED_CTRL
174 /* Define this if you have adjustable CPU frequency */
175 #define HAVE_ADJUSTABLE_CPU_FREQ
177 #define BOOTFILE_EXT "iriver"
178 #define BOOTFILE "rockbox." BOOTFILE_EXT
179 #define BOOTDIR "/.rockbox"
181 #define BOOTLOADER_ENTRYPOINT 0x001F0000
182 #define FLASH_RAMIMAGE_ENTRY 0x00001000
183 #define FLASH_ROMIMAGE_ENTRY 0x00100000
184 #define FLASH_MAGIC 0xfbfbfbf2
186 /* Define this if there is an EEPROM chip */
187 #define HAVE_EEPROM
189 /* Define this if the EEPROM chip is used */
190 #define HAVE_EEPROM_SETTINGS
192 /* Define bitmask of input sources - recordable bitmask can be defined
193 explicitly if different */
194 #define INPUT_SRC_CAPS (SRC_CAP_MIC | SRC_CAP_LINEIN | \
195 SRC_CAP_FMRADIO | SRC_CAP_SPDIF)
197 /* Define this for S/PDIF output available */
198 #define HAVE_SPDIF_OUT
200 /* Define this if you can control the S/PDIF power */
201 #define HAVE_SPDIF_POWER
202 #define SPDIF_POWER_INVERTED
204 /* Define this for FM radio input available */
205 #define HAVE_FMRADIO_IN
207 /** Port-specific settings **/
209 #define HAVE_LCD_CONTRAST
211 /* Main LCD backlight brightness range and defaults */
212 #define MIN_CONTRAST_SETTING 14 /* White screen a bit higher than this */
213 #define MAX_CONTRAST_SETTING 63 /* Black screen a bit lower than this */
214 #define DEFAULT_CONTRAST_SETTING 27
216 /* Remote LCD contrast range and defaults */
217 #define MIN_REMOTE_CONTRAST_SETTING 5
218 #define MAX_REMOTE_CONTRAST_SETTING 63
219 #define DEFAULT_REMOTE_CONTRAST_SETTING 42
221 #define IRAM_LCDFRAMEBUFFER IBSS_ATTR /* put the lcd frame buffer in IRAM */
223 /* Define this if a programmable hotkey is mapped */
224 #define HAVE_HOTKEY