summaryrefslogtreecommitdiff
path: root/firmware/export/config/iriverh300.h
diff options
context:
space:
mode:
authorBjörn Stenberg <bjorn@haxx.se>2009-12-07 09:03:11 +0000
committerBjörn Stenberg <bjorn@haxx.se>2009-12-07 09:03:11 +0000
commit66fa5b578904f7df61293d6ce5c08966b5db13db (patch)
tree5db57c13d5b23e76793b60bbc48579ac24da1550 /firmware/export/config/iriverh300.h
parent7b70046e7ab7329d93f800fe4b074fabff998a0e (diff)
downloadrockbox-66fa5b578904f7df61293d6ce5c08966b5db13db.tar.gz
rockbox-66fa5b578904f7df61293d6ce5c08966b5db13db.zip
Rename targets to be consistent in all places. (FS #10819)
git-svn-id: svn://svn.rockbox.org/rockbox/branches/v3_4@23881 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/export/config/iriverh300.h')
-rw-r--r--firmware/export/config/iriverh300.h205
1 files changed, 205 insertions, 0 deletions
diff --git a/firmware/export/config/iriverh300.h b/firmware/export/config/iriverh300.h
new file mode 100644
index 0000000000..9fad6cc503
--- /dev/null
+++ b/firmware/export/config/iriverh300.h
@@ -0,0 +1,205 @@
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
6
7#define MODEL_NAME "iriver H300 series"
8
9/* For Rolo and boot loader */
10#define MODEL_NUMBER 2
11
12/* define this if you use an ATA controller */
13#define CONFIG_STORAGE STORAGE_ATA
14
15/* define this if you have a bitmap LCD display */
16#define HAVE_LCD_BITMAP
17
18/* define this if you have a colour LCD */
19#define HAVE_LCD_COLOR
20
21/* define this if you want album art for this target */
22#define HAVE_ALBUMART
23
24/* define this to enable bitmap scaling */
25#define HAVE_BMP_SCALING
26
27/* define this to enable JPEG decoding */
28#define HAVE_JPEG
29
30/* define this if you can flip your LCD */
31#define HAVE_LCD_FLIP
32
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
37
38/* define this if you would like tagcache to build on this target */
39#define HAVE_TAGCACHE
40
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 */
46
47/* remote LCD */
48#define LCD_REMOTE_WIDTH 128
49#define LCD_REMOTE_HEIGHT 64
50#define LCD_REMOTE_DEPTH 1
51
52#define LCD_REMOTE_PIXELFORMAT VERTICAL_PACKING
53
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
59
60#define CONFIG_KEYPAD IRIVER_H300_PAD
61
62#define CONFIG_REMOTE_KEYPAD H300_REMOTE
63
64/* Define this if you do software codec */
65#define CONFIG_CODEC SWCODEC
66
67/* define this if you have a real-time clock */
68#define CONFIG_RTC RTC_PCF50606
69
70/* define this if you have a disk storage, i.e. something
71 that needs spinups and can cause skips when shaked */
72#define HAVE_DISK_STORAGE
73
74/* Define this if you have an remote lcd */
75#define HAVE_REMOTE_LCD
76
77/* Define if we have a hardware defect that causes ticking on the audio line */
78#define HAVE_REMOTE_LCD_TICKING
79
80/* Define this for LCD backlight available */
81#define HAVE_BACKLIGHT
82#define HAVE_BACKLIGHT_BRIGHTNESS
83/* Which backlight fading type? */
84#define CONFIG_BACKLIGHT_FADING BACKLIGHT_FADING_SW_HW_REG
85/* Define this if your LCD can be enabled/disabled */
86#define HAVE_LCD_ENABLE
87
88/* Define this if you have a software controlled poweroff */
89#define HAVE_SW_POWEROFF
90
91/* The number of bytes reserved for loadable codecs */
92#define CODEC_SIZE 0x100000
93
94/* The number of bytes reserved for loadable plugins */
95#define PLUGIN_BUFFER_SIZE 0x80000
96
97#define AB_REPEAT_ENABLE 1
98
99#define CONFIG_TUNER TEA5767
100#define CONFIG_TUNER_XTAL 32768
101
102#define HAVE_UDA1380
103
104/* define this if you have recording possibility */
105#define HAVE_RECORDING
106
107/* Define bitmask of input sources - recordable bitmask can be defined
108 explicitly if different */
109#define INPUT_SRC_CAPS (SRC_CAP_MIC | SRC_CAP_LINEIN | SRC_CAP_FMRADIO)
110
111/* define hardware samples rate caps mask */
112#define HW_SAMPR_CAPS (SAMPR_CAP_88 | SAMPR_CAP_44 | SAMPR_CAP_22 | SAMPR_CAP_11)
113
114/* define the bitmask of recording sample rates */
115#define REC_SAMPR_CAPS (SAMPR_CAP_44 | SAMPR_CAP_22 | SAMPR_CAP_11)
116
117#define HAVE_AGC
118
119#define BATTERY_CAPACITY_DEFAULT 1300 /* default battery capacity */
120#define BATTERY_CAPACITY_MIN 1300 /* min. capacity selectable */
121#define BATTERY_CAPACITY_MAX 3200 /* max. capacity selectable */
122#define BATTERY_CAPACITY_INC 50 /* capacity increment */
123#define BATTERY_TYPES_COUNT 1 /* only one type */
124
125/* Hardware controlled charging with monitoring */
126#define CONFIG_CHARGING CHARGING_MONITOR
127
128/* define this if the unit can be powered or charged via USB */
129#define HAVE_USB_POWER
130
131/* define current usage levels */
132#define CURRENT_NORMAL 80 /* 16h playback on 1300mAh battery from IriverRuntime wiki page */
133#define CURRENT_BACKLIGHT 23 /* FIXME: This needs to be measured, copied from H100 */
134#define CURRENT_RECORD 110 /* additional current while recording */
135#define CURRENT_MAX_CHG 650 /* maximum charging current */
136#define CURRENT_REMOTE 8 /* additional current when remote connected */
137
138/* define this if the unit can have USB charging disabled by user -
139 * if USB/MAIN power is discernable and hardware doesn't compel charging */
140#define HAVE_USB_CHARGING_ENABLE
141
142#ifndef SIMULATOR
143
144/* Define this if you have a Motorola SCF5249 */
145#define CONFIG_CPU MCF5249
146
147/* Define this if you want to use coldfire's i2c interface */
148#define CONFIG_I2C I2C_COLDFIRE
149
150/* The size of the flash ROM */
151#define FLASH_SIZE 0x400000
152
153/* Define this to the CPU frequency */
154#define CPU_FREQ 11289600
155
156/* Define this if you have ATA power-off control */
157#define HAVE_ATA_POWER_OFF
158
159#define CONFIG_LCD LCD_H300
160
161/* Offset ( in the firmware file's header ) to the file CRC */
162#define FIRMWARE_OFFSET_FILE_CRC 0
163
164/* Offset ( in the firmware file's header ) to the real data */
165#define FIRMWARE_OFFSET_FILE_DATA 8
166
167/* USB On-the-go */
168#define CONFIG_USBOTG USBOTG_ISP1362
169
170/* Define this if you have adjustable CPU frequency */
171#define HAVE_ADJUSTABLE_CPU_FREQ
172
173#define BOOTFILE_EXT "iriver"
174#define BOOTFILE "rockbox." BOOTFILE_EXT
175#define BOOTDIR "/.rockbox"
176
177#define BOOTLOADER_ENTRYPOINT 0x001F0000
178#define FLASH_ENTRYPOINT 0x00001000
179#define FLASH_MAGIC 0xfbfbfbf1
180
181/* Define this if there is an EEPROM chip */
182#define HAVE_EEPROM
183
184#endif /* SIMULATOR */
185
186/* Define this for FM radio input available */
187#define HAVE_FMRADIO_IN
188
189/** Port-specific settings **/
190
191/* Main LCD contrast range and defaults */
192#define MIN_CONTRAST_SETTING 5
193#define MAX_CONTRAST_SETTING 63
194#define DEFAULT_CONTRAST_SETTING 40
195
196/* Main LCD backlight brightness range and defaults */
197/* accepts 0..15 but note that 0 and 1 give a black display on H300! */
198#define MIN_BRIGHTNESS_SETTING 2 /* 2/16 (12.50%) */
199#define MAX_BRIGHTNESS_SETTING 15 /* 15/16 (93.75%) */
200#define DEFAULT_BRIGHTNESS_SETTING 9 /* 9/16 (56.25%) */
201
202/* Remote LCD contrast range and defaults */
203#define MIN_REMOTE_CONTRAST_SETTING 5
204#define MAX_REMOTE_CONTRAST_SETTING 63
205#define DEFAULT_REMOTE_CONTRAST_SETTING 42