as3514: mute headphones at the lowest volume
[kugel-rb.git] / firmware / export / config / gogearhdd1630.h
blob4ba8d9288b13d6f3a9a7cf13b3f8bb08b615cec0
1 /*
2 * This config file is for the Philips GoGear HDD16x0/HDD18x0
3 */
5 #define TARGET_TREE /* this target is using the target tree system */
7 /* For Rolo and boot loader */
8 #define MODEL_NUMBER 31
9 #define MODEL_NAME "Philips GoGear HDD16x0"
11 /* define this if you use an ATA controller */
12 #define CONFIG_STORAGE STORAGE_ATA
14 /*define this if the ATA controller and method of USB access support LBA48 */
15 #define HAVE_LBA48
17 /* define this if you have recording possibility */
18 #define HAVE_RECORDING
20 /* Define bitmask of input sources - recordable bitmask can be defined
21 explicitly if different */
22 #define INPUT_SRC_CAPS (SRC_CAP_MIC | SRC_CAP_LINEIN | SRC_CAP_FMRADIO)
24 /* define the bitmask of hardware sample rates */
25 #define HW_SAMPR_CAPS (SAMPR_CAP_96 | SAMPR_CAP_88 | SAMPR_CAP_48 | \
26 SAMPR_CAP_44 | SAMPR_CAP_32 | SAMPR_CAP_8)
28 /* define the bitmask of recording sample rates */
29 #define REC_SAMPR_CAPS (SAMPR_CAP_96 | SAMPR_CAP_88 | SAMPR_CAP_48 | \
30 SAMPR_CAP_44 | SAMPR_CAP_32 | SAMPR_CAP_8)
32 /* define this if you have a bitmap LCD display */
33 #define HAVE_LCD_BITMAP
35 /* define this if you have a colour LCD */
36 #define HAVE_LCD_COLOR
38 /* define this if you want album art for this target */
39 #define HAVE_ALBUMART
41 /* define this to enable bitmap scaling */
42 #define HAVE_BMP_SCALING
44 /* define this to enable JPEG decoding */
45 #define HAVE_JPEG
47 /* define this if you have access to the quickscreen */
48 #define HAVE_QUICKSCREEN
50 /* define this if you have access to the pitchscreen */
51 #define HAVE_PITCHSCREEN
53 /* define this if you would like tagcache to build on this target */
54 #define HAVE_TAGCACHE
56 /* LCD dimensions */
57 #define LCD_WIDTH 128
58 #define LCD_HEIGHT 128
59 #define LCD_DEPTH 16 /* 65536 colours */
60 #define LCD_PIXELFORMAT RGB565 /* rgb565 byte-swapped */
62 #ifndef BOOTLOADER
63 /* Define this if your LCD can be enabled/disabled */
64 /* #define HAVE_LCD_ENABLE */
66 /* Define this if your LCD can be put to sleep. HAVE_LCD_ENABLE
67 * should be defined as well.
68 * We can currently put the lcd to sleep but it won't wake up properly */
69 /* #define HAVE_LCD_SLEEP */
70 /* #define HAVE_LCD_SLEEP_SETTING */
71 #endif
73 /* define this if you can flip your LCD */
74 #define HAVE_LCD_FLIP
76 /* define this if you can invert the colours on your LCD */
77 #define HAVE_LCD_INVERT
79 /* #define IRAM_LCDFRAMEBUFFER IDATA_ATTR *//* put the lcd frame buffer in IRAM */
81 #define CONFIG_KEYPAD PHILIPS_HDD1630_PAD
83 /* Define this to enable morse code input */
84 #define HAVE_MORSE_INPUT
86 /* define this if the target has volume keys which can be used in the lists */
87 #define HAVE_VOLUME_IN_LIST
89 /* Define this if you do software codec */
90 #define CONFIG_CODEC SWCODEC
92 /* define this if you have a real-time clock. The HDD16x0 has a PCF8563 RTC,
93 but it's register compatible with the E8564. */
94 #ifndef BOOTLOADER
95 #define CONFIG_RTC RTC_E8564
96 #define HAVE_RTC_ALARM
97 #endif
99 /* Define this if you have a software controlled poweroff */
100 #define HAVE_SW_POWEROFF
102 /* The number of bytes reserved for loadable codecs */
103 #define CODEC_SIZE 0x100000
105 /* The number of bytes reserved for loadable plugins */
106 #define PLUGIN_BUFFER_SIZE 0x80000
108 /* Define this if you have the WM8731 audio codec */
109 #define HAVE_WM8731
111 /* WM8731 has no tone controls, so we use the software ones */
112 #define HAVE_SW_TONE_CONTROLS
114 /* TODO: #define AB_REPEAT_ENABLE 1 */
116 /* FM Tuner */
117 #define CONFIG_TUNER TEA5767
118 #define CONFIG_TUNER_XTAL 32768
120 /* define this if you have a disk storage, i.e. something
121 that needs spinups and can cause skips when shaked */
122 #define HAVE_DISK_STORAGE
124 /* Define this for LCD backlight available */
125 #define HAVE_BACKLIGHT
126 #define HAVE_BACKLIGHT_BRIGHTNESS
127 /* #define CONFIG_BACKLIGHT_FADING BACKLIGHT_FADING_SW_SETTING */
129 /* Main LCD backlight brightness range and defaults */
130 #define MIN_BRIGHTNESS_SETTING 1
131 #define MAX_BRIGHTNESS_SETTING 16
132 #define DEFAULT_BRIGHTNESS_SETTING 13 /* match OF brightness */
134 /* define this if you have a light associated with the buttons */
135 #define HAVE_BUTTON_LIGHT
136 #define HAVE_BUTTONLIGHT_BRIGHTNESS
138 #define BATTERY_CAPACITY_DEFAULT 630 /* default battery capacity */
139 #define BATTERY_CAPACITY_MIN 630 /* min. capacity selectable */
140 #define BATTERY_CAPACITY_MAX 630 /* max. capacity selectable */
141 #define BATTERY_CAPACITY_INC 0 /* capacity increment */
142 #define BATTERY_TYPES_COUNT 1 /* only one type */
144 /* Hardware controlled charging */
145 #define CONFIG_CHARGING CHARGING_SIMPLE
147 /* define this if the unit can be powered or charged via USB */
148 #define HAVE_USB_POWER
150 /* Define this if you have a PortalPlayer PP5020 */
151 #define CONFIG_CPU PP5022
153 /* Define this if you want to use the PP5020 i2c interface */
154 #define CONFIG_I2C I2C_PP5020
156 /* define this if the hardware can be powered off while charging */
157 #define HAVE_POWEROFF_WHILE_CHARGING
159 /* The start address index for ROM builds */
160 #define ROM_START 0x00000000
162 /* The size of the flash ROM */
163 #define FLASH_SIZE 0x100000
165 /* Define this to the CPU frequency */
166 #define CPU_FREQ 75000000
168 /* Type of LCD */
169 #define CONFIG_LCD LCD_HDD1630
171 /* Define this if your LCD can set contrast */
172 #define HAVE_LCD_CONTRAST
174 #define MIN_CONTRAST_SETTING 0
175 #define MAX_CONTRAST_SETTING 127
176 #define DEFAULT_CONTRAST_SETTING 63 /* Match boot contrast */
178 /* We're able to shut off power to the HDD */
179 #define HAVE_ATA_POWER_OFF
181 /* Offset ( in the firmware file's header ) to the file CRC and data. These are
182 only used when loading the old format rockbox.e200 file */
183 #define FIRMWARE_OFFSET_FILE_CRC 0x0
184 #define FIRMWARE_OFFSET_FILE_DATA 0x8
186 /* USB On-the-go */
187 #define CONFIG_USBOTG USBOTG_ARC
189 /* enable these for the experimental usb stack */
190 #define HAVE_USBSTACK
191 #define USE_ROCKBOX_USB
192 #define USB_VENDOR_ID 0x0471
193 #define USB_PRODUCT_ID 0x014C
194 #define HAVE_USB_HID_MOUSE
196 /* Define this if you have adjustable CPU frequency */
197 #define HAVE_ADJUSTABLE_CPU_FREQ
199 #define MI4_FORMAT
200 #define BOOTFILE_EXT "mi4"
201 #define BOOTFILE "rockbox." BOOTFILE_EXT
202 #define BOOTDIR "/.rockbox"
204 #define ICODE_ATTR_TREMOR_NOT_MDCT
207 /* DMA is used only for reading on PP502x because although reads are ~8x faster
208 * writes appear to be ~25% slower.
210 #define HAVE_ATA_DMA
212 /* Define this if a programmable hotkey is mapped */
213 #define HAVE_HOTKEY