Do some #ifdef'ing to make the Player happy.
[kugel-rb.git] / firmware / export / config-hdd1630.h
blobd588b3bb60987b4cf791376ec53840e315bfbcb3
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 to enable bitmap scaling */
39 #define HAVE_BMP_SCALING
41 /* define this to enable JPEG decoding */
42 #define HAVE_JPEG
44 /* define this if you have access to the quickscreen */
45 #define HAVE_QUICKSCREEN
47 /* define this if you have access to the pitchscreen */
48 #define HAVE_PITCHSCREEN
50 /* define this if you would like tagcache to build on this target */
51 #define HAVE_TAGCACHE
53 /* LCD dimensions */
54 #define LCD_WIDTH 128
55 #define LCD_HEIGHT 128
56 #define LCD_DEPTH 16 /* 65536 colours */
57 #define LCD_PIXELFORMAT RGB565 /* rgb565 byte-swapped */
59 #ifndef BOOTLOADER
60 /* Define this if your LCD can be enabled/disabled */
61 /* #define HAVE_LCD_ENABLE */
63 /* Define this if your LCD can be put to sleep. HAVE_LCD_ENABLE
64 * should be defined as well.
65 * We can currently put the lcd to sleep but it won't wake up properly */
66 /* #define HAVE_LCD_SLEEP */
67 /* #define HAVE_LCD_SLEEP_SETTING */
68 #endif
70 /* define this if you can flip your LCD */
71 #define HAVE_LCD_FLIP
73 /* define this if you can invert the colours on your LCD */
74 #define HAVE_LCD_INVERT
76 /* #define IRAM_LCDFRAMEBUFFER IDATA_ATTR *//* put the lcd frame buffer in IRAM */
78 #define CONFIG_KEYPAD PHILIPS_HDD1630_PAD
80 /* define this if the target has volume keys which can be used in the lists */
81 #define HAVE_VOLUME_IN_LIST
83 /* Define this if you do software codec */
84 #define CONFIG_CODEC SWCODEC
86 /* define this if you have a real-time clock. The HDD16x0 has a PCF8563 RTC,
87 but it's register compatible with the E8564. */
88 #ifndef BOOTLOADER
89 #define CONFIG_RTC RTC_E8564
90 #define HAVE_RTC_ALARM
91 #endif
93 /* Define this if you have a software controlled poweroff */
94 #define HAVE_SW_POWEROFF
96 /* The number of bytes reserved for loadable codecs */
97 #define CODEC_SIZE 0x100000
99 /* The number of bytes reserved for loadable plugins */
100 #define PLUGIN_BUFFER_SIZE 0x80000
102 /* Define this if you have the WM8731 audio codec */
103 #define HAVE_WM8731
105 /* WM8731 has no tone controls, so we use the software ones */
106 #define HAVE_SW_TONE_CONTROLS
108 /* TODO: #define AB_REPEAT_ENABLE 1 */
110 /* FM Tuner */
111 #define CONFIG_TUNER TEA5767
112 #define CONFIG_TUNER_XTAL 32768
114 /* define this if you have a disk storage, i.e. something
115 that needs spinups and can cause skips when shaked */
116 #define HAVE_DISK_STORAGE
118 /* Define this for LCD backlight available */
119 #define HAVE_BACKLIGHT
120 #define HAVE_BACKLIGHT_BRIGHTNESS
121 /* #define CONFIG_BACKLIGHT_FADING BACKLIGHT_FADING_SW_SETTING */
123 /* Main LCD backlight brightness range and defaults */
124 #define MIN_BRIGHTNESS_SETTING 1
125 #define MAX_BRIGHTNESS_SETTING 16
126 #define DEFAULT_BRIGHTNESS_SETTING 13 /* match OF brightness */
128 /* define this if you have a light associated with the buttons */
129 #define HAVE_BUTTON_LIGHT
130 #define HAVE_BUTTONLIGHT_BRIGHTNESS
132 #define BATTERY_CAPACITY_DEFAULT 630 /* default battery capacity */
133 #define BATTERY_CAPACITY_MIN 630 /* min. capacity selectable */
134 #define BATTERY_CAPACITY_MAX 630 /* max. capacity selectable */
135 #define BATTERY_CAPACITY_INC 0 /* capacity increment */
136 #define BATTERY_TYPES_COUNT 1 /* only one type */
138 /* Hardware controlled charging */
139 #define CONFIG_CHARGING CHARGING_SIMPLE
141 /* define this if the unit can be powered or charged via USB */
142 #define HAVE_USB_POWER
144 #ifndef SIMULATOR
146 /* Define this if you have a PortalPlayer PP5020 */
147 #define CONFIG_CPU PP5022
149 /* Define this if you want to use the PP5020 i2c interface */
150 #define CONFIG_I2C I2C_PP5020
152 /* define this if the hardware can be powered off while charging */
153 #define HAVE_POWEROFF_WHILE_CHARGING
155 /* The start address index for ROM builds */
156 #define ROM_START 0x00000000
158 /* The size of the flash ROM */
159 #define FLASH_SIZE 0x100000
161 /* Define this to the CPU frequency */
162 #define CPU_FREQ 75000000
164 /* Type of LCD */
165 #define CONFIG_LCD LCD_HDD1630
167 /* Define this if your LCD can set contrast */
168 #define HAVE_LCD_CONTRAST
170 #define MIN_CONTRAST_SETTING 0
171 #define MAX_CONTRAST_SETTING 127
172 #define DEFAULT_CONTRAST_SETTING 63 /* Match boot contrast */
174 /* We're able to shut off power to the HDD */
175 #define HAVE_ATA_POWER_OFF
177 /* Offset ( in the firmware file's header ) to the file CRC and data. These are
178 only used when loading the old format rockbox.e200 file */
179 #define FIRMWARE_OFFSET_FILE_CRC 0x0
180 #define FIRMWARE_OFFSET_FILE_DATA 0x8
182 /* USB On-the-go */
183 #define CONFIG_USBOTG USBOTG_ARC
185 /* enable these for the experimental usb stack */
186 #define HAVE_USBSTACK
187 #define USE_ROCKBOX_USB
188 #define USB_VENDOR_ID 0x0471
189 #define USB_PRODUCT_ID 0x014C
191 /* Virtual LED (icon) */
192 #define CONFIG_LED LED_VIRTUAL
194 /* Define this if you have adjustable CPU frequency */
195 #define HAVE_ADJUSTABLE_CPU_FREQ
197 #define MI4_FORMAT
198 #define BOOTFILE_EXT "mi4"
199 #define BOOTFILE "rockbox." BOOTFILE_EXT
200 #define BOOTDIR "/.rockbox"
202 #define ICODE_ATTR_TREMOR_NOT_MDCT
204 #endif