summaryrefslogtreecommitdiff
path: root/firmware/export/config/iriverh10_5gb.h
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/export/config/iriverh10_5gb.h')
-rw-r--r--firmware/export/config/iriverh10_5gb.h167
1 files changed, 167 insertions, 0 deletions
diff --git a/firmware/export/config/iriverh10_5gb.h b/firmware/export/config/iriverh10_5gb.h
new file mode 100644
index 0000000000..8275e50dc6
--- /dev/null
+++ b/firmware/export/config/iriverh10_5gb.h
@@ -0,0 +1,167 @@
1/*
2 * This config file is for the iriver H10 5/6Gb model
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 14
9#define MODEL_NAME "iriver H10 5/6GB"
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 128
54#define LCD_HEIGHT 128
55#define LCD_DEPTH 16 /* 65536 colours */
56#define LCD_PIXELFORMAT RGB565SWAPPED /* rgb565 byte-swapped */
57
58/*#define IRAM_LCDFRAMEBUFFER IDATA_ATTR*//* put the lcd frame buffer in IRAM */
59
60#define CONFIG_KEYPAD IRIVER_H10_PAD
61
62/* Define this if you do software codec */
63#define CONFIG_CODEC SWCODEC
64
65/* define this if you have a real-time clock */
66#ifndef BOOTLOADER
67#define CONFIG_RTC RTC_E8564
68#define HAVE_RTC_ALARM
69#endif
70
71/* Define this if you have a software controlled poweroff */
72#define HAVE_SW_POWEROFF
73
74/* The number of bytes reserved for loadable codecs */
75#define CODEC_SIZE 0x100000
76
77/* The number of bytes reserved for loadable plugins */
78#define PLUGIN_BUFFER_SIZE 0x80000
79
80/* Define this if you have the WM8731 audio codec */
81#define HAVE_WM8731
82
83/* WM8731 has no tone controls, so we use the software ones */
84#define HAVE_SW_TONE_CONTROLS
85
86#define AB_REPEAT_ENABLE 1
87
88/* FM Tuner */
89#define CONFIG_TUNER TEA5767
90#define CONFIG_TUNER_XTAL 32768
91
92/* define this if you have a disk storage, i.e. something
93 that needs spinups and can cause skips when shaked */
94#define HAVE_DISK_STORAGE
95
96/* Define this for LCD backlight available */
97#define HAVE_BACKLIGHT
98
99#define AB_REPEAT_ENABLE 1
100
101#define BATTERY_CAPACITY_DEFAULT 820 /* default battery capacity */
102#define BATTERY_CAPACITY_MIN 700 /* min. capacity selectable */
103#define BATTERY_CAPACITY_MAX 900 /* max. capacity selectable */
104#define BATTERY_CAPACITY_INC 10 /* capacity increment */
105#define BATTERY_TYPES_COUNT 1 /* only one type */
106
107/* Hardware controlled charging */
108#define CONFIG_CHARGING CHARGING_SIMPLE
109
110/* define this if the unit can be powered or charged via USB */
111#define HAVE_USB_POWER
112
113#ifndef SIMULATOR
114
115/* Define this if you have a PortalPlayer PP5020 */
116#define CONFIG_CPU PP5020
117
118/* Define this if you want to use the PP5020 i2c interface */
119#define CONFIG_I2C I2C_PP5020
120
121/* define this if the hardware can be powered off while charging */
122#define HAVE_POWEROFF_WHILE_CHARGING
123
124/* The start address index for ROM builds */
125#define ROM_START 0x00000000
126
127/* The size of the flash ROM */
128#define FLASH_SIZE 0x100000
129
130/* Define this to the CPU frequency */
131/* TODO: this is probably wrong */
132#define CPU_FREQ 75000000
133
134/* Type of LCD */
135#define CONFIG_LCD LCD_H10_5GB
136
137/* We're able to shut off power to the HDD */
138#define HAVE_ATA_POWER_OFF
139
140/* Offset ( in the firmware file's header ) to the file length */
141#define FIRMWARE_OFFSET_FILE_LENGTH 0x8
142
143/* Offset ( in the firmware file's header ) to the file CRC and data. These are
144 only used when loading the old format rockbox.h10 file */
145#define FIRMWARE_OFFSET_FILE_CRC 0x0
146#define FIRMWARE_OFFSET_FILE_DATA 0x8
147
148/* USB On-the-go */
149#define CONFIG_USBOTG USBOTG_ARC
150
151/* enable these for the experimental usb stack */
152#define HAVE_USBSTACK
153#define USE_ROCKBOX_USB
154#define USB_VENDOR_ID 0x0B70
155#define USB_PRODUCT_ID 0x00BA
156
157/* Define this if you have adjustable CPU frequency */
158#define HAVE_ADJUSTABLE_CPU_FREQ
159
160#define MI4_FORMAT
161#define BOOTFILE_EXT "mi4"
162#define BOOTFILE "rockbox." BOOTFILE_EXT
163#define BOOTDIR "/.rockbox"
164
165#define ICODE_ATTR_TREMOR_NOT_MDCT
166
167#endif