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