add HAVE_DISK_STORAGE, and use that instead of HAVE_FLASH_STORAGE when checking for...
[kugel-rb.git] / firmware / export / config-h120.h
blobc75734f7b73ff20067c1047ff57bfe5c55182248
1 #define TARGET_TREE /* this target is using the target tree system */
2 /*
3 * This config file is for iriver H120 and H140
4 */
5 #define IRIVER_H100_SERIES 1
7 #define MODEL_NAME "iriver H120/H140"
9 /* For Rolo and boot loader */
10 #define MODEL_NUMBER 0
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 want album art for this target */
19 #define HAVE_ALBUMART
21 /* define this if you can flip your LCD */
22 #define HAVE_LCD_FLIP
24 /* define this if you can invert the colours on your LCD */
25 #define HAVE_LCD_INVERT
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 160
37 #define LCD_HEIGHT 128
38 #define LCD_DEPTH 2
40 #define LCD_PIXELFORMAT VERTICAL_PACKING
42 /* remote LCD */
43 #define LCD_REMOTE_WIDTH 128
44 #define LCD_REMOTE_HEIGHT 64
45 #define LCD_REMOTE_DEPTH 1
47 #define LCD_REMOTE_PIXELFORMAT VERTICAL_PACKING
49 #define CONFIG_KEYPAD IRIVER_H100_PAD
51 #define CONFIG_REMOTE_KEYPAD H100_REMOTE
53 /* Define this if you do software codec */
54 #define CONFIG_CODEC SWCODEC
56 /* define this if you have a disk storage, i.e. something
57 that needs spinups and can cause skips when shaked */
58 #define HAVE_DISK_STORAGE
60 /* Define this if you have an remote lcd */
61 #define HAVE_REMOTE_LCD
63 /* Define if we have a hardware defect that causes ticking on the audio line */
64 #define HAVE_REMOTE_LCD_TICKING
66 #define CONFIG_LCD LCD_S1D15E06
68 /* Define this for LCD backlight available */
69 #define HAVE_BACKLIGHT
71 /* We can fade the backlight by using PWM */
72 #define HAVE_BACKLIGHT_PWM_FADING
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 AB_REPEAT_ENABLE 1
85 #define CONFIG_TUNER TEA5767
86 #define CONFIG_TUNER_XTAL 32768
88 #define HAVE_UDA1380
90 /* define this if you have recording possibility */
91 #define HAVE_RECORDING
93 /* Define bitmask of input sources - recordable bitmask can be defined
94 explicitly if different */
95 #define INPUT_SRC_CAPS (SRC_CAP_MIC | SRC_CAP_LINEIN | \
96 SRC_CAP_FMRADIO | SRC_CAP_SPDIF)
98 /* define hardware samples rate caps mask */
99 #define HW_SAMPR_CAPS (SAMPR_CAP_88 | SAMPR_CAP_44 | SAMPR_CAP_22 | SAMPR_CAP_11)
101 /* define the bitmask of recording sample rates */
102 #define REC_SAMPR_CAPS (SAMPR_CAP_44 | SAMPR_CAP_22 | SAMPR_CAP_11)
104 #define HAVE_AGC
106 #define BATTERY_CAPACITY_DEFAULT 1300 /* default battery capacity */
107 #define BATTERY_CAPACITY_MIN 1300 /* 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
114 #define CONFIG_CHARGING CHARGING_MONITOR /* FIXME: remove that once monitoring is fixed properly */
116 #ifndef SIMULATOR
118 /* Define this if you have a Motorola SCF5249 */
119 #define CONFIG_CPU MCF5249
121 /* Define this if you want to use coldfire's i2c interface */
122 #define CONFIG_I2C I2C_COLDFIRE
124 /* Define this if you can run rockbox from flash memory */
125 #define HAVE_FLASHED_ROCKBOX
127 /* define this if the hardware can be powered off while charging */
128 #define HAVE_POWEROFF_WHILE_CHARGING
130 /* The size of the flash ROM */
131 #define FLASH_SIZE 0x200000
133 /* Define this to the CPU frequency */
134 #define CPU_FREQ 11289600
136 /* Define this if you have ATA power-off control */
137 #define HAVE_ATA_POWER_OFF
139 /* Offset ( in the firmware file's header ) to the file CRC */
140 #define FIRMWARE_OFFSET_FILE_CRC 0
142 /* Offset ( in the firmware file's header ) to the real data */
143 #define FIRMWARE_OFFSET_FILE_DATA 8
145 #define HAVE_ATA_LED_CTRL
147 /* Define this if you have adjustable CPU frequency */
148 #define HAVE_ADJUSTABLE_CPU_FREQ
150 #define BOOTFILE_EXT "iriver"
151 #define BOOTFILE "rockbox." BOOTFILE_EXT
152 #define BOOTDIR "/.rockbox"
154 #define BOOTLOADER_ENTRYPOINT 0x001F0000
155 #define FLASH_RAMIMAGE_ENTRY 0x00001000
156 #define FLASH_ROMIMAGE_ENTRY 0x00100000
157 #define FLASH_MAGIC 0xfbfbfbf2
159 /* Define this if there is an EEPROM chip */
160 #define HAVE_EEPROM
162 /* Define this if the EEPROM chip is used */
163 #define HAVE_EEPROM_SETTINGS
165 #endif /* !SIMULATOR */
167 /* Define this for S/PDIF output available */
168 #define HAVE_SPDIF_OUT
170 /* Define this if you can control the S/PDIF power */
171 #define HAVE_SPDIF_POWER
173 /* Define this if you have a serial port */
174 /*#define HAVE_SERIAL*/
176 /** Port-specific settings **/
178 #define HAVE_LCD_CONTRAST
180 /* Main LCD backlight brightness range and defaults */
181 #define MIN_CONTRAST_SETTING 14 /* White screen a bit higher than this */
182 #define MAX_CONTRAST_SETTING 63 /* Black screen a bit lower than this */
183 #define DEFAULT_CONTRAST_SETTING 27
185 /* Remote LCD contrast range and defaults */
186 #define MIN_REMOTE_CONTRAST_SETTING 5
187 #define MAX_REMOTE_CONTRAST_SETTING 63
188 #define DEFAULT_REMOTE_CONTRAST_SETTING 42