merge 19488 back from the 3.1 branch
[kugel-rb.git] / firmware / export / config-hdd1630.h
blob4b2e7ba9fd90841d5fa41977d2ae2c853a72d235
1 /*
2 * This config file is for the Philips GoGear HDD16x0/HDD63x0
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 you have recording possibility */
15 /* #define HAVE_RECORDING */
17 /* Define bitmask of input sources - recordable bitmask can be defined
18 explicitly if different */
19 #define INPUT_SRC_CAPS (SRC_CAP_MIC | SRC_CAP_LINEIN | SRC_CAP_FMRADIO)
21 /* define the bitmask of hardware sample rates */
22 #define HW_SAMPR_CAPS (SAMPR_CAP_96 | SAMPR_CAP_88 | SAMPR_CAP_48 | \
23 SAMPR_CAP_44 | SAMPR_CAP_32 | SAMPR_CAP_8)
25 /* define the bitmask of recording sample rates */
26 #define REC_SAMPR_CAPS (SAMPR_CAP_96 | SAMPR_CAP_88 | SAMPR_CAP_48 | \
27 SAMPR_CAP_44 | SAMPR_CAP_32 | SAMPR_CAP_8)
29 /* define this if you have a bitmap LCD display */
30 #define HAVE_LCD_BITMAP
32 /* define this if you have a colour LCD */
33 #define HAVE_LCD_COLOR
35 /* define this if you want album art for this target */
36 #define HAVE_ALBUMART
38 /* define this if you have access to the quickscreen */
39 #define HAVE_QUICKSCREEN
41 /* define this if you have access to the pitchscreen */
42 #define HAVE_PITCHSCREEN
44 /* define this if you would like tagcache to build on this target */
45 #define HAVE_TAGCACHE
47 /* LCD dimensions */
48 #define LCD_WIDTH 128
49 #define LCD_HEIGHT 128
50 #define LCD_DEPTH 16 /* 65536 colours */
51 #define LCD_PIXELFORMAT RGB565 /* rgb565 byte-swapped */
53 #ifndef BOOTLOADER
54 /* Define this if your LCD can be enabled/disabled */
55 /* #define HAVE_LCD_ENABLE */
57 /* Define this if your LCD can be put to sleep. HAVE_LCD_ENABLE
58 * should be defined as well.
59 * We can currently put the lcd to sleep but it won't wake up properly */
60 /* #define HAVE_LCD_SLEEP */
61 /* #define HAVE_LCD_SLEEP_SETTING */
62 #endif
64 /* define this if you can flip your LCD */
65 /* #define HAVE_LCD_FLIP */
67 /* define this if you can invert the colours on your LCD */
68 /* #define HAVE_LCD_INVERT */
70 /* #define IRAM_LCDFRAMEBUFFER IDATA_ATTR *//* put the lcd frame buffer in IRAM */
72 #define CONFIG_KEYPAD PHILIPS_HDD1630_PAD
74 /* Define this if you do software codec */
75 #define CONFIG_CODEC SWCODEC
77 /* define this if you have a real-time clock */
78 #ifndef BOOTLOADER
79 /* #define CONFIG_RTC RTC_E8564 */
80 /* #define HAVE_RTC_ALARM */
81 #endif
83 /* Define this if you have a software controlled poweroff */
84 /* #define HAVE_SW_POWEROFF */
86 /* The number of bytes reserved for loadable codecs */
87 #define CODEC_SIZE 0x100000
89 /* The number of bytes reserved for loadable plugins */
90 #define PLUGIN_BUFFER_SIZE 0x80000
92 /* Define this if you have the WM8731 audio codec */
93 #define HAVE_WM8731
95 /* WM8731 has no tone controls, so we use the software ones */
96 #define HAVE_SW_TONE_CONTROLS
98 /* TODO: #define AB_REPEAT_ENABLE 1 */
100 /* FM Tuner */
101 /* #define CONFIG_TUNER TEA5767 */
102 /* #define CONFIG_TUNER_XTAL 32768 */
104 /* define this if you have a disk storage, i.e. something
105 that needs spinups and can cause skips when shaked */
106 #define HAVE_DISK_STORAGE
108 /* Define this for LCD backlight available */
109 #define HAVE_BACKLIGHT
110 /* #define HAVE_BACKLIGHT_BRIGHTNESS */
112 /* Main LCD backlight brightness range and defaults */
113 #define MIN_BRIGHTNESS_SETTING 1
114 #define MAX_BRIGHTNESS_SETTING 12
115 #define DEFAULT_BRIGHTNESS_SETTING 6
117 /* define this if you have a light associated with the buttons */
118 /* #define HAVE_BUTTON_LIGHT */
120 #define BATTERY_CAPACITY_DEFAULT 1550 /* default battery capacity */
121 #define BATTERY_CAPACITY_MIN 1500 /* min. capacity selectable */
122 #define BATTERY_CAPACITY_MAX 3200 /* max. capacity selectable */
123 #define BATTERY_CAPACITY_INC 50 /* capacity increment */
124 #define BATTERY_TYPES_COUNT 1 /* only one type */
126 /* Hardware controlled charging */
127 #define CONFIG_CHARGING CHARGING_SIMPLE
129 /* define this if the unit can be powered or charged via USB */
130 #define HAVE_USB_POWER
132 #ifndef SIMULATOR
134 /* Define this if you have a PortalPlayer PP5020 */
135 #define CONFIG_CPU PP5022
137 /* Define this if you want to use the PP5020 i2c interface */
138 #define CONFIG_I2C I2C_PP5020
140 /* define this if the hardware can be powered off while charging */
141 #define HAVE_POWEROFF_WHILE_CHARGING
143 /* The start address index for ROM builds */
144 #define ROM_START 0x00000000
146 /* The size of the flash ROM */
147 #define FLASH_SIZE 0x100000
149 /* Define this to the CPU frequency */
150 #define CPU_FREQ 75000000
152 /* Type of LCD */
153 #define CONFIG_LCD LCD_HDD1630
155 /* Define this if your LCD can set contrast */
156 #define HAVE_LCD_CONTRAST
158 #define MIN_CONTRAST_SETTING 0
159 #define MAX_CONTRAST_SETTING 30
160 #define DEFAULT_CONTRAST_SETTING 14 /* Match boot contrast */
162 /* We're able to shut off power to the HDD */
163 #define HAVE_ATA_POWER_OFF
165 /* Offset ( in the firmware file's header ) to the file CRC and data. These are
166 only used when loading the old format rockbox.e200 file */
167 #define FIRMWARE_OFFSET_FILE_CRC 0x0
168 #define FIRMWARE_OFFSET_FILE_DATA 0x8
170 /* #define USB_IPODSTYLE */
172 /* USB On-the-go */
173 #define CONFIG_USBOTG USBOTG_ARC
175 /* enable these for the experimental usb stack */
176 #define HAVE_USBSTACK
177 #define USB_VENDOR_ID 0x0471
178 #define USB_PRODUCT_ID 0x014C
180 /* Virtual LED (icon) */
181 #define CONFIG_LED LED_VIRTUAL
183 /* Define this if you have adjustable CPU frequency */
184 #define HAVE_ADJUSTABLE_CPU_FREQ
186 #define MI4_FORMAT
187 #define BOOTFILE_EXT "mi4"
188 #define BOOTFILE "rockbox." BOOTFILE_EXT
189 #define BOOTDIR "/.rockbox"
191 #define ICODE_ATTR_TREMOR_NOT_MDCT
193 #endif