summaryrefslogtreecommitdiff
path: root/firmware/export/config/iriverh120.h
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/export/config/iriverh120.h')
-rw-r--r--firmware/export/config/iriverh120.h214
1 files changed, 214 insertions, 0 deletions
diff --git a/firmware/export/config/iriverh120.h b/firmware/export/config/iriverh120.h
new file mode 100644
index 0000000000..da75c60ecf
--- /dev/null
+++ b/firmware/export/config/iriverh120.h
@@ -0,0 +1,214 @@
1#define TARGET_TREE /* this target is using the target tree system */
2/*
3 * This config file is for iriver H120 and H140
4 */
5#define IRIVER_H100_SERIES 1
6
7#define MODEL_NAME "iriver H120/H140"
8
9/* For Rolo and boot loader */
10#define MODEL_NUMBER 0
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 want album art for this target */
19#define HAVE_ALBUMART
20
21/* define this to enable bitmap scaling */
22#define HAVE_BMP_SCALING
23
24/* define this to enable JPEG decoding */
25#define HAVE_JPEG
26
27/* define this if you can flip your LCD */
28#define HAVE_LCD_FLIP
29
30/* define this if you can invert the colours on your LCD */
31#define HAVE_LCD_INVERT
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 160
43#define LCD_HEIGHT 128
44#define LCD_DEPTH 2
45
46#define LCD_PIXELFORMAT VERTICAL_PACKING
47
48/* Display colours, for screenshots and sim (0xRRGGBB) */
49#define LCD_DARKCOLOR 0x000000
50#define LCD_BRIGHTCOLOR 0x5a915a
51#define LCD_BL_DARKCOLOR 0x000000
52#define LCD_BL_BRIGHTCOLOR 0xadd8e6
53
54/* remote LCD */
55#define LCD_REMOTE_WIDTH 128
56#define LCD_REMOTE_HEIGHT 64
57#define LCD_REMOTE_DEPTH 1
58
59#define LCD_REMOTE_PIXELFORMAT VERTICAL_PACKING
60
61/* Remote display colours, for screenshots and sim (0xRRGGBB) */
62#define LCD_REMOTE_DARKCOLOR 0x000000
63#define LCD_REMOTE_BRIGHTCOLOR 0x5a915a
64#define LCD_REMOTE_BL_DARKCOLOR 0x000000
65#define LCD_REMOTE_BL_BRIGHTCOLOR 0x82b4fa
66
67#define CONFIG_KEYPAD IRIVER_H100_PAD
68
69#define CONFIG_REMOTE_KEYPAD H100_REMOTE
70
71/* Define this if you do software codec */
72#define CONFIG_CODEC SWCODEC
73
74/* define this if you have a disk storage, i.e. something
75 that needs spinups and can cause skips when shaked */
76#define HAVE_DISK_STORAGE
77
78/* Define this if you have an remote lcd */
79#define HAVE_REMOTE_LCD
80
81/* Define if we have a hardware defect that causes ticking on the audio line */
82#define HAVE_REMOTE_LCD_TICKING
83
84#define CONFIG_LCD LCD_S1D15E06
85
86/* Define this for LCD backlight available */
87#define HAVE_BACKLIGHT
88
89/* We can fade the backlight by using PWM */
90#define CONFIG_BACKLIGHT_FADING BACKLIGHT_FADING_PWM
91
92/* Define this if you have a software controlled poweroff */
93#define HAVE_SW_POWEROFF
94
95/* The number of bytes reserved for loadable codecs */
96#define CODEC_SIZE 0x100000
97
98/* The number of bytes reserved for loadable plugins */
99#define PLUGIN_BUFFER_SIZE 0x80000
100
101#define AB_REPEAT_ENABLE 1
102
103#define CONFIG_TUNER TEA5767
104#define CONFIG_TUNER_XTAL 32768
105
106#define HAVE_UDA1380
107
108/* define this if you have recording possibility */
109#define HAVE_RECORDING
110
111/* Define bitmask of input sources - recordable bitmask can be defined
112 explicitly if different */
113#define INPUT_SRC_CAPS (SRC_CAP_MIC | SRC_CAP_LINEIN | \
114 SRC_CAP_FMRADIO | SRC_CAP_SPDIF)
115
116/* define hardware samples rate caps mask */
117#define HW_SAMPR_CAPS (SAMPR_CAP_88 | SAMPR_CAP_44 | SAMPR_CAP_22 | SAMPR_CAP_11)
118
119/* define the bitmask of recording sample rates */
120#define REC_SAMPR_CAPS (SAMPR_CAP_44 | SAMPR_CAP_22 | SAMPR_CAP_11)
121
122#define HAVE_AGC
123
124#define BATTERY_CAPACITY_DEFAULT 1300 /* default battery capacity */
125#define BATTERY_CAPACITY_MIN 1300 /* min. capacity selectable */
126#define BATTERY_CAPACITY_MAX 3200 /* max. capacity selectable */
127#define BATTERY_CAPACITY_INC 50 /* capacity increment */
128#define BATTERY_TYPES_COUNT 1 /* only one type */
129
130/* Hardware controlled charging */
131#define CONFIG_CHARGING CHARGING_SIMPLE
132
133/* define current usage levels */
134#define CURRENT_NORMAL 80 /* 16h playback on 1300mAh battery */
135#define CURRENT_BACKLIGHT 23 /* from IriverBattery twiki page */
136#define CURRENT_SPDIF_OUT 10 /* optical SPDIF output on */
137#define CURRENT_RECORD 105 /* additional current while recording */
138#define CURRENT_REMOTE 8 /* additional current when remote connected */
139
140#ifndef SIMULATOR
141
142/* Define this if you have a Motorola SCF5249 */
143#define CONFIG_CPU MCF5249
144
145/* Define this if you want to use coldfire's i2c interface */
146#define CONFIG_I2C I2C_COLDFIRE
147
148/* Define this if you can run rockbox from flash memory */
149#define HAVE_FLASHED_ROCKBOX
150
151/* define this if the hardware can be powered off while charging */
152#define HAVE_POWEROFF_WHILE_CHARGING
153
154/* The size of the flash ROM */
155#define FLASH_SIZE 0x200000
156
157/* Define this to the CPU frequency */
158#define CPU_FREQ 11289600
159
160/* Define this if you have ATA power-off control */
161#define HAVE_ATA_POWER_OFF
162
163/* Offset ( in the firmware file's header ) to the file CRC */
164#define FIRMWARE_OFFSET_FILE_CRC 0
165
166/* Offset ( in the firmware file's header ) to the real data */
167#define FIRMWARE_OFFSET_FILE_DATA 8
168
169#define HAVE_ATA_LED_CTRL
170
171/* Define this if you have adjustable CPU frequency */
172#define HAVE_ADJUSTABLE_CPU_FREQ
173
174#define BOOTFILE_EXT "iriver"
175#define BOOTFILE "rockbox." BOOTFILE_EXT
176#define BOOTDIR "/.rockbox"
177
178#define BOOTLOADER_ENTRYPOINT 0x001F0000
179#define FLASH_RAMIMAGE_ENTRY 0x00001000
180#define FLASH_ROMIMAGE_ENTRY 0x00100000
181#define FLASH_MAGIC 0xfbfbfbf2
182
183/* Define this if there is an EEPROM chip */
184#define HAVE_EEPROM
185
186/* Define this if the EEPROM chip is used */
187#define HAVE_EEPROM_SETTINGS
188
189#endif /* !SIMULATOR */
190
191/* Define this for S/PDIF output available */
192#define HAVE_SPDIF_OUT
193
194/* Define this if you can control the S/PDIF power */
195#define HAVE_SPDIF_POWER
196
197/* Define this if you have a serial port */
198/*#define HAVE_SERIAL*/
199
200/** Port-specific settings **/
201
202#define HAVE_LCD_CONTRAST
203
204/* Main LCD backlight brightness range and defaults */
205#define MIN_CONTRAST_SETTING 14 /* White screen a bit higher than this */
206#define MAX_CONTRAST_SETTING 63 /* Black screen a bit lower than this */
207#define DEFAULT_CONTRAST_SETTING 27
208
209/* Remote LCD contrast range and defaults */
210#define MIN_REMOTE_CONTRAST_SETTING 5
211#define MAX_REMOTE_CONTRAST_SETTING 63
212#define DEFAULT_REMOTE_CONTRAST_SETTING 42
213
214#define IRAM_LCDFRAMEBUFFER IBSS_ATTR /* put the lcd frame buffer in IRAM */