TARGET_TREE is not needed anymore
[maemo-rb.git] / firmware / export / config / iriverh10.h
bloba694fa367de8a1c53ac365c140be1516443ec4b4
1 /*
2 * This config file is for the iriver H10 20Gb
3 */
5 /* For Rolo and boot loader */
6 #define MODEL_NUMBER 13
7 #define MODEL_NAME "iriver H10 20GB"
9 /* define this if you use an ATA controller */
10 #define CONFIG_STORAGE STORAGE_ATA
12 /*define this if the ATA controller and method of USB access support LBA48 */
13 #define HAVE_LBA48
15 /* define this if you have recording possibility */
16 #define HAVE_RECORDING
17 /* Define bitmask of input sources - recordable bitmask can be defined
18 explicitly if different */
19 #define INPUT_SRC_CAPS (SRC_CAP_MIC | SRC_CAP_LINEIN | SRC_CAP_FMRADIO)
21 /* define the bitmask of hardware sample rates */
22 #define HW_SAMPR_CAPS (SAMPR_CAP_96 | SAMPR_CAP_88 | SAMPR_CAP_48 | \
23 SAMPR_CAP_44 | SAMPR_CAP_32 | SAMPR_CAP_8)
25 /* define the bitmask of recording sample rates */
26 #define REC_SAMPR_CAPS (SAMPR_CAP_96 | SAMPR_CAP_88 | SAMPR_CAP_48 | \
27 SAMPR_CAP_44 | SAMPR_CAP_32 | SAMPR_CAP_8)
29 /* define this if you have a bitmap LCD display */
30 #define HAVE_LCD_BITMAP
32 /* define this if you have a colour LCD */
33 #define HAVE_LCD_COLOR
35 /* define this if you want album art for this target */
36 #define HAVE_ALBUMART
38 /* define this to enable bitmap scaling */
39 #define HAVE_BMP_SCALING
41 /* define this to enable JPEG decoding */
42 #define HAVE_JPEG
44 /* define this if you have access to the quickscreen */
45 #define HAVE_QUICKSCREEN
47 /* define this if you have access to the pitchscreen */
48 #define HAVE_PITCHSCREEN
50 /* define this if you would like tagcache to build on this target */
51 #define HAVE_TAGCACHE
53 /* LCD dimensions */
54 #define LCD_WIDTH 160
55 #define LCD_HEIGHT 128
56 #define LCD_DEPTH 16 /* 65536 colours */
57 #define LCD_PIXELFORMAT RGB565SWAPPED /* rgb565 byte-swapped */
59 #ifndef BOOTLOADER
60 /* Define this if your LCD can be enabled/disabled */
61 #define HAVE_LCD_ENABLE
63 /* Define this if your LCD can be put to sleep. HAVE_LCD_ENABLE
64 * should be defined as well.
65 * We can currently put the lcd to sleep but it won't wake up properly */
66 #define HAVE_LCD_SLEEP
67 #define HAVE_LCD_SLEEP_SETTING
68 #endif
70 /* define this if you can flip your LCD */
71 #define HAVE_LCD_FLIP
73 /* define this if you can invert the colours on your LCD */
74 #define HAVE_LCD_INVERT
76 /* #define IRAM_LCDFRAMEBUFFER IDATA_ATTR *//* put the lcd frame buffer in IRAM */
78 #define CONFIG_KEYPAD IRIVER_H10_PAD
80 /* Define this to enable morse code input */
81 #define HAVE_MORSE_INPUT
83 /* Define this if you do software codec */
84 #define CONFIG_CODEC SWCODEC
86 /* define this if you have a real-time clock */
87 #ifndef BOOTLOADER
88 #define CONFIG_RTC RTC_E8564
89 #define HAVE_RTC_ALARM
90 #endif
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
96 /* Define this if you have a software controlled poweroff */
97 #define HAVE_SW_POWEROFF
99 /* The number of bytes reserved for loadable codecs */
100 #define CODEC_SIZE 0x100000
102 /* The number of bytes reserved for loadable plugins */
103 #define PLUGIN_BUFFER_SIZE 0x80000
105 /* Define this if you have the WM8731 audio codec */
106 #define HAVE_WM8731
108 /* WM8731 has no tone controls, so we use the software ones */
109 #define HAVE_SW_TONE_CONTROLS
111 #define AB_REPEAT_ENABLE
113 /* FM Tuner */
114 #define CONFIG_TUNER TEA5767
115 #define CONFIG_TUNER_XTAL 32768
117 /* Define this for LCD backlight available */
118 #define HAVE_BACKLIGHT
120 #define AB_REPEAT_ENABLE
122 #define BATTERY_CAPACITY_DEFAULT 1550 /* default battery capacity */
123 #define BATTERY_CAPACITY_MIN 1500 /* min. capacity selectable */
124 #define BATTERY_CAPACITY_MAX 3200 /* max. capacity selectable */
125 #define BATTERY_CAPACITY_INC 50 /* capacity increment */
126 #define BATTERY_TYPES_COUNT 1 /* only one type */
128 #define CONFIG_BATTERY_MEASURE VOLTAGE_MEASURE
130 /* Hardware controlled charging */
131 #define CONFIG_CHARGING CHARGING_SIMPLE
133 /* define this if the unit can be powered or charged via USB */
134 #define HAVE_USB_POWER
136 /* Define this if you have a PortalPlayer PP5020 */
137 #define CONFIG_CPU PP5020
139 /* Define this if you want to use the PP5020 i2c interface */
140 #define CONFIG_I2C I2C_PP5020
142 /* define this if the hardware can be powered off while charging */
143 #define HAVE_POWEROFF_WHILE_CHARGING
145 /* The start address index for ROM builds */
146 #define ROM_START 0x00000000
148 /* The size of the flash ROM */
149 #define FLASH_SIZE 0x100000
151 /* Define this to the CPU frequency */
152 #define CPU_FREQ 75000000
154 /* Type of LCD */
155 #define CONFIG_LCD LCD_H10_20GB
157 /* Define this if your LCD can set contrast */
158 #define HAVE_LCD_CONTRAST
160 #define MIN_CONTRAST_SETTING 0
161 #define MAX_CONTRAST_SETTING 30
162 #define DEFAULT_CONTRAST_SETTING 14 /* Match boot contrast */
164 /* We're able to shut off power to the HDD */
165 #define HAVE_ATA_POWER_OFF
167 /* Offset ( in the firmware file's header ) to the file CRC and data. These are
168 only used when loading the old format rockbox.h10 file */
169 #define FIRMWARE_OFFSET_FILE_CRC 0x0
170 #define FIRMWARE_OFFSET_FILE_DATA 0x8
172 /* USB On-the-go */
173 #define CONFIG_USBOTG USBOTG_ARC
175 /* enable these for the experimental usb stack */
176 #define HAVE_USBSTACK
177 #define USE_ROCKBOX_USB
178 #define USB_VENDOR_ID 0x0B70
179 #define USB_PRODUCT_ID 0x00BA
180 #define HAVE_USB_HID_MOUSE
181 #ifdef BOOTLOADER
182 #define HAVE_BOOTLOADER_USB_MODE
183 #endif
185 /* Define this if you have adjustable CPU frequency */
186 #define HAVE_ADJUSTABLE_CPU_FREQ
188 #define MI4_FORMAT
189 #define BOOTFILE_EXT "mi4"
190 #define BOOTFILE "rockbox." BOOTFILE_EXT
191 #define BOOTDIR "/.rockbox"
193 #define ICODE_ATTR_TREMOR_NOT_MDCT
196 /* DMA is used only for reading on PP502x because although reads are ~8x faster
197 * writes appear to be ~25% slower.
199 /* Switched off due to reported instabilities. #define HAVE_ATA_DMA */
201 /* Define this if a programmable hotkey is mapped */
202 #define HAVE_HOTKEY