Manual updates
[kugel-rb.git] / firmware / export / config-h300.h
blobd2348397d2c467151bdc4f9ef8cc16f86f5c54d0
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 you have a bitmap LCD display */
16 #define HAVE_LCD_BITMAP
18 /* define this if you have a colour LCD */
19 #define HAVE_LCD_COLOR
21 /* define this if you want album art for this target */
22 #define HAVE_ALBUMART
24 /* define this to enable bitmap scaling */
25 #define HAVE_BMP_SCALING
27 /* define this to enable JPEG decoding */
28 #define HAVE_JPEG
30 /* define this if you can flip your LCD */
31 #define HAVE_LCD_FLIP
33 /* define this if you have access to the quickscreen */
34 #define HAVE_QUICKSCREEN
35 /* define this if you have access to the pitchscreen */
36 #define HAVE_PITCHSCREEN
38 /* define this if you would like tagcache to build on this target */
39 #define HAVE_TAGCACHE
41 /* LCD dimensions */
42 #define LCD_WIDTH 220
43 #define LCD_HEIGHT 176
44 #define LCD_DEPTH 16 /* 65k colours */
45 #define LCD_PIXELFORMAT RGB565 /* rgb565 */
47 /* remote LCD */
48 #define LCD_REMOTE_WIDTH 128
49 #define LCD_REMOTE_HEIGHT 64
50 #define LCD_REMOTE_DEPTH 1
52 #define LCD_REMOTE_PIXELFORMAT VERTICAL_PACKING
54 /* Remote display colours, for screenshots and sim (0xRRGGBB) */
55 #define LCD_REMOTE_DARKCOLOR 0x000000
56 #define LCD_REMOTE_BRIGHTCOLOR 0x5a915a
57 #define LCD_REMOTE_BL_DARKCOLOR 0x000000
58 #define LCD_REMOTE_BL_BRIGHTCOLOR 0x82b4fa
60 #define CONFIG_KEYPAD IRIVER_H300_PAD
62 #define CONFIG_REMOTE_KEYPAD H300_REMOTE
64 /* Define this to enable morse code input */
65 #define HAVE_MORSE_INPUT
67 /* Define this if you do software codec */
68 #define CONFIG_CODEC SWCODEC
70 /* define this if you have a real-time clock */
71 #define CONFIG_RTC RTC_PCF50606
73 /* define this if you have a disk storage, i.e. something
74 that needs spinups and can cause skips when shaked */
75 #define HAVE_DISK_STORAGE
77 /* Define this if you have an remote lcd */
78 #define HAVE_REMOTE_LCD
80 /* Define if we have a hardware defect that causes ticking on the audio line */
81 #define HAVE_REMOTE_LCD_TICKING
83 /* Define this for LCD backlight available */
84 #define HAVE_BACKLIGHT
85 #define HAVE_BACKLIGHT_BRIGHTNESS
86 /* Which backlight fading type? */
87 #define CONFIG_BACKLIGHT_FADING BACKLIGHT_FADING_SW_HW_REG
88 /* Define this if your LCD can be enabled/disabled */
89 #define HAVE_LCD_ENABLE
91 /* Define this if you have a software controlled poweroff */
92 #define HAVE_SW_POWEROFF
94 /* The number of bytes reserved for loadable codecs */
95 #define CODEC_SIZE 0x100000
97 /* The number of bytes reserved for loadable plugins */
98 #define PLUGIN_BUFFER_SIZE 0x80000
100 #define AB_REPEAT_ENABLE 1
102 #define CONFIG_TUNER TEA5767
103 #define CONFIG_TUNER_XTAL 32768
105 #define HAVE_UDA1380
107 /* define this if you have recording possibility */
108 #define HAVE_RECORDING
110 /* Define bitmask of input sources - recordable bitmask can be defined
111 explicitly if different */
112 #define INPUT_SRC_CAPS (SRC_CAP_MIC | SRC_CAP_LINEIN | SRC_CAP_FMRADIO)
114 /* define hardware samples rate caps mask */
115 #define HW_SAMPR_CAPS (SAMPR_CAP_88 | SAMPR_CAP_44 | SAMPR_CAP_22 | SAMPR_CAP_11)
117 /* define the bitmask of recording sample rates */
118 #define REC_SAMPR_CAPS (SAMPR_CAP_44 | SAMPR_CAP_22 | SAMPR_CAP_11)
120 #define HAVE_AGC
122 #define BATTERY_CAPACITY_DEFAULT 1300 /* default battery capacity */
123 #define BATTERY_CAPACITY_MIN 1300 /* min. capacity selectable */
124 #define BATTERY_CAPACITY_MAX 3200 /* max. capacity selectable */
125 #define BATTERY_CAPACITY_INC 50 /* capacity increment */
126 #define BATTERY_TYPES_COUNT 1 /* only one type */
128 /* Hardware controlled charging with monitoring */
129 #define CONFIG_CHARGING CHARGING_MONITOR
131 /* define this if the unit can be powered or charged via USB */
132 #define HAVE_USB_POWER
134 /* define current usage levels */
135 #define CURRENT_NORMAL 80 /* 16h playback on 1300mAh battery from IriverRuntime wiki page */
136 #define CURRENT_BACKLIGHT 23 /* FIXME: This needs to be measured, copied from H100 */
137 #define CURRENT_RECORD 110 /* additional current while recording */
138 #define CURRENT_MAX_CHG 650 /* maximum charging current */
139 #define CURRENT_REMOTE 8 /* additional current when remote connected */
141 /* define this if the unit can have USB charging disabled by user -
142 * if USB/MAIN power is discernable and hardware doesn't compel charging */
143 #define HAVE_USB_CHARGING_ENABLE
145 /* Define this if you have a Motorola SCF5249 */
146 #define CONFIG_CPU MCF5249
148 /* Define this if you want to use coldfire's i2c interface */
149 #define CONFIG_I2C I2C_COLDFIRE
151 /* The size of the flash ROM */
152 #define FLASH_SIZE 0x400000
154 /* Define this to the CPU frequency */
155 #define CPU_FREQ 11289600
157 /* Define this if you have ATA power-off control */
158 #define HAVE_ATA_POWER_OFF
160 #define CONFIG_LCD LCD_H300
162 /* Offset ( in the firmware file's header ) to the file CRC */
163 #define FIRMWARE_OFFSET_FILE_CRC 0
165 /* Offset ( in the firmware file's header ) to the real data */
166 #define FIRMWARE_OFFSET_FILE_DATA 8
168 /* USB On-the-go */
169 #define CONFIG_USBOTG USBOTG_ISP1362
171 /* Define this if you have adjustable CPU frequency */
172 #define HAVE_ADJUSTABLE_CPU_FREQ
174 #define BOOTFILE_EXT "iriver"
175 #define BOOTFILE "rockbox." BOOTFILE_EXT
176 #define BOOTDIR "/.rockbox"
178 #define BOOTLOADER_ENTRYPOINT 0x001F0000
179 #define FLASH_ENTRYPOINT 0x00001000
180 #define FLASH_MAGIC 0xfbfbfbf1
182 /* Define this if there is an EEPROM chip */
183 #define HAVE_EEPROM
185 /* Define this for FM radio input available */
186 #define HAVE_FMRADIO_IN
188 /** Port-specific settings **/
190 /* Main LCD contrast range and defaults */
191 #define MIN_CONTRAST_SETTING 5
192 #define MAX_CONTRAST_SETTING 63
193 #define DEFAULT_CONTRAST_SETTING 40
195 /* Main LCD backlight brightness range and defaults */
196 /* accepts 0..15 but note that 0 and 1 give a black display on H300! */
197 #define MIN_BRIGHTNESS_SETTING 2 /* 2/16 (12.50%) */
198 #define MAX_BRIGHTNESS_SETTING 15 /* 15/16 (93.75%) */
199 #define DEFAULT_BRIGHTNESS_SETTING 9 /* 9/16 (56.25%) */
201 /* Remote LCD contrast range and defaults */
202 #define MIN_REMOTE_CONTRAST_SETTING 5
203 #define MAX_REMOTE_CONTRAST_SETTING 63
204 #define DEFAULT_REMOTE_CONTRAST_SETTING 42