New USB stack
[kugel-rb.git] / firmware / export / config-h10.h
blobc69b4335037532a05aacc5cf9829a2b2e7a5aca3
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 have recording possibility */
12 #define HAVE_RECORDING
13 /* Define bitmask of input sources - recordable bitmask can be defined
14 explicitly if different */
15 #define INPUT_SRC_CAPS (SRC_CAP_MIC | SRC_CAP_LINEIN | SRC_CAP_FMRADIO)
17 /* define the bitmask of hardware sample rates */
18 #define HW_SAMPR_CAPS (SAMPR_CAP_44)
20 /* define the bitmask of recording sample rates */
21 #define REC_SAMPR_CAPS (SAMPR_CAP_44)
23 /* define this if you have a bitmap LCD display */
24 #define HAVE_LCD_BITMAP
26 /* define this if you have a colour LCD */
27 #define HAVE_LCD_COLOR
29 /* define this if you want album art for this target */
30 #define HAVE_ALBUMART
32 /* define this if you have access to the quickscreen */
33 #define HAVE_QUICKSCREEN
35 /* define this if you have access to the pitchscreen */
36 #define HAVE_PITCHSCREEN
38 /* define this if you would like tagcache to build on this target */
39 #define HAVE_TAGCACHE
41 /* LCD dimensions */
42 #define LCD_WIDTH 160
43 #define LCD_HEIGHT 128
44 #define LCD_DEPTH 16 /* 65536 colours */
45 #define LCD_PIXELFORMAT RGB565SWAPPED /* rgb565 byte-swapped */
47 /* Define this if your LCD can be enabled/disabled */
48 #define HAVE_LCD_ENABLE
50 /* Define this if your LCD can be put to sleep. HAVE_LCD_ENABLE
51 * should be defined as well.
52 * We can currently put the lcd to sleep but it won't wake up properly */
53 #define HAVE_LCD_SLEEP
55 /* define this if you can flip your LCD */
56 #define HAVE_LCD_FLIP
58 /* define this if you can invert the colours on your LCD */
59 #define HAVE_LCD_INVERT
61 /* #define IRAM_LCDFRAMEBUFFER IDATA_ATTR *//* put the lcd frame buffer in IRAM */
63 #define CONFIG_KEYPAD IRIVER_H10_PAD
65 /* Define this if you do software codec */
66 #define CONFIG_CODEC SWCODEC
68 /* define this if you have a real-time clock */
69 #ifndef BOOTLOADER
70 #define CONFIG_RTC RTC_E8564
71 #define HAVE_RTC_ALARM
72 #endif
74 /* Define this if you have a software controlled poweroff */
75 #define HAVE_SW_POWEROFF
77 /* The number of bytes reserved for loadable codecs */
78 #define CODEC_SIZE 0x80000
80 /* The number of bytes reserved for loadable plugins */
81 #define PLUGIN_BUFFER_SIZE 0x80000
83 /* Define this if you have the WM8731 audio codec */
84 #define HAVE_WM8731
86 /* WM8731 has no tone controls, so we use the software ones */
87 #define HAVE_SW_TONE_CONTROLS
89 #define AB_REPEAT_ENABLE 1
91 /* FM Tuner */
92 #define CONFIG_TUNER TEA5767
93 #define CONFIG_TUNER_XTAL 32768
95 /* Define this for LCD backlight available */
96 #define HAVE_BACKLIGHT
98 #define AB_REPEAT_ENABLE 1
100 #define BATTERY_CAPACITY_DEFAULT 1550 /* default battery capacity */
101 #define BATTERY_CAPACITY_MIN 1500 /* min. capacity selectable */
102 #define BATTERY_CAPACITY_MAX 3200 /* max. capacity selectable */
103 #define BATTERY_CAPACITY_INC 50 /* capacity increment */
104 #define BATTERY_TYPES_COUNT 1 /* only one type */
106 /* Hardware controlled charging */
107 #define CONFIG_CHARGING CHARGING_SIMPLE
109 /* define this if the unit can be powered or charged via USB */
110 #define HAVE_USB_POWER
112 #ifndef SIMULATOR
114 /* Define this if you have a PortalPlayer PP5020 */
115 #define CONFIG_CPU PP5020
117 /* Define this if you want to use the PP5020 i2c interface */
118 #define CONFIG_I2C I2C_PP5020
120 /* define this if the hardware can be powered off while charging */
121 #define HAVE_POWEROFF_WHILE_CHARGING
123 /* The start address index for ROM builds */
124 #define ROM_START 0x00000000
126 /* The size of the flash ROM */
127 #define FLASH_SIZE 0x100000
129 /* Define this to the CPU frequency */
130 #define CPU_FREQ 75000000
132 /* Type of LCD */
133 #define CONFIG_LCD LCD_H10_20GB
135 /* Define this if your LCD can set contrast */
136 #define HAVE_LCD_CONTRAST
138 #define MIN_CONTRAST_SETTING 0
139 #define MAX_CONTRAST_SETTING 30
140 #define DEFAULT_CONTRAST_SETTING 14 /* Match boot contrast */
142 /* We're able to shut off power to the HDD */
143 #define HAVE_ATA_POWER_OFF
145 /* Offset ( in the firmware file's header ) to the file CRC and data. These are
146 only used when loading the old format rockbox.h10 file */
147 #define FIRMWARE_OFFSET_FILE_CRC 0x0
148 #define FIRMWARE_OFFSET_FILE_DATA 0x8
150 /* #define USB_IPODSTYLE */
152 /* USB On-the-go */
153 #define CONFIG_USBOTG USBOTG_ARC
155 /* enable these for the experimental usb stack */
156 #define HAVE_USBSTACK
157 #define USB_VENDOR_ID 0x0B70
158 #define USB_PRODUCT_ID 0x00BA
160 /* Virtual LED (icon) */
161 #define CONFIG_LED LED_VIRTUAL
163 /* Define this if you have adjustable CPU frequency */
164 #define HAVE_ADJUSTABLE_CPU_FREQ
166 #define MI4_FORMAT
167 #define BOOTFILE_EXT "mi4"
168 #define BOOTFILE "rockbox." BOOTFILE_EXT
169 #define OLD_BOOTFILE "rockbox.h10"
170 #define BOOTDIR "/.rockbox"
172 #define ICODE_ATTR_TREMOR_NOT_MDCT
174 #endif