Add DM320 I²C driver, although not (yet) enabled in the sources.
[Rockbox.git] / firmware / export / config-h100.h
blob987f9a686e3adad2ef47be44e323b8aed5a08105
1 #if defined(MEM) && (MEM > 16)
2 #error "re-run configure this just so wrong"
3 #endif
5 #define TARGET_TREE /* this target is using the target tree system */
7 /*
8 * This config file is for iriver iHP-100, iHP-110, iHP-115
9 */
10 #define IRIVER_H100_SERIES 1
12 /* For Rolo and boot loader */
13 #define MODEL_NUMBER 1
15 /* define this if you use an ATA controller */
16 #define HAVE_ATA
18 /* define this if you have a bitmap LCD display */
19 #define HAVE_LCD_BITMAP
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 can invert the colours on your LCD */
28 #define HAVE_LCD_INVERT
30 /* define this if you have access to the quickscreen */
31 #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 160
40 #define LCD_HEIGHT 128
41 #define LCD_DEPTH 2
43 #define LCD_PIXELFORMAT VERTICAL_PACKING
45 /* remote LCD */
46 #define LCD_REMOTE_WIDTH 128
47 #define LCD_REMOTE_HEIGHT 64
48 #define LCD_REMOTE_DEPTH 1
50 #define LCD_REMOTE_PIXELFORMAT VERTICAL_PACKING
52 #define CONFIG_KEYPAD IRIVER_H100_PAD
54 #define CONFIG_REMOTE_KEYPAD H100_REMOTE
56 /* Define this if you do software codec */
57 #define CONFIG_CODEC SWCODEC
59 /* Define this if you have an remote lcd */
60 #define HAVE_REMOTE_LCD
62 /* Define if we have a hardware defect that causes ticking on the audio line */
63 #define HAVE_REMOTE_LCD_TICKING
65 #define CONFIG_LCD LCD_S1D15E06
67 /* Define this for LCD backlight available */
68 #define HAVE_BACKLIGHT
70 /* We can fade the backlight by using PWM */
71 #define HAVE_BACKLIGHT_PWM_FADING
73 /* Define this if you have a software controlled poweroff */
74 #define HAVE_SW_POWEROFF
76 /* The number of bytes reserved for loadable codecs */
77 #define CODEC_SIZE 0x80000
79 /* The number of bytes reserved for loadable plugins */
80 #define PLUGIN_BUFFER_SIZE 0x80000
82 #define AB_REPEAT_ENABLE 1
84 #define CONFIG_TUNER TEA5767
85 #define CONFIG_TUNER_XTAL 32768
87 #define HAVE_UDA1380
89 /* define this if you have recording possibility */
90 #define HAVE_RECORDING
92 /* define hardware samples rate caps mask */
93 #define HW_SAMPR_CAPS (SAMPR_CAP_88 | SAMPR_CAP_44 | SAMPR_CAP_22 | SAMPR_CAP_11)
95 /* define the bitmask of recording sample rates */
96 #define REC_SAMPR_CAPS (SAMPR_CAP_44 | SAMPR_CAP_22 | SAMPR_CAP_11)
98 #define HAVE_AGC
100 #define BATTERY_CAPACITY_DEFAULT 1300 /* default battery capacity */
101 #define BATTERY_CAPACITY_MIN 1300 /* min. capacity selectable */
102 #define BATTERY_CAPACITY_MAX 3200 /* max. capacity selectable */
103 #define BATTERY_CAPACITY_INC 50 /* capacity increment */
104 #define BATTERY_TYPES_COUNT 1 /* only one type */
106 /* Hardware controlled charging */
107 //#define CONFIG_CHARGING CHARGING_SIMPLE
108 #define CONFIG_CHARGING CHARGING_MONITOR /* FIXME: remove that once monitoring is fixed properly */
110 #ifndef SIMULATOR
112 /* Define this if you have a Motorola SCF5249 */
113 #define CONFIG_CPU MCF5249
115 /* Define this if you want to use coldfire's i2c interface */
116 #define CONFIG_I2C I2C_COLDFIRE
118 /* Define this if you can run rockbox from flash memory */
119 /* In theory we can, but somebody needs to verify there are no issues. */
120 #define HAVE_FLASHED_ROCKBOX
122 /* define this if the hardware can be powered off while charging */
123 #define HAVE_POWEROFF_WHILE_CHARGING
125 /* The size of the flash ROM */
126 #define FLASH_SIZE 0x200000
128 /* Define this to the CPU frequency */
129 #define CPU_FREQ 11289600
131 /* Define this if you have ATA power-off control */
132 #define HAVE_ATA_POWER_OFF
134 /* Offset ( in the firmware file's header ) to the file CRC */
135 #define FIRMWARE_OFFSET_FILE_CRC 0
137 /* Offset ( in the firmware file's header ) to the real data */
138 #define FIRMWARE_OFFSET_FILE_DATA 8
140 #define HAVE_ATA_LED_CTRL
142 /* Define this if you have adjustable CPU frequency */
143 #define HAVE_ADJUSTABLE_CPU_FREQ
145 #define BOOTFILE_EXT "iriver"
146 #define BOOTFILE "rockbox." BOOTFILE_EXT
147 #define BOOTDIR "/.rockbox"
149 #define BOOTLOADER_ENTRYPOINT 0x001F0000
150 #define FLASH_RAMIMAGE_ENTRY 0x00001000
151 #define FLASH_ROMIMAGE_ENTRY 0x00100000
152 #define FLASH_MAGIC 0xfbfbfbf2
154 /* Define this if there is an EEPROM chip */
155 #define HAVE_EEPROM
157 /* Define this if the EEPROM chip is used */
158 #define HAVE_EEPROM_SETTINGS
160 #endif /* !SIMULATOR */
162 /* Define bitmask of input sources - recordable bitmask can be defined
163 explicitly if different */
164 #define INPUT_SRC_CAPS (SRC_CAP_MIC | SRC_CAP_LINEIN | \
165 SRC_CAP_FMRADIO | SRC_CAP_SPDIF)
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
172 #define SPDIF_POWER_INVERTED
174 /* Define this for FM radio input available */
175 #define HAVE_FMRADIO_IN
177 /** Port-specific settings **/
179 #define HAVE_LCD_CONTRAST
181 /* Main LCD backlight brightness range and defaults */
182 #define MIN_CONTRAST_SETTING 14 /* White screen a bit higher than this */
183 #define MAX_CONTRAST_SETTING 63 /* Black screen a bit lower than this */
184 #define DEFAULT_CONTRAST_SETTING 27
186 /* Remote LCD contrast range and defaults */
187 #define MIN_REMOTE_CONTRAST_SETTING 5
188 #define MAX_REMOTE_CONTRAST_SETTING 63
189 #define DEFAULT_REMOTE_CONTRAST_SETTING 42