summaryrefslogtreecommitdiff
path: root/firmware/export/config-h10.h
diff options
context:
space:
mode:
authorBjörn Stenberg <bjorn@haxx.se>2009-12-07 09:17:48 +0000
committerBjörn Stenberg <bjorn@haxx.se>2009-12-07 09:17:48 +0000
commit36a81eb9b98ac7b1dff0d6658dba0255dd579f5f (patch)
tree81b81008c4cb69c276329ecd50200887c4da4838 /firmware/export/config-h10.h
parent66fa5b578904f7df61293d6ce5c08966b5db13db (diff)
downloadrockbox-36a81eb9b98ac7b1dff0d6658dba0255dd579f5f.tar.gz
rockbox-36a81eb9b98ac7b1dff0d6658dba0255dd579f5f.zip
Reverted r23881 mistakenly committed to branch.v3.4
git-svn-id: svn://svn.rockbox.org/rockbox/branches/v3_4@23882 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/export/config-h10.h')
-rw-r--r--firmware/export/config-h10.h187
1 files changed, 187 insertions, 0 deletions
diff --git a/firmware/export/config-h10.h b/firmware/export/config-h10.h
new file mode 100644
index 0000000000..0dc845c23b
--- /dev/null
+++ b/firmware/export/config-h10.h
@@ -0,0 +1,187 @@
1/*
2 * This config file is for the iriver H10 20Gb
3 */
4
5#define TARGET_TREE /* this target is using the target tree system */
6
7/* For Rolo and boot loader */
8#define MODEL_NUMBER 13
9#define MODEL_NAME "iriver H10 20GB"
10
11/* define this if you use an ATA controller */
12#define CONFIG_STORAGE STORAGE_ATA
13
14/* define this if you have recording possibility */
15#define HAVE_RECORDING
16/* Define bitmask of input sources - recordable bitmask can be defined
17 explicitly if different */
18#define INPUT_SRC_CAPS (SRC_CAP_MIC | SRC_CAP_LINEIN | SRC_CAP_FMRADIO)
19
20/* define the bitmask of hardware sample rates */
21#define HW_SAMPR_CAPS (SAMPR_CAP_96 | SAMPR_CAP_88 | SAMPR_CAP_48 | \
22 SAMPR_CAP_44 | SAMPR_CAP_32 | SAMPR_CAP_8)
23
24/* define the bitmask of recording sample rates */
25#define REC_SAMPR_CAPS (SAMPR_CAP_96 | SAMPR_CAP_88 | SAMPR_CAP_48 | \
26 SAMPR_CAP_44 | SAMPR_CAP_32 | SAMPR_CAP_8)
27
28/* define this if you have a bitmap LCD display */
29#define HAVE_LCD_BITMAP
30
31/* define this if you have a colour LCD */
32#define HAVE_LCD_COLOR
33
34/* define this if you want album art for this target */
35#define HAVE_ALBUMART
36
37/* define this to enable bitmap scaling */
38#define HAVE_BMP_SCALING
39
40/* define this to enable JPEG decoding */
41#define HAVE_JPEG
42
43/* define this if you have access to the quickscreen */
44#define HAVE_QUICKSCREEN
45
46/* define this if you have access to the pitchscreen */
47#define HAVE_PITCHSCREEN
48
49/* define this if you would like tagcache to build on this target */
50#define HAVE_TAGCACHE
51
52/* LCD dimensions */
53#define LCD_WIDTH 160
54#define LCD_HEIGHT 128
55#define LCD_DEPTH 16 /* 65536 colours */
56#define LCD_PIXELFORMAT RGB565SWAPPED /* rgb565 byte-swapped */
57
58#ifndef BOOTLOADER
59/* Define this if your LCD can be enabled/disabled */
60#define HAVE_LCD_ENABLE
61
62/* Define this if your LCD can be put to sleep. HAVE_LCD_ENABLE
63 * should be defined as well.
64 * We can currently put the lcd to sleep but it won't wake up properly */
65#define HAVE_LCD_SLEEP
66#define HAVE_LCD_SLEEP_SETTING
67#endif
68
69/* define this if you can flip your LCD */
70#define HAVE_LCD_FLIP
71
72/* define this if you can invert the colours on your LCD */
73#define HAVE_LCD_INVERT
74
75/* #define IRAM_LCDFRAMEBUFFER IDATA_ATTR *//* put the lcd frame buffer in IRAM */
76
77#define CONFIG_KEYPAD IRIVER_H10_PAD
78
79/* Define this if you do software codec */
80#define CONFIG_CODEC SWCODEC
81
82/* define this if you have a real-time clock */
83#ifndef BOOTLOADER
84#define CONFIG_RTC RTC_E8564
85#define HAVE_RTC_ALARM
86#endif
87
88/* define this if you have a disk storage, i.e. something
89 that needs spinups and can cause skips when shaked */
90#define HAVE_DISK_STORAGE
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 this if you have the WM8731 audio codec */
102#define HAVE_WM8731
103
104/* WM8731 has no tone controls, so we use the software ones */
105#define HAVE_SW_TONE_CONTROLS
106
107#define AB_REPEAT_ENABLE 1
108
109/* FM Tuner */
110#define CONFIG_TUNER TEA5767
111#define CONFIG_TUNER_XTAL 32768
112
113/* Define this for LCD backlight available */
114#define HAVE_BACKLIGHT
115
116#define AB_REPEAT_ENABLE 1
117
118#define BATTERY_CAPACITY_DEFAULT 1550 /* default battery capacity */
119#define BATTERY_CAPACITY_MIN 1500 /* min. capacity selectable */
120#define BATTERY_CAPACITY_MAX 3200 /* max. capacity selectable */
121#define BATTERY_CAPACITY_INC 50 /* capacity increment */
122#define BATTERY_TYPES_COUNT 1 /* only one type */
123
124/* Hardware controlled charging */
125#define CONFIG_CHARGING CHARGING_SIMPLE
126
127/* define this if the unit can be powered or charged via USB */
128#define HAVE_USB_POWER
129
130#ifndef SIMULATOR
131
132/* Define this if you have a PortalPlayer PP5020 */
133#define CONFIG_CPU PP5020
134
135/* Define this if you want to use the PP5020 i2c interface */
136#define CONFIG_I2C I2C_PP5020
137
138/* define this if the hardware can be powered off while charging */
139#define HAVE_POWEROFF_WHILE_CHARGING
140
141/* The start address index for ROM builds */
142#define ROM_START 0x00000000
143
144/* The size of the flash ROM */
145#define FLASH_SIZE 0x100000
146
147/* Define this to the CPU frequency */
148#define CPU_FREQ 75000000
149
150/* Type of LCD */
151#define CONFIG_LCD LCD_H10_20GB
152
153/* Define this if your LCD can set contrast */
154#define HAVE_LCD_CONTRAST
155
156#define MIN_CONTRAST_SETTING 0
157#define MAX_CONTRAST_SETTING 30
158#define DEFAULT_CONTRAST_SETTING 14 /* Match boot contrast */
159
160/* We're able to shut off power to the HDD */
161#define HAVE_ATA_POWER_OFF
162
163/* Offset ( in the firmware file's header ) to the file CRC and data. These are
164 only used when loading the old format rockbox.h10 file */
165#define FIRMWARE_OFFSET_FILE_CRC 0x0
166#define FIRMWARE_OFFSET_FILE_DATA 0x8
167
168/* USB On-the-go */
169#define CONFIG_USBOTG USBOTG_ARC
170
171/* enable these for the experimental usb stack */
172#define HAVE_USBSTACK
173#define USE_ROCKBOX_USB
174#define USB_VENDOR_ID 0x0B70
175#define USB_PRODUCT_ID 0x00BA
176
177/* Define this if you have adjustable CPU frequency */
178#define HAVE_ADJUSTABLE_CPU_FREQ
179
180#define MI4_FORMAT
181#define BOOTFILE_EXT "mi4"
182#define BOOTFILE "rockbox." BOOTFILE_EXT
183#define BOOTDIR "/.rockbox"
184
185#define ICODE_ATTR_TREMOR_NOT_MDCT
186
187#endif