2 * This config file is for the iriver H10 20Gb
5 #define TARGET_TREE /* this target is using the target tree system */
7 /* For Rolo and boot loader */
8 #define MODEL_NUMBER 13
9 #define MODEL_NAME "iriver H10 20GB"
11 /* define this if you use an ATA controller */
12 #define CONFIG_STORAGE STORAGE_ATA
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)
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)
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)
28 /* define this if you have a bitmap LCD display */
29 #define HAVE_LCD_BITMAP
31 /* define this if you have a colour LCD */
32 #define HAVE_LCD_COLOR
34 /* define this if you want album art for this target */
37 /* define this if you have access to the quickscreen */
38 #define HAVE_QUICKSCREEN
40 /* define this if you have access to the pitchscreen */
41 #define HAVE_PITCHSCREEN
43 /* define this if you would like tagcache to build on this target */
48 #define LCD_HEIGHT 128
49 #define LCD_DEPTH 16 /* 65536 colours */
50 #define LCD_PIXELFORMAT RGB565SWAPPED /* rgb565 byte-swapped */
53 /* Define this if your LCD can be enabled/disabled */
54 #define HAVE_LCD_ENABLE
56 /* Define this if your LCD can be put to sleep. HAVE_LCD_ENABLE
57 * should be defined as well.
58 * We can currently put the lcd to sleep but it won't wake up properly */
59 #define HAVE_LCD_SLEEP
60 #define HAVE_LCD_SLEEP_SETTING
63 /* define this if you can flip your LCD */
66 /* define this if you can invert the colours on your LCD */
67 #define HAVE_LCD_INVERT
69 /* #define IRAM_LCDFRAMEBUFFER IDATA_ATTR *//* put the lcd frame buffer in IRAM */
71 #define CONFIG_KEYPAD IRIVER_H10_PAD
73 /* Define this if you do software codec */
74 #define CONFIG_CODEC SWCODEC
76 /* define this if you have a real-time clock */
78 #define CONFIG_RTC RTC_E8564
79 #define HAVE_RTC_ALARM
82 /* define this if you have a disk storage, i.e. something
83 that needs spinups and can cause skips when shaked */
84 #define HAVE_DISK_STORAGE
86 /* Define this if you have a software controlled poweroff */
87 #define HAVE_SW_POWEROFF
89 /* The number of bytes reserved for loadable codecs */
90 #define CODEC_SIZE 0x100000
92 /* The number of bytes reserved for loadable plugins */
93 #define PLUGIN_BUFFER_SIZE 0x80000
95 /* Define this if you have the WM8731 audio codec */
98 /* WM8731 has no tone controls, so we use the software ones */
99 #define HAVE_SW_TONE_CONTROLS
101 #define AB_REPEAT_ENABLE 1
104 #define CONFIG_TUNER TEA5767
105 #define CONFIG_TUNER_XTAL 32768
107 /* Define this for LCD backlight available */
108 #define HAVE_BACKLIGHT
110 #define AB_REPEAT_ENABLE 1
112 #define BATTERY_CAPACITY_DEFAULT 1550 /* default battery capacity */
113 #define BATTERY_CAPACITY_MIN 1500 /* min. capacity selectable */
114 #define BATTERY_CAPACITY_MAX 3200 /* max. capacity selectable */
115 #define BATTERY_CAPACITY_INC 50 /* capacity increment */
116 #define BATTERY_TYPES_COUNT 1 /* only one type */
118 /* Hardware controlled charging */
119 #define CONFIG_CHARGING CHARGING_SIMPLE
121 /* define this if the unit can be powered or charged via USB */
122 #define HAVE_USB_POWER
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 #define CPU_FREQ 75000000
145 #define CONFIG_LCD LCD_H10_20GB
147 /* Define this if your LCD can set contrast */
148 #define HAVE_LCD_CONTRAST
150 #define MIN_CONTRAST_SETTING 0
151 #define MAX_CONTRAST_SETTING 30
152 #define DEFAULT_CONTRAST_SETTING 14 /* Match boot contrast */
154 /* We're able to shut off power to the HDD */
155 #define HAVE_ATA_POWER_OFF
157 /* Offset ( in the firmware file's header ) to the file CRC and data. These are
158 only used when loading the old format rockbox.h10 file */
159 #define FIRMWARE_OFFSET_FILE_CRC 0x0
160 #define FIRMWARE_OFFSET_FILE_DATA 0x8
163 #define CONFIG_USBOTG USBOTG_ARC
165 /* enable these for the experimental usb stack */
166 #define HAVE_USBSTACK
167 #define USE_ROCKBOX_USB
168 #define USB_VENDOR_ID 0x0B70
169 #define USB_PRODUCT_ID 0x00BA
171 /* Virtual LED (icon) */
172 #define CONFIG_LED LED_VIRTUAL
174 /* Define this if you have adjustable CPU frequency */
175 #define HAVE_ADJUSTABLE_CPU_FREQ
178 #define BOOTFILE_EXT "mi4"
179 #define BOOTFILE "rockbox." BOOTFILE_EXT
180 #define BOOTDIR "/.rockbox"
182 #define ICODE_ATTR_TREMOR_NOT_MDCT