as3514: mute headphones at the lowest volume
[kugel-rb.git] / firmware / export / config / iriverh10_5gb.h
blob4e901cc4324f942ac6df62086cf81ade5dc1be7b
1 /*
2 * This config file is for the iriver H10 5/6Gb model
3 */
5 #define TARGET_TREE /* this target is using the target tree system */
7 /* For Rolo and boot loader */
8 #define MODEL_NUMBER 14
9 #define MODEL_NAME "iriver H10 5/6GB"
11 /* define this if you use an ATA controller */
12 #define CONFIG_STORAGE STORAGE_ATA
14 /*define this if the ATA controller and method of USB access support LBA48 */
15 #define HAVE_LBA48
17 /* define this if you have recording possibility */
18 #define HAVE_RECORDING
19 /* Define bitmask of input sources - recordable bitmask can be defined
20 explicitly if different */
21 #define INPUT_SRC_CAPS (SRC_CAP_MIC | SRC_CAP_LINEIN | SRC_CAP_FMRADIO)
23 /* define the bitmask of hardware sample rates */
24 #define HW_SAMPR_CAPS (SAMPR_CAP_96 | SAMPR_CAP_88 | SAMPR_CAP_48 | \
25 SAMPR_CAP_44 | SAMPR_CAP_32 | SAMPR_CAP_8)
27 /* define the bitmask of recording sample rates */
28 #define REC_SAMPR_CAPS (SAMPR_CAP_96 | SAMPR_CAP_88 | SAMPR_CAP_48 | \
29 SAMPR_CAP_44 | SAMPR_CAP_32 | SAMPR_CAP_8)
31 /* define this if you have a bitmap LCD display */
32 #define HAVE_LCD_BITMAP
34 /* define this if you have a colour LCD */
35 #define HAVE_LCD_COLOR
37 /* define this if you want album art for this target */
38 #define HAVE_ALBUMART
40 /* define this to enable bitmap scaling */
41 #define HAVE_BMP_SCALING
43 /* define this to enable JPEG decoding */
44 #define HAVE_JPEG
46 /* define this if you have access to the quickscreen */
47 #define HAVE_QUICKSCREEN
49 /* define this if you have access to the pitchscreen */
50 #define HAVE_PITCHSCREEN
52 /* define this if you would like tagcache to build on this target */
53 #define HAVE_TAGCACHE
55 /* LCD dimensions */
56 #define LCD_WIDTH 128
57 #define LCD_HEIGHT 128
58 #define LCD_DEPTH 16 /* 65536 colours */
59 #define LCD_PIXELFORMAT RGB565SWAPPED /* rgb565 byte-swapped */
61 /*#define IRAM_LCDFRAMEBUFFER IDATA_ATTR*//* put the lcd frame buffer in IRAM */
63 #define CONFIG_KEYPAD IRIVER_H10_PAD
65 /* Define this to enable morse code input */
66 #define HAVE_MORSE_INPUT
68 /* Define this if you do software codec */
69 #define CONFIG_CODEC SWCODEC
71 /* define this if you have a real-time clock */
72 #ifndef BOOTLOADER
73 #define CONFIG_RTC RTC_E8564
74 #define HAVE_RTC_ALARM
75 #endif
77 /* Define this if you have a software controlled poweroff */
78 #define HAVE_SW_POWEROFF
80 /* The number of bytes reserved for loadable codecs */
81 #define CODEC_SIZE 0x100000
83 /* The number of bytes reserved for loadable plugins */
84 #define PLUGIN_BUFFER_SIZE 0x80000
86 /* Define this if you have the WM8731 audio codec */
87 #define HAVE_WM8731
89 /* WM8731 has no tone controls, so we use the software ones */
90 #define HAVE_SW_TONE_CONTROLS
92 #define AB_REPEAT_ENABLE 1
94 /* FM Tuner */
95 #define CONFIG_TUNER TEA5767
96 #define CONFIG_TUNER_XTAL 32768
98 /* define this if you have a disk storage, i.e. something
99 that needs spinups and can cause skips when shaked */
100 #define HAVE_DISK_STORAGE
102 /* Define this for LCD backlight available */
103 #define HAVE_BACKLIGHT
105 #define AB_REPEAT_ENABLE 1
107 #define BATTERY_CAPACITY_DEFAULT 820 /* default battery capacity */
108 #define BATTERY_CAPACITY_MIN 700 /* min. capacity selectable */
109 #define BATTERY_CAPACITY_MAX 900 /* max. capacity selectable */
110 #define BATTERY_CAPACITY_INC 10 /* capacity increment */
111 #define BATTERY_TYPES_COUNT 1 /* only one type */
113 /* Hardware controlled charging */
114 #define CONFIG_CHARGING CHARGING_SIMPLE
116 /* define this if the unit can be powered or charged via USB */
117 #define HAVE_USB_POWER
119 /* define current usage levels */
120 #define CURRENT_NORMAL 98 /* ~8.4h (820mAh) from bench with r25244 */
121 #define CURRENT_BACKLIGHT 20 /* FIXME: this needs adjusting */
122 #define CURRENT_RECORD 35 /* FIXME: this needs adjusting */
124 #ifndef SIMULATOR
126 /* Define this if you have a PortalPlayer PP5020 */
127 #define CONFIG_CPU PP5020
129 /* Define this if you want to use the PP5020 i2c interface */
130 #define CONFIG_I2C I2C_PP5020
132 /* define this if the hardware can be powered off while charging */
133 #define HAVE_POWEROFF_WHILE_CHARGING
135 /* The start address index for ROM builds */
136 #define ROM_START 0x00000000
138 /* The size of the flash ROM */
139 #define FLASH_SIZE 0x100000
141 /* Define this to the CPU frequency */
142 /* TODO: this is probably wrong */
143 #define CPU_FREQ 75000000
145 /* Type of LCD */
146 #define CONFIG_LCD LCD_H10_5GB
148 /* We're able to shut off power to the HDD */
149 #define HAVE_ATA_POWER_OFF
151 /* Offset ( in the firmware file's header ) to the file length */
152 #define FIRMWARE_OFFSET_FILE_LENGTH 0x8
154 /* Offset ( in the firmware file's header ) to the file CRC and data. These are
155 only used when loading the old format rockbox.h10 file */
156 #define FIRMWARE_OFFSET_FILE_CRC 0x0
157 #define FIRMWARE_OFFSET_FILE_DATA 0x8
159 /* USB On-the-go */
160 #define CONFIG_USBOTG USBOTG_ARC
162 /* enable these for the experimental usb stack */
163 #define HAVE_USBSTACK
164 #define USE_ROCKBOX_USB
165 #define USB_VENDOR_ID 0x0B70
166 #define USB_PRODUCT_ID 0x00BA
167 #define HAVE_USB_HID_MOUSE
169 /* Define this if you have adjustable CPU frequency */
170 #define HAVE_ADJUSTABLE_CPU_FREQ
172 #define MI4_FORMAT
173 #define BOOTFILE_EXT "mi4"
174 #define BOOTFILE "rockbox." BOOTFILE_EXT
175 #define BOOTDIR "/.rockbox"
177 #define ICODE_ATTR_TREMOR_NOT_MDCT
179 #endif
181 /* DMA is used only for reading on PP502x because although reads are ~8x faster
182 * writes appear to be ~25% slower.
184 #define HAVE_ATA_DMA
186 /* Define this if a programmable hotkey is mapped */
187 #define HAVE_HOTKEY