Re-add the lseek to the beginning of the file which was accidentally removed.
[kugel-rb.git] / firmware / export / config / iriverh300.h
blobc4224d03c6b5439da99d19563cf3240f608e3f78
1 #define TARGET_TREE /* this target is using the target tree system */
2 /*
3 * This config file is for iriver H320, H340
4 */
5 #define IRIVER_H300_SERIES 1
7 #define MODEL_NAME "iriver H300 series"
9 /* For Rolo and boot loader */
10 #define MODEL_NUMBER 2
12 /* define this if you use an ATA controller */
13 #define CONFIG_STORAGE STORAGE_ATA
15 /*define this if the ATA controller and method of USB access support LBA48 */
16 #define HAVE_LBA48
18 /* define this if you have a bitmap LCD display */
19 #define HAVE_LCD_BITMAP
21 /* define this if you have a colour LCD */
22 #define HAVE_LCD_COLOR
24 /* define this if you want album art for this target */
25 #define HAVE_ALBUMART
27 /* define this to enable bitmap scaling */
28 #define HAVE_BMP_SCALING
30 /* define this to enable JPEG decoding */
31 #define HAVE_JPEG
33 /* define this if you can flip your LCD */
34 #define HAVE_LCD_FLIP
36 /* define this if you have access to the quickscreen */
37 #define HAVE_QUICKSCREEN
38 /* define this if you have access to the pitchscreen */
39 #define HAVE_PITCHSCREEN
41 /* define this if you would like tagcache to build on this target */
42 #define HAVE_TAGCACHE
44 /* LCD dimensions */
45 #define LCD_WIDTH 220
46 #define LCD_HEIGHT 176
47 #define LCD_DEPTH 16 /* 65k colours */
48 #define LCD_PIXELFORMAT RGB565 /* rgb565 */
50 /* remote LCD */
51 #define LCD_REMOTE_WIDTH 128
52 #define LCD_REMOTE_HEIGHT 64
53 #define LCD_REMOTE_DEPTH 1
55 #define LCD_REMOTE_PIXELFORMAT VERTICAL_PACKING
57 /* Remote display colours, for screenshots and sim (0xRRGGBB) */
58 #define LCD_REMOTE_DARKCOLOR 0x000000
59 #define LCD_REMOTE_BRIGHTCOLOR 0x5a915a
60 #define LCD_REMOTE_BL_DARKCOLOR 0x000000
61 #define LCD_REMOTE_BL_BRIGHTCOLOR 0x82b4fa
63 #define CONFIG_KEYPAD IRIVER_H300_PAD
65 #define CONFIG_REMOTE_KEYPAD H300_REMOTE
67 /* Define this to enable morse code input */
68 #define HAVE_MORSE_INPUT
70 /* Define this if you do software codec */
71 #define CONFIG_CODEC SWCODEC
73 /* define this if you have a real-time clock */
74 #define CONFIG_RTC RTC_PCF50606
76 /* define this if you have a disk storage, i.e. something
77 that needs spinups and can cause skips when shaked */
78 #define HAVE_DISK_STORAGE
80 /* Define this if you have an remote lcd */
81 #define HAVE_REMOTE_LCD
83 /* Define if we have a hardware defect that causes ticking on the audio line */
84 #define HAVE_REMOTE_LCD_TICKING
86 /* Define this for LCD backlight available */
87 #define HAVE_BACKLIGHT
88 #define HAVE_BACKLIGHT_BRIGHTNESS
89 /* Which backlight fading type? */
90 #define CONFIG_BACKLIGHT_FADING BACKLIGHT_FADING_SW_HW_REG
91 /* Define this if your LCD can be enabled/disabled */
92 #define HAVE_LCD_ENABLE
94 /* Define this if you have a software controlled poweroff */
95 #define HAVE_SW_POWEROFF
97 /* The number of bytes reserved for loadable codecs */
98 #define CODEC_SIZE 0x100000
100 /* The number of bytes reserved for loadable plugins */
101 #define PLUGIN_BUFFER_SIZE 0x80000
103 #define AB_REPEAT_ENABLE
105 #define CONFIG_TUNER TEA5767
106 #define CONFIG_TUNER_XTAL 32768
108 #define HAVE_UDA1380
110 /* define this if you have recording possibility */
111 #define HAVE_RECORDING
113 #define HAVE_RECORDING_HISTOGRAM
115 /* Define bitmask of input sources - recordable bitmask can be defined
116 explicitly if different */
117 #define INPUT_SRC_CAPS (SRC_CAP_MIC | SRC_CAP_LINEIN | SRC_CAP_FMRADIO)
119 /* define hardware samples rate caps mask */
120 #define HW_SAMPR_CAPS (SAMPR_CAP_88 | SAMPR_CAP_44 | SAMPR_CAP_22 | SAMPR_CAP_11)
122 /* define the bitmask of recording sample rates */
123 #define REC_SAMPR_CAPS (SAMPR_CAP_44 | SAMPR_CAP_22 | SAMPR_CAP_11)
125 #define HAVE_AGC
127 #define BATTERY_CAPACITY_DEFAULT 1300 /* default battery capacity */
128 #define BATTERY_CAPACITY_MIN 1300 /* min. capacity selectable */
129 #define BATTERY_CAPACITY_MAX 3200 /* max. capacity selectable */
130 #define BATTERY_CAPACITY_INC 50 /* capacity increment */
131 #define BATTERY_TYPES_COUNT 1 /* only one type */
133 /* Hardware controlled charging with monitoring */
134 #define CONFIG_CHARGING CHARGING_MONITOR
136 /* define this if the unit can be powered or charged via USB */
137 #define HAVE_USB_POWER
139 /* define current usage levels */
140 #define CURRENT_NORMAL 80 /* 16h playback on 1300mAh battery from IriverRuntime wiki page */
141 #define CURRENT_BACKLIGHT 23 /* FIXME: This needs to be measured, copied from H100 */
142 #define CURRENT_RECORD 110 /* additional current while recording */
143 #define CURRENT_MAX_CHG 650 /* maximum charging current */
144 #define CURRENT_REMOTE 8 /* additional current when remote connected */
146 /* define this if the unit can have USB charging disabled by user -
147 * if USB/MAIN power is discernable and hardware doesn't compel charging */
148 #define HAVE_USB_CHARGING_ENABLE
150 /* Define this if you have a Motorola SCF5249 */
151 #define CONFIG_CPU MCF5249
153 /* Define this if you want to use coldfire's i2c interface */
154 #define CONFIG_I2C I2C_COLDFIRE
156 /* The size of the flash ROM */
157 #define FLASH_SIZE 0x400000
159 /* Define this to the CPU frequency */
160 #define CPU_FREQ 11289600
162 /* Define this if you have ATA power-off control */
163 #define HAVE_ATA_POWER_OFF
165 #define CONFIG_LCD LCD_H300
167 /* Offset ( in the firmware file's header ) to the file CRC */
168 #define FIRMWARE_OFFSET_FILE_CRC 0
170 /* Offset ( in the firmware file's header ) to the real data */
171 #define FIRMWARE_OFFSET_FILE_DATA 8
173 /* USB On-the-go */
174 #define CONFIG_USBOTG USBOTG_ISP1362
176 /* Define this if you have adjustable CPU frequency */
177 #define HAVE_ADJUSTABLE_CPU_FREQ
179 #define BOOTFILE_EXT "iriver"
180 #define BOOTFILE "rockbox." BOOTFILE_EXT
181 #define BOOTDIR "/.rockbox"
183 #define BOOTLOADER_ENTRYPOINT 0x001F0000
184 #define FLASH_ENTRYPOINT 0x00001000
185 #define FLASH_MAGIC 0xfbfbfbf1
187 /* Define this if there is an EEPROM chip */
188 #define HAVE_EEPROM
190 /* Define this for FM radio input available */
191 #define HAVE_FMRADIO_IN
193 /** Port-specific settings **/
195 /* Main LCD contrast range and defaults */
196 #define MIN_CONTRAST_SETTING 5
197 #define MAX_CONTRAST_SETTING 63
198 #define DEFAULT_CONTRAST_SETTING 40
200 /* Main LCD backlight brightness range and defaults */
201 /* accepts 0..15 but note that 0 and 1 give a black display on H300! */
202 #define MIN_BRIGHTNESS_SETTING 2 /* 2/16 (12.50%) */
203 #define MAX_BRIGHTNESS_SETTING 15 /* 15/16 (93.75%) */
204 #define DEFAULT_BRIGHTNESS_SETTING 9 /* 9/16 (56.25%) */
206 /* Remote LCD contrast range and defaults */
207 #define MIN_REMOTE_CONTRAST_SETTING 5
208 #define MAX_REMOTE_CONTRAST_SETTING 63
209 #define DEFAULT_REMOTE_CONTRAST_SETTING 42
211 /* Define this if a programmable hotkey is mapped */
212 #define HAVE_HOTKEY