1 #define TARGET_TREE /* this target is using the target tree system */
3 * This config file is for iriver H320, H340
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 */
24 /* define this if you can flip your LCD */
27 /* define this if you have access to the quickscreen */
28 #define HAVE_QUICKSCREEN
29 /* define this if you have access to the pitchscreen */
30 #define HAVE_PITCHSCREEN
32 /* define this if you would like tagcache to build on this target */
37 #define LCD_HEIGHT 176
38 #define LCD_DEPTH 16 /* 65k colours */
39 #define LCD_PIXELFORMAT RGB565 /* rgb565 */
42 #define LCD_REMOTE_WIDTH 128
43 #define LCD_REMOTE_HEIGHT 64
44 #define LCD_REMOTE_DEPTH 1
46 #define LCD_REMOTE_PIXELFORMAT VERTICAL_PACKING
48 /* Remote display colours, for screenshots and sim (0xRRGGBB) */
49 #define LCD_REMOTE_DARKCOLOR 0x000000
50 #define LCD_REMOTE_BRIGHTCOLOR 0x5a915a
51 #define LCD_REMOTE_BL_DARKCOLOR 0x000000
52 #define LCD_REMOTE_BL_BRIGHTCOLOR 0x82b4fa
54 #define CONFIG_KEYPAD IRIVER_H300_PAD
56 #define CONFIG_REMOTE_KEYPAD H300_REMOTE
58 /* Define this if you do software codec */
59 #define CONFIG_CODEC SWCODEC
61 /* define this if you have a real-time clock */
62 #define CONFIG_RTC RTC_PCF50606
64 /* define this if you have a disk storage, i.e. something
65 that needs spinups and can cause skips when shaked */
66 #define HAVE_DISK_STORAGE
68 /* Define this if you have an remote lcd */
69 #define HAVE_REMOTE_LCD
71 /* Define if we have a hardware defect that causes ticking on the audio line */
72 #define HAVE_REMOTE_LCD_TICKING
74 /* Define this for LCD backlight available */
75 #define HAVE_BACKLIGHT
76 #define HAVE_BACKLIGHT_BRIGHTNESS
77 /* Which backlight fading type? */
78 #define CONFIG_BACKLIGHT_FADING BACKLIGHT_FADING_SW_HW_REG
80 /* Define this if you have a software controlled poweroff */
81 #define HAVE_SW_POWEROFF
83 /* The number of bytes reserved for loadable codecs */
84 #define CODEC_SIZE 0x100000
86 /* The number of bytes reserved for loadable plugins */
87 #define PLUGIN_BUFFER_SIZE 0x80000
89 #define AB_REPEAT_ENABLE 1
91 #define CONFIG_TUNER TEA5767
92 #define CONFIG_TUNER_XTAL 32768
96 /* define this if you have recording possibility */
97 #define HAVE_RECORDING
99 /* Define bitmask of input sources - recordable bitmask can be defined
100 explicitly if different */
101 #define INPUT_SRC_CAPS (SRC_CAP_MIC | SRC_CAP_LINEIN | SRC_CAP_FMRADIO)
103 /* define hardware samples rate caps mask */
104 #define HW_SAMPR_CAPS (SAMPR_CAP_88 | SAMPR_CAP_44 | SAMPR_CAP_22 | SAMPR_CAP_11)
106 /* define the bitmask of recording sample rates */
107 #define REC_SAMPR_CAPS (SAMPR_CAP_44 | SAMPR_CAP_22 | SAMPR_CAP_11)
111 #define BATTERY_CAPACITY_DEFAULT 1300 /* default battery capacity */
112 #define BATTERY_CAPACITY_MIN 1300 /* min. capacity selectable */
113 #define BATTERY_CAPACITY_MAX 3200 /* max. capacity selectable */
114 #define BATTERY_CAPACITY_INC 50 /* capacity increment */
115 #define BATTERY_TYPES_COUNT 1 /* only one type */
117 /* Hardware controlled charging with monitoring */
118 #define CONFIG_CHARGING CHARGING_MONITOR
120 /* define this if the unit can be powered or charged via USB */
121 #define HAVE_USB_POWER
123 /* define current usage levels */
124 #define CURRENT_NORMAL 80 /* 16h playback on 1300mAh battery from IriverRuntime wiki page */
125 #define CURRENT_BACKLIGHT 23 /* FIXME: This needs to be measured, copied from H100 */
126 #define CURRENT_RECORD 110 /* additional current while recording */
127 #define CURRENT_MAX_CHG 650 /* maximum charging current */
128 #define CURRENT_REMOTE 8 /* additional current when remote connected */
130 /* define this if the unit can have USB charging disabled by user -
131 * if USB/MAIN power is discernable and hardware doesn't compel charging */
132 #define HAVE_USB_CHARGING_ENABLE
136 /* Define this if your LCD can be enabled/disabled */
137 #define HAVE_LCD_ENABLE
139 /* Define this if you have a Motorola SCF5249 */
140 #define CONFIG_CPU MCF5249
142 /* Define this if you want to use coldfire's i2c interface */
143 #define CONFIG_I2C I2C_COLDFIRE
145 /* The size of the flash ROM */
146 #define FLASH_SIZE 0x400000
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 /* Virtual LED (icon) */
155 #define CONFIG_LED LED_VIRTUAL
157 #define CONFIG_LCD LCD_H300
159 /* Offset ( in the firmware file's header ) to the file CRC */
160 #define FIRMWARE_OFFSET_FILE_CRC 0
162 /* Offset ( in the firmware file's header ) to the real data */
163 #define FIRMWARE_OFFSET_FILE_DATA 8
166 #define CONFIG_USBOTG USBOTG_ISP1362
168 /* Define this if you have adjustable CPU frequency */
169 #define HAVE_ADJUSTABLE_CPU_FREQ
171 #define BOOTFILE_EXT "iriver"
172 #define BOOTFILE "rockbox." BOOTFILE_EXT
173 #define BOOTDIR "/.rockbox"
175 #define BOOTLOADER_ENTRYPOINT 0x001F0000
176 #define FLASH_ENTRYPOINT 0x00001000
177 #define FLASH_MAGIC 0xfbfbfbf1
179 /* Define this if there is an EEPROM chip */
182 #endif /* SIMULATOR */
184 /* Define this for FM radio input available */
185 #define HAVE_FMRADIO_IN
187 /** Port-specific settings **/
189 /* Main LCD contrast range and defaults */
190 #define MIN_CONTRAST_SETTING 5
191 #define MAX_CONTRAST_SETTING 63
192 #define DEFAULT_CONTRAST_SETTING 40
194 /* Main LCD backlight brightness range and defaults */
195 /* accepts 0..15 but note that 0 and 1 give a black display on H300! */
196 #define MIN_BRIGHTNESS_SETTING 2 /* 2/16 (12.50%) */
197 #define MAX_BRIGHTNESS_SETTING 15 /* 15/16 (93.75%) */
198 #define DEFAULT_BRIGHTNESS_SETTING 9 /* 9/16 (56.25%) */
200 /* Remote LCD contrast range and defaults */
201 #define MIN_REMOTE_CONTRAST_SETTING 5
202 #define MAX_REMOTE_CONTRAST_SETTING 63
203 #define DEFAULT_REMOTE_CONTRAST_SETTING 42