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 /* For Rolo and boot loader */
10 /* define this if you use an ATA controller */
13 /* define this if you have a bitmap LCD display */
14 #define HAVE_LCD_BITMAP
16 /* define this if you have a colour LCD */
17 #define HAVE_LCD_COLOR
19 /* define this if you want album art for this target */
22 /* define this if you can flip your LCD */
25 /* define this if you have access to the quickscreen */
26 #define HAVE_QUICKSCREEN
27 /* define this if you have access to the pitchscreen */
28 #define HAVE_PITCHSCREEN
30 /* define this if you would like tagcache to build on this target */
35 #define LCD_HEIGHT 176
36 #define LCD_DEPTH 16 /* 65k colours */
37 #define LCD_PIXELFORMAT RGB565 /* rgb565 */
40 #define LCD_REMOTE_WIDTH 128
41 #define LCD_REMOTE_HEIGHT 64
42 #define LCD_REMOTE_DEPTH 1
44 #define LCD_REMOTE_PIXELFORMAT VERTICAL_PACKING
46 #define CONFIG_KEYPAD IRIVER_H300_PAD
48 #define CONFIG_REMOTE_KEYPAD H300_REMOTE
50 /* Define this if you do software codec */
51 #define CONFIG_CODEC SWCODEC
53 /* define this if you have a real-time clock */
54 #define CONFIG_RTC RTC_PCF50606
56 /* Define this if you have an remote lcd */
57 #define HAVE_REMOTE_LCD
59 /* Define if we have a hardware defect that causes ticking on the audio line */
60 #define HAVE_REMOTE_LCD_TICKING
62 /* Define this for LCD backlight available */
63 #define HAVE_BACKLIGHT
64 #define HAVE_BACKLIGHT_BRIGHTNESS
66 /* Define this if you have a software controlled poweroff */
67 #define HAVE_SW_POWEROFF
69 /* The number of bytes reserved for loadable codecs */
70 #define CODEC_SIZE 0x80000
72 /* The number of bytes reserved for loadable plugins */
73 #define PLUGIN_BUFFER_SIZE 0x80000
75 #define AB_REPEAT_ENABLE 1
77 #define CONFIG_TUNER TEA5767
78 #define CONFIG_TUNER_XTAL 32768
82 /* define this if you have recording possibility */
83 #define HAVE_RECORDING
85 /* Define bitmask of input sources - recordable bitmask can be defined
86 explicitly if different */
87 #define INPUT_SRC_CAPS (SRC_CAP_MIC | SRC_CAP_LINEIN | SRC_CAP_FMRADIO)
89 /* define hardware samples rate caps mask */
90 #define HW_SAMPR_CAPS (SAMPR_CAP_88 | SAMPR_CAP_44 | SAMPR_CAP_22 | SAMPR_CAP_11)
92 /* define the bitmask of recording sample rates */
93 #define REC_SAMPR_CAPS (SAMPR_CAP_44 | SAMPR_CAP_22 | SAMPR_CAP_11)
97 #define BATTERY_CAPACITY_DEFAULT 1300 /* default battery capacity */
98 #define BATTERY_CAPACITY_MIN 1300 /* min. capacity selectable */
99 #define BATTERY_CAPACITY_MAX 3200 /* max. capacity selectable */
100 #define BATTERY_CAPACITY_INC 50 /* capacity increment */
101 #define BATTERY_TYPES_COUNT 1 /* only one type */
103 /* Hardware controlled charging with monitoring */
104 #define CONFIG_CHARGING CHARGING_MONITOR
106 /* define this if the unit can be powered or charged via USB */
107 #define HAVE_USB_POWER
111 /* Define this if your LCD can be enabled/disabled */
112 #define HAVE_LCD_ENABLE
114 /* Define this if you have a Motorola SCF5249 */
115 #define CONFIG_CPU MCF5249
117 /* Define this if you want to use coldfire's i2c interface */
118 #define CONFIG_I2C I2C_COLDFIRE
120 /* The size of the flash ROM */
121 #define FLASH_SIZE 0x400000
123 /* Define this to the CPU frequency */
124 #define CPU_FREQ 11289600
126 /* Define this if you have ATA power-off control */
127 #define HAVE_ATA_POWER_OFF
129 /* Virtual LED (icon) */
130 #define CONFIG_LED LED_VIRTUAL
132 #define CONFIG_LCD LCD_H300
134 /* Offset ( in the firmware file's header ) to the file CRC */
135 #define FIRMWARE_OFFSET_FILE_CRC 0
137 /* Offset ( in the firmware file's header ) to the real data */
138 #define FIRMWARE_OFFSET_FILE_DATA 8
141 #define CONFIG_USBOTG USBOTG_ISP1362
143 /* Define this if you have adjustable CPU frequency */
144 #define HAVE_ADJUSTABLE_CPU_FREQ
146 #define BOOTFILE_EXT "iriver"
147 #define BOOTFILE "rockbox." BOOTFILE_EXT
148 #define BOOTDIR "/.rockbox"
150 #define BOOTLOADER_ENTRYPOINT 0x001F0000
151 #define FLASH_ENTRYPOINT 0x00001000
152 #define FLASH_MAGIC 0xfbfbfbf1
154 /* Define this if there is an EEPROM chip */
157 #endif /* SIMULATOR */
159 /* Define this for FM radio input available */
160 #define HAVE_FMRADIO_IN
162 /** Port-specific settings **/
164 /* Main LCD contrast range and defaults */
165 #define MIN_CONTRAST_SETTING 5
166 #define MAX_CONTRAST_SETTING 63
167 #define DEFAULT_CONTRAST_SETTING 40
169 /* Main LCD backlight brightness range and defaults */
170 /* accepts 0..15 but note that 0 and 1 give a black display on H300! */
171 #define MIN_BRIGHTNESS_SETTING 2 /* 2/16 (12.50%) */
172 #define MAX_BRIGHTNESS_SETTING 15 /* 15/16 (93.75%) */
173 #define DEFAULT_BRIGHTNESS_SETTING 9 /* 9/16 (56.25%) */
175 /* Remote LCD contrast range and defaults */
176 #define MIN_REMOTE_CONTRAST_SETTING 5
177 #define MAX_REMOTE_CONTRAST_SETTING 63
178 #define DEFAULT_REMOTE_CONTRAST_SETTING 42