Fix typo.
[Rockbox.git] / firmware / export / config-h10_5gb.h
blobcb5d4ecae056650cdc9cd9118882d89e081d68fa
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 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)
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 have access to the quickscreen */
30 #define HAVE_QUICKSCREEN
32 /* define this if you have access to the pitchscreen */
33 #define HAVE_PITCHSCREEN
35 /* define this if you would like tagcache to build on this target */
36 #define HAVE_TAGCACHE
38 /* LCD dimensions */
39 #define LCD_WIDTH 128
40 #define LCD_HEIGHT 128
41 #define LCD_DEPTH 16 /* 65536 colours */
42 #define LCD_PIXELFORMAT RGB565SWAPPED /* rgb565 byte-swapped */
44 /*#define IRAM_LCDFRAMEBUFFER IDATA_ATTR*//* put the lcd frame buffer in IRAM */
46 #define CONFIG_KEYPAD IRIVER_H10_PAD
48 /* Define this if you do software codec */
49 #define CONFIG_CODEC SWCODEC
51 /* define this if you have a real-time clock */
52 #ifndef BOOTLOADER
53 #define CONFIG_RTC RTC_E8564
54 #endif
56 /* Define this if you have a software controlled poweroff */
57 #define HAVE_SW_POWEROFF
59 /* The number of bytes reserved for loadable codecs */
60 #define CODEC_SIZE 0x80000
62 /* The number of bytes reserved for loadable plugins */
63 #define PLUGIN_BUFFER_SIZE 0x80000
65 /* Define this if you have the WM8731 audio codec */
66 #define HAVE_WM8731
68 /* WM8731 has no tone controls, so we use the software ones */
69 #define HAVE_SW_TONE_CONTROLS
71 #define AB_REPEAT_ENABLE 1
73 /* FM Tuner */
74 /*#define CONFIG_TUNER TEA5767
75 #define CONFIG_TUNER_XTAL 32768 *//* TODO: what is this? */
77 /* Define this for LCD backlight available */
78 #define HAVE_BACKLIGHT
80 #define AB_REPEAT_ENABLE 1
82 #define BATTERY_CAPACITY_DEFAULT 820 /* default battery capacity */
83 #define BATTERY_CAPACITY_MIN 700 /* min. capacity selectable */
84 #define BATTERY_CAPACITY_MAX 900 /* max. capacity selectable */
85 #define BATTERY_CAPACITY_INC 10 /* capacity increment */
86 #define BATTERY_TYPES_COUNT 1 /* only one type */
88 /* Hardware controlled charging */
89 #define CONFIG_CHARGING CHARGING_SIMPLE
91 /* define this if the unit can be powered or charged via USB */
92 #define HAVE_USB_POWER
94 #ifndef SIMULATOR
96 /* Define this if you have a PortalPlayer PP5020 */
97 #define CONFIG_CPU PP5020
99 /* Define this if you want to use the PP5020 i2c interface */
100 #define CONFIG_I2C I2C_PP5020
102 /* define this if the hardware can be powered off while charging */
103 #define HAVE_POWEROFF_WHILE_CHARGING
105 /* The start address index for ROM builds */
106 #define ROM_START 0x00000000
108 /* The size of the flash ROM */
109 #define FLASH_SIZE 0x100000
111 /* Define this to the CPU frequency */
112 /* TODO: this is probably wrong */
113 #define CPU_FREQ 75000000
115 /* Type of LCD */
116 #define CONFIG_LCD LCD_H10_5GB
118 /* We're able to shut off power to the HDD */
119 #define HAVE_ATA_POWER_OFF
121 /* Offset ( in the firmware file's header ) to the file length */
122 #define FIRMWARE_OFFSET_FILE_LENGTH 0x8
124 /* Offset ( in the firmware file's header ) to the file CRC and data. These are
125 only used when loading the old format rockbox.h10 file */
126 #define FIRMWARE_OFFSET_FILE_CRC 0x0
127 #define FIRMWARE_OFFSET_FILE_DATA 0x8
129 /* #define USB_IPODSTYLE */
131 /* USB On-the-go */
132 #define CONFIG_USBOTG USBOTG_ARC
134 /* enable these for the experimental usb stack
135 #define HAVE_USBSTACK
136 #define USBSTACK_CAPS CONTROLLER_DEVICE
139 /* Virtual LED (icon) */
140 #define CONFIG_LED LED_VIRTUAL
142 /* Define this if you have adjustable CPU frequency */
143 #define HAVE_ADJUSTABLE_CPU_FREQ
145 #define MI4_FORMAT
146 #define BOOTFILE_EXT "mi4"
147 #define BOOTFILE "rockbox." BOOTFILE_EXT
148 #define OLD_BOOTFILE "rockbox.h10"
149 #define BOOTDIR "/.rockbox"
151 #define ICODE_ATTR_TREMOR_NOT_MDCT
153 #endif