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