TARGET_TREE is not needed anymore
[maemo-rb.git] / firmware / export / config / iriverh300.h
blobc4cb7d1aac86d40ea162a08e94683b85f76c5e9e
1 /*
2 * This config file is for iriver H320, H340
3 */
4 #define IRIVER_H300_SERIES 1
6 #define MODEL_NAME "iriver H300 series"
8 /* For Rolo and boot loader */
9 #define MODEL_NUMBER 2
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 have a colour LCD */
21 #define HAVE_LCD_COLOR
23 /* define this if you want album art for this target */
24 #define HAVE_ALBUMART
26 /* define this to enable bitmap scaling */
27 #define HAVE_BMP_SCALING
29 /* define this to enable JPEG decoding */
30 #define HAVE_JPEG
32 /* define this if you can flip your LCD */
33 #define HAVE_LCD_FLIP
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 220
45 #define LCD_HEIGHT 176
46 #define LCD_DEPTH 16 /* 65k colours */
47 #define LCD_PIXELFORMAT RGB565 /* rgb565 */
49 /* remote LCD */
50 #define LCD_REMOTE_WIDTH 128
51 #define LCD_REMOTE_HEIGHT 64
52 #define LCD_REMOTE_DEPTH 1
54 #define LCD_REMOTE_PIXELFORMAT VERTICAL_PACKING
56 /* Remote display colours, for screenshots and sim (0xRRGGBB) */
57 #define LCD_REMOTE_DARKCOLOR 0x000000
58 #define LCD_REMOTE_BRIGHTCOLOR 0x5a915a
59 #define LCD_REMOTE_BL_DARKCOLOR 0x000000
60 #define LCD_REMOTE_BL_BRIGHTCOLOR 0x82b4fa
62 #define CONFIG_KEYPAD IRIVER_H300_PAD
64 #define CONFIG_REMOTE_KEYPAD H300_REMOTE
66 /* Define this to enable morse code input */
67 #define HAVE_MORSE_INPUT
69 /* Define this if you do software codec */
70 #define CONFIG_CODEC SWCODEC
72 /* define this if you have a real-time clock */
73 #define CONFIG_RTC RTC_PCF50606
75 /* define this if you have a disk storage, i.e. something
76 that needs spinups and can cause skips when shaked */
77 #define HAVE_DISK_STORAGE
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 this for LCD backlight available */
86 #define HAVE_BACKLIGHT
87 #define HAVE_BACKLIGHT_BRIGHTNESS
88 /* Which backlight fading type? */
89 #define CONFIG_BACKLIGHT_FADING BACKLIGHT_FADING_SW_HW_REG
90 /* Define this if your LCD can be enabled/disabled */
91 #define HAVE_LCD_ENABLE
93 /* Define this if you have a software controlled poweroff */
94 #define HAVE_SW_POWEROFF
96 /* The number of bytes reserved for loadable codecs */
97 #define CODEC_SIZE 0x100000
99 /* The number of bytes reserved for loadable plugins */
100 #define PLUGIN_BUFFER_SIZE 0x80000
102 #define AB_REPEAT_ENABLE
104 #define CONFIG_TUNER TEA5767
105 #define CONFIG_TUNER_XTAL 32768
107 #define HAVE_UDA1380
109 /* define this if you have recording possibility */
110 #define HAVE_RECORDING
112 #define HAVE_HISTOGRAM
114 /* Define bitmask of input sources - recordable bitmask can be defined
115 explicitly if different */
116 #define INPUT_SRC_CAPS (SRC_CAP_MIC | SRC_CAP_LINEIN | SRC_CAP_FMRADIO)
118 /* define hardware samples rate caps mask */
119 #define HW_SAMPR_CAPS (SAMPR_CAP_88 | SAMPR_CAP_44 | SAMPR_CAP_22 | SAMPR_CAP_11)
121 /* define the bitmask of recording sample rates */
122 #define REC_SAMPR_CAPS (SAMPR_CAP_44 | SAMPR_CAP_22 | SAMPR_CAP_11)
124 #define HAVE_AGC
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 with monitoring */
135 #define CONFIG_CHARGING CHARGING_MONITOR
137 /* define this if the unit can be powered or charged via USB */
138 #define HAVE_USB_POWER
140 /* define current usage levels */
141 #define CURRENT_NORMAL 80 /* 16h playback on 1300mAh battery from IriverRuntime wiki page */
142 #define CURRENT_BACKLIGHT 23 /* FIXME: This needs to be measured, copied from H100 */
143 #define CURRENT_RECORD 110 /* additional current while recording */
144 #define CURRENT_MAX_CHG 650 /* maximum charging current */
145 #define CURRENT_REMOTE 8 /* additional current when remote connected */
147 /* define this if the unit can have USB charging disabled by user -
148 * if USB/MAIN power is discernable and hardware doesn't compel charging */
149 #define HAVE_USB_CHARGING_ENABLE
151 /* Define this if you have a Motorola SCF5249 */
152 #define CONFIG_CPU MCF5249
154 /* Define this if you want to use coldfire's i2c interface */
155 #define CONFIG_I2C I2C_COLDFIRE
157 /* The size of the flash ROM */
158 #define FLASH_SIZE 0x400000
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 #define CONFIG_LCD LCD_H300
168 /* Offset ( in the firmware file's header ) to the file CRC */
169 #define FIRMWARE_OFFSET_FILE_CRC 0
171 /* Offset ( in the firmware file's header ) to the real data */
172 #define FIRMWARE_OFFSET_FILE_DATA 8
174 /* USB On-the-go */
175 #define CONFIG_USBOTG USBOTG_ISP1362
177 /* Define this if you have adjustable CPU frequency */
178 #define HAVE_ADJUSTABLE_CPU_FREQ
180 #define BOOTFILE_EXT "iriver"
181 #define BOOTFILE "rockbox." BOOTFILE_EXT
182 #define BOOTDIR "/.rockbox"
184 #define BOOTLOADER_ENTRYPOINT 0x001F0000
185 #define FLASH_ENTRYPOINT 0x00001000
186 #define FLASH_MAGIC 0xfbfbfbf1
188 /* Define this if there is an EEPROM chip */
189 #define HAVE_EEPROM
191 /* Define this for FM radio input available */
192 #define HAVE_FMRADIO_IN
194 /** Port-specific settings **/
196 /* Main LCD contrast range and defaults */
197 #define MIN_CONTRAST_SETTING 5
198 #define MAX_CONTRAST_SETTING 63
199 #define DEFAULT_CONTRAST_SETTING 40
201 /* Main LCD backlight brightness range and defaults */
202 /* accepts 0..15 but note that 0 and 1 give a black display on H300! */
203 #define MIN_BRIGHTNESS_SETTING 2 /* 2/16 (12.50%) */
204 #define MAX_BRIGHTNESS_SETTING 15 /* 15/16 (93.75%) */
205 #define DEFAULT_BRIGHTNESS_SETTING 9 /* 9/16 (56.25%) */
207 /* Remote LCD contrast range and defaults */
208 #define MIN_REMOTE_CONTRAST_SETTING 5
209 #define MAX_REMOTE_CONTRAST_SETTING 63
210 #define DEFAULT_REMOTE_CONTRAST_SETTING 42
212 /* Define this if a programmable hotkey is mapped */
213 #define HAVE_HOTKEY