as3525v2: disable adjustable CPU frequency
[kugel-rb.git] / firmware / export / config / iriverh10.h
blob95e643e3d8f6b8fab58dbc67265003244a96369f
1 /*
2 * This config file is for the iriver H10 20Gb
3 */
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 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 160
57 #define LCD_HEIGHT 128
58 #define LCD_DEPTH 16 /* 65536 colours */
59 #define LCD_PIXELFORMAT RGB565SWAPPED /* rgb565 byte-swapped */
61 #ifndef BOOTLOADER
62 /* Define this if your LCD can be enabled/disabled */
63 #define HAVE_LCD_ENABLE
65 /* Define this if your LCD can be put to sleep. HAVE_LCD_ENABLE
66 * should be defined as well.
67 * We can currently put the lcd to sleep but it won't wake up properly */
68 #define HAVE_LCD_SLEEP
69 #define HAVE_LCD_SLEEP_SETTING
70 #endif
72 /* define this if you can flip your LCD */
73 #define HAVE_LCD_FLIP
75 /* define this if you can invert the colours on your LCD */
76 #define HAVE_LCD_INVERT
78 /* #define IRAM_LCDFRAMEBUFFER IDATA_ATTR *//* put the lcd frame buffer in IRAM */
80 #define CONFIG_KEYPAD IRIVER_H10_PAD
82 /* Define this to enable morse code input */
83 #define HAVE_MORSE_INPUT
85 /* Define this if you do software codec */
86 #define CONFIG_CODEC SWCODEC
88 /* define this if you have a real-time clock */
89 #ifndef BOOTLOADER
90 #define CONFIG_RTC RTC_E8564
91 #define HAVE_RTC_ALARM
92 #endif
94 /* define this if you have a disk storage, i.e. something
95 that needs spinups and can cause skips when shaked */
96 #define HAVE_DISK_STORAGE
98 /* Define this if you have a software controlled poweroff */
99 #define HAVE_SW_POWEROFF
101 /* The number of bytes reserved for loadable codecs */
102 #define CODEC_SIZE 0x100000
104 /* The number of bytes reserved for loadable plugins */
105 #define PLUGIN_BUFFER_SIZE 0x80000
107 /* Define this if you have the WM8731 audio codec */
108 #define HAVE_WM8731
110 /* WM8731 has no tone controls, so we use the software ones */
111 #define HAVE_SW_TONE_CONTROLS
113 #define AB_REPEAT_ENABLE 1
115 /* FM Tuner */
116 #define CONFIG_TUNER TEA5767
117 #define CONFIG_TUNER_XTAL 32768
119 /* Define this for LCD backlight available */
120 #define HAVE_BACKLIGHT
122 #define AB_REPEAT_ENABLE 1
124 #define BATTERY_CAPACITY_DEFAULT 1550 /* default battery capacity */
125 #define BATTERY_CAPACITY_MIN 1500 /* min. capacity selectable */
126 #define BATTERY_CAPACITY_MAX 3200 /* max. capacity selectable */
127 #define BATTERY_CAPACITY_INC 50 /* capacity increment */
128 #define BATTERY_TYPES_COUNT 1 /* only one type */
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
182 /* Define this if you have adjustable CPU frequency */
183 #define HAVE_ADJUSTABLE_CPU_FREQ
185 #define MI4_FORMAT
186 #define BOOTFILE_EXT "mi4"
187 #define BOOTFILE "rockbox." BOOTFILE_EXT
188 #define BOOTDIR "/.rockbox"
190 #define ICODE_ATTR_TREMOR_NOT_MDCT
193 /* DMA is used only for reading on PP502x because although reads are ~8x faster
194 * writes appear to be ~25% slower.
196 #define HAVE_ATA_DMA
198 /* Define this if a programmable hotkey is mapped */
199 #define HAVE_HOTKEY