add HAVE_DISK_STORAGE, and use that instead of HAVE_FLASH_STORAGE when checking for...
[kugel-rb.git] / firmware / export / config-h300.h
blob134e90cd179ed8159e6908997ea2ebce4b7f0b67
1 #define TARGET_TREE /* this target is using the target tree system */
2 /*
3 * This config file is for iriver H320, H340
4 */
5 #define IRIVER_H300_SERIES 1
7 #define MODEL_NAME "iriver H300 series"
9 /* For Rolo and boot loader */
10 #define MODEL_NUMBER 2
12 /* define this if you use an ATA controller */
13 #define HAVE_ATA
15 /* define this if you have a bitmap LCD display */
16 #define HAVE_LCD_BITMAP
18 /* define this if you have a colour LCD */
19 #define HAVE_LCD_COLOR
21 /* define this if you want album art for this target */
22 #define HAVE_ALBUMART
24 /* define this if you can flip your LCD */
25 #define HAVE_LCD_FLIP
27 /* define this if you have access to the quickscreen */
28 #define HAVE_QUICKSCREEN
29 /* define this if you have access to the pitchscreen */
30 #define HAVE_PITCHSCREEN
32 /* define this if you would like tagcache to build on this target */
33 #define HAVE_TAGCACHE
35 /* LCD dimensions */
36 #define LCD_WIDTH 220
37 #define LCD_HEIGHT 176
38 #define LCD_DEPTH 16 /* 65k colours */
39 #define LCD_PIXELFORMAT RGB565 /* rgb565 */
41 /* remote LCD */
42 #define LCD_REMOTE_WIDTH 128
43 #define LCD_REMOTE_HEIGHT 64
44 #define LCD_REMOTE_DEPTH 1
46 #define LCD_REMOTE_PIXELFORMAT VERTICAL_PACKING
48 #define CONFIG_KEYPAD IRIVER_H300_PAD
50 #define CONFIG_REMOTE_KEYPAD H300_REMOTE
52 /* Define this if you do software codec */
53 #define CONFIG_CODEC SWCODEC
55 /* define this if you have a real-time clock */
56 #define CONFIG_RTC RTC_PCF50606
58 /* define this if you have a disk storage, i.e. something
59 that needs spinups and can cause skips when shaked */
60 #define HAVE_DISK_STORAGE
62 /* Define this if you have an remote lcd */
63 #define HAVE_REMOTE_LCD
65 /* Define if we have a hardware defect that causes ticking on the audio line */
66 #define HAVE_REMOTE_LCD_TICKING
68 /* Define this for LCD backlight available */
69 #define HAVE_BACKLIGHT
70 #define HAVE_BACKLIGHT_BRIGHTNESS
72 /* Define this if you have a software controlled poweroff */
73 #define HAVE_SW_POWEROFF
75 /* The number of bytes reserved for loadable codecs */
76 #define CODEC_SIZE 0x80000
78 /* The number of bytes reserved for loadable plugins */
79 #define PLUGIN_BUFFER_SIZE 0x80000
81 #define AB_REPEAT_ENABLE 1
83 #define CONFIG_TUNER TEA5767
84 #define CONFIG_TUNER_XTAL 32768
86 #define HAVE_UDA1380
88 /* define this if you have recording possibility */
89 #define HAVE_RECORDING
91 /* Define bitmask of input sources - recordable bitmask can be defined
92 explicitly if different */
93 #define INPUT_SRC_CAPS (SRC_CAP_MIC | SRC_CAP_LINEIN | SRC_CAP_FMRADIO)
95 /* define hardware samples rate caps mask */
96 #define HW_SAMPR_CAPS (SAMPR_CAP_88 | SAMPR_CAP_44 | SAMPR_CAP_22 | SAMPR_CAP_11)
98 /* define the bitmask of recording sample rates */
99 #define REC_SAMPR_CAPS (SAMPR_CAP_44 | SAMPR_CAP_22 | SAMPR_CAP_11)
101 #define HAVE_AGC
103 #define BATTERY_CAPACITY_DEFAULT 1300 /* default battery capacity */
104 #define BATTERY_CAPACITY_MIN 1300 /* min. capacity selectable */
105 #define BATTERY_CAPACITY_MAX 3200 /* max. capacity selectable */
106 #define BATTERY_CAPACITY_INC 50 /* capacity increment */
107 #define BATTERY_TYPES_COUNT 1 /* only one type */
109 /* Hardware controlled charging with monitoring */
110 #define CONFIG_CHARGING CHARGING_MONITOR
112 /* define this if the unit can be powered or charged via USB */
113 #define HAVE_USB_POWER
115 #ifndef SIMULATOR
117 /* Define this if your LCD can be enabled/disabled */
118 #define HAVE_LCD_ENABLE
120 /* Define this if you have a Motorola SCF5249 */
121 #define CONFIG_CPU MCF5249
123 /* Define this if you want to use coldfire's i2c interface */
124 #define CONFIG_I2C I2C_COLDFIRE
126 /* The size of the flash ROM */
127 #define FLASH_SIZE 0x400000
129 /* Define this to the CPU frequency */
130 #define CPU_FREQ 11289600
132 /* Define this if you have ATA power-off control */
133 #define HAVE_ATA_POWER_OFF
135 /* Virtual LED (icon) */
136 #define CONFIG_LED LED_VIRTUAL
138 #define CONFIG_LCD LCD_H300
140 /* Offset ( in the firmware file's header ) to the file CRC */
141 #define FIRMWARE_OFFSET_FILE_CRC 0
143 /* Offset ( in the firmware file's header ) to the real data */
144 #define FIRMWARE_OFFSET_FILE_DATA 8
146 /* USB On-the-go */
147 #define CONFIG_USBOTG USBOTG_ISP1362
149 /* Define this if you have adjustable CPU frequency */
150 #define HAVE_ADJUSTABLE_CPU_FREQ
152 #define BOOTFILE_EXT "iriver"
153 #define BOOTFILE "rockbox." BOOTFILE_EXT
154 #define BOOTDIR "/.rockbox"
156 #define BOOTLOADER_ENTRYPOINT 0x001F0000
157 #define FLASH_ENTRYPOINT 0x00001000
158 #define FLASH_MAGIC 0xfbfbfbf1
160 /* Define this if there is an EEPROM chip */
161 #define HAVE_EEPROM
163 #endif /* SIMULATOR */
165 /* Define this for FM radio input available */
166 #define HAVE_FMRADIO_IN
168 /** Port-specific settings **/
170 /* Main LCD contrast range and defaults */
171 #define MIN_CONTRAST_SETTING 5
172 #define MAX_CONTRAST_SETTING 63
173 #define DEFAULT_CONTRAST_SETTING 40
175 /* Main LCD backlight brightness range and defaults */
176 /* accepts 0..15 but note that 0 and 1 give a black display on H300! */
177 #define MIN_BRIGHTNESS_SETTING 2 /* 2/16 (12.50%) */
178 #define MAX_BRIGHTNESS_SETTING 15 /* 15/16 (93.75%) */
179 #define DEFAULT_BRIGHTNESS_SETTING 9 /* 9/16 (56.25%) */
181 /* Remote LCD contrast range and defaults */
182 #define MIN_REMOTE_CONTRAST_SETTING 5
183 #define MAX_REMOTE_CONTRAST_SETTING 63
184 #define DEFAULT_REMOTE_CONTRAST_SETTING 42