Updated our source code header to explicitly mention that we are GPL v2 or
[Rockbox.git] / firmware / export / config-h120.h
blobafb848898cd54b6904712981d7013f55099f8f37
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 /* For Rolo and boot loader */
8 #define MODEL_NUMBER 0
10 /* define this if you use an ATA controller */
11 #define HAVE_ATA
13 /* define this if you have a bitmap LCD display */
14 #define HAVE_LCD_BITMAP
16 /* define this if you want album art for this target */
17 #define HAVE_ALBUMART
19 /* define this if you can flip your LCD */
20 #define HAVE_LCD_FLIP
22 /* define this if you can invert the colours on your LCD */
23 #define HAVE_LCD_INVERT
25 /* define this if you have access to the quickscreen */
26 #define HAVE_QUICKSCREEN
27 /* define this if you have access to the pitchscreen */
28 #define HAVE_PITCHSCREEN
30 /* define this if you would like tagcache to build on this target */
31 #define HAVE_TAGCACHE
33 /* LCD dimensions */
34 #define LCD_WIDTH 160
35 #define LCD_HEIGHT 128
36 #define LCD_DEPTH 2
38 #define LCD_PIXELFORMAT VERTICAL_PACKING
40 /* remote LCD */
41 #define LCD_REMOTE_WIDTH 128
42 #define LCD_REMOTE_HEIGHT 64
43 #define LCD_REMOTE_DEPTH 1
45 #define LCD_REMOTE_PIXELFORMAT VERTICAL_PACKING
47 #define CONFIG_KEYPAD IRIVER_H100_PAD
49 #define CONFIG_REMOTE_KEYPAD H100_REMOTE
51 /* Define this if you do software codec */
52 #define CONFIG_CODEC SWCODEC
54 /* Define this if you have an remote lcd */
55 #define HAVE_REMOTE_LCD
57 /* Define if we have a hardware defect that causes ticking on the audio line */
58 #define HAVE_REMOTE_LCD_TICKING
60 #define CONFIG_LCD LCD_S1D15E06
62 /* Define this for LCD backlight available */
63 #define HAVE_BACKLIGHT
65 /* We can fade the backlight by using PWM */
66 #define HAVE_BACKLIGHT_PWM_FADING
68 /* Define this if you have a software controlled poweroff */
69 #define HAVE_SW_POWEROFF
71 /* The number of bytes reserved for loadable codecs */
72 #define CODEC_SIZE 0x80000
74 /* The number of bytes reserved for loadable plugins */
75 #define PLUGIN_BUFFER_SIZE 0x80000
77 #define AB_REPEAT_ENABLE 1
79 #define CONFIG_TUNER TEA5767
80 #define CONFIG_TUNER_XTAL 32768
82 #define HAVE_UDA1380
84 /* define this if you have recording possibility */
85 #define HAVE_RECORDING
87 /* Define bitmask of input sources - recordable bitmask can be defined
88 explicitly if different */
89 #define INPUT_SRC_CAPS (SRC_CAP_MIC | SRC_CAP_LINEIN | \
90 SRC_CAP_FMRADIO | SRC_CAP_SPDIF)
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 #define HAVE_FLASHED_ROCKBOX
121 /* define this if the hardware can be powered off while charging */
122 #define HAVE_POWEROFF_WHILE_CHARGING
124 /* The size of the flash ROM */
125 #define FLASH_SIZE 0x200000
127 /* Define this to the CPU frequency */
128 #define CPU_FREQ 11289600
130 /* Define this if you have ATA power-off control */
131 #define HAVE_ATA_POWER_OFF
133 /* Offset ( in the firmware file's header ) to the file CRC */
134 #define FIRMWARE_OFFSET_FILE_CRC 0
136 /* Offset ( in the firmware file's header ) to the real data */
137 #define FIRMWARE_OFFSET_FILE_DATA 8
139 #define HAVE_ATA_LED_CTRL
141 /* Define this if you have adjustable CPU frequency */
142 #define HAVE_ADJUSTABLE_CPU_FREQ
144 #define BOOTFILE_EXT "iriver"
145 #define BOOTFILE "rockbox." BOOTFILE_EXT
146 #define BOOTDIR "/.rockbox"
148 #define BOOTLOADER_ENTRYPOINT 0x001F0000
149 #define FLASH_RAMIMAGE_ENTRY 0x00001000
150 #define FLASH_ROMIMAGE_ENTRY 0x00100000
151 #define FLASH_MAGIC 0xfbfbfbf2
153 /* Define this if there is an EEPROM chip */
154 #define HAVE_EEPROM
156 /* Define this if the EEPROM chip is used */
157 #define HAVE_EEPROM_SETTINGS
159 #endif /* !SIMULATOR */
161 /* Define this for S/PDIF output available */
162 #define HAVE_SPDIF_OUT
164 /* Define this if you can control the S/PDIF power */
165 #define HAVE_SPDIF_POWER
167 /* Define this if you have a serial port */
168 /*#define HAVE_SERIAL*/
170 /** Port-specific settings **/
172 #define HAVE_LCD_CONTRAST
174 /* Main LCD backlight brightness range and defaults */
175 #define MIN_CONTRAST_SETTING 14 /* White screen a bit higher than this */
176 #define MAX_CONTRAST_SETTING 63 /* Black screen a bit lower than this */
177 #define DEFAULT_CONTRAST_SETTING 27
179 /* Remote LCD contrast range and defaults */
180 #define MIN_REMOTE_CONTRAST_SETTING 5
181 #define MAX_REMOTE_CONTRAST_SETTING 63
182 #define DEFAULT_REMOTE_CONTRAST_SETTING 42