Add a note about Rockbox not running on Sansas v2 (FS#8477 by Marc Guay).
[Rockbox.git] / firmware / export / config-h10_5gb.h
blobefb62c03fbb9f1b46845ef0c42af3599703ccc5a
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 | 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 128
43 #define LCD_HEIGHT 128
44 #define LCD_DEPTH 16 /* 65536 colours */
45 #define LCD_PIXELFORMAT RGB565SWAPPED /* rgb565 byte-swapped */
47 /*#define IRAM_LCDFRAMEBUFFER IDATA_ATTR*//* put the lcd frame buffer in IRAM */
49 #define CONFIG_KEYPAD IRIVER_H10_PAD
51 /* Define this if you do software codec */
52 #define CONFIG_CODEC SWCODEC
54 /* define this if you have a real-time clock */
55 #ifndef BOOTLOADER
56 #define CONFIG_RTC RTC_E8564
57 #define HAVE_RTC_ALARM
58 #endif
60 /* Define this if you have a software controlled poweroff */
61 #define HAVE_SW_POWEROFF
63 /* The number of bytes reserved for loadable codecs */
64 #define CODEC_SIZE 0x80000
66 /* The number of bytes reserved for loadable plugins */
67 #define PLUGIN_BUFFER_SIZE 0x80000
69 /* Define this if you have the WM8731 audio codec */
70 #define HAVE_WM8731
72 /* WM8731 has no tone controls, so we use the software ones */
73 #define HAVE_SW_TONE_CONTROLS
75 #define AB_REPEAT_ENABLE 1
77 /* FM Tuner */
78 #define CONFIG_TUNER TEA5767
79 #define CONFIG_TUNER_XTAL 32768
81 /* Define this for LCD backlight available */
82 #define HAVE_BACKLIGHT
84 #define AB_REPEAT_ENABLE 1
86 #define BATTERY_CAPACITY_DEFAULT 820 /* default battery capacity */
87 #define BATTERY_CAPACITY_MIN 700 /* min. capacity selectable */
88 #define BATTERY_CAPACITY_MAX 900 /* max. capacity selectable */
89 #define BATTERY_CAPACITY_INC 10 /* capacity increment */
90 #define BATTERY_TYPES_COUNT 1 /* only one type */
92 /* Hardware controlled charging */
93 #define CONFIG_CHARGING CHARGING_SIMPLE
95 /* define this if the unit can be powered or charged via USB */
96 #define HAVE_USB_POWER
98 #ifndef SIMULATOR
100 /* Define this if you have a PortalPlayer PP5020 */
101 #define CONFIG_CPU PP5020
103 /* Define this if you want to use the PP5020 i2c interface */
104 #define CONFIG_I2C I2C_PP5020
106 /* define this if the hardware can be powered off while charging */
107 #define HAVE_POWEROFF_WHILE_CHARGING
109 /* The start address index for ROM builds */
110 #define ROM_START 0x00000000
112 /* The size of the flash ROM */
113 #define FLASH_SIZE 0x100000
115 /* Define this to the CPU frequency */
116 /* TODO: this is probably wrong */
117 #define CPU_FREQ 75000000
119 /* Type of LCD */
120 #define CONFIG_LCD LCD_H10_5GB
122 /* We're able to shut off power to the HDD */
123 #define HAVE_ATA_POWER_OFF
125 /* Offset ( in the firmware file's header ) to the file length */
126 #define FIRMWARE_OFFSET_FILE_LENGTH 0x8
128 /* Offset ( in the firmware file's header ) to the file CRC and data. These are
129 only used when loading the old format rockbox.h10 file */
130 #define FIRMWARE_OFFSET_FILE_CRC 0x0
131 #define FIRMWARE_OFFSET_FILE_DATA 0x8
133 /* #define USB_IPODSTYLE */
135 /* USB On-the-go */
136 #define CONFIG_USBOTG USBOTG_ARC
138 /* enable these for the experimental usb stack */
139 #define HAVE_USBSTACK
140 #define USB_VENDOR_ID 0x0B70
141 #define USB_PRODUCT_ID 0x00BA
143 /* Virtual LED (icon) */
144 #define CONFIG_LED LED_VIRTUAL
146 /* Define this if you have adjustable CPU frequency */
147 #define HAVE_ADJUSTABLE_CPU_FREQ
149 #define MI4_FORMAT
150 #define BOOTFILE_EXT "mi4"
151 #define BOOTFILE "rockbox." BOOTFILE_EXT
152 #define OLD_BOOTFILE "rockbox.h10"
153 #define BOOTDIR "/.rockbox"
155 #define ICODE_ATTR_TREMOR_NOT_MDCT
157 #endif