as3514: mute headphones at the lowest volume
[kugel-rb.git] / firmware / export / config / ipodvideo.h
blobf5854b7b03da8f48ca31597b818e2bdf6fc5209e
1 /*
2 * This config file is for the Apple iPod Video
3 */
4 #define TARGET_TREE /* this target is using the target tree system */
6 #define IPOD_ARCH 1
8 #define MODEL_NAME "Apple iPod Video"
10 /* For Rolo and boot loader */
11 #define MODEL_NUMBER 5
13 /* define this if you use an ATA controller */
14 #define CONFIG_STORAGE STORAGE_ATA
16 /* define this if the ATA controller and method of USB access support LBA48 */
17 #define HAVE_LBA48
19 /* define this if you have recording possibility */
20 #define HAVE_RECORDING
22 /* Define bitmask of input sources - recordable bitmask can be defined
23 explicitly if different */
24 #define INPUT_SRC_CAPS (SRC_CAP_MIC | SRC_CAP_LINEIN | SRC_CAP_FMRADIO)
26 /* define the bitmask of hardware sample rates */
27 #define HW_SAMPR_CAPS (SAMPR_CAP_48 | SAMPR_CAP_44 | SAMPR_CAP_32 | \
28 SAMPR_CAP_24 | SAMPR_CAP_22 | SAMPR_CAP_16 | \
29 SAMPR_CAP_12 | SAMPR_CAP_11 | SAMPR_CAP_8)
31 /* define the bitmask of recording sample rates */
32 #define REC_SAMPR_CAPS HW_SAMPR_CAPS
34 /* define this if you have a bitmap LCD display */
35 #define HAVE_LCD_BITMAP
37 /* define this if you have a colour LCD */
38 #define HAVE_LCD_COLOR
40 /* define this if you want album art for this target */
41 #define HAVE_ALBUMART
43 /* define this to enable bitmap scaling */
44 #define HAVE_BMP_SCALING
46 /* define this to enable JPEG decoding */
47 #define HAVE_JPEG
49 /* define this if you have access to the quickscreen */
50 #define HAVE_QUICKSCREEN
51 /* define this if you have access to the pitchscreen */
52 #define HAVE_PITCHSCREEN
54 /* define this if you would like tagcache to build on this target */
55 #define HAVE_TAGCACHE
57 /* LCD dimensions */
58 #define LCD_WIDTH 320
59 #define LCD_HEIGHT 240
60 #define LCD_DEPTH 16 /* 65536 colours */
61 #define LCD_PIXELFORMAT RGB565 /* rgb565 */
63 /* LCD stays visible without backlight - simulator hint */
64 #define HAVE_TRANSFLECTIVE_LCD
66 #define CONFIG_KEYPAD IPOD_4G_PAD
68 /* Define this to enable morse code input */
69 #define HAVE_MORSE_INPUT
71 /* Define this if you do software codec */
72 #define CONFIG_CODEC SWCODEC
74 /* define this if you have a real-time clock */
75 #define CONFIG_RTC RTC_PCF50605
77 /* Define if the device can wake from an RTC alarm */
78 #define HAVE_RTC_ALARM
80 /* Define this if you can switch on/off the accessory power supply */
81 #define HAVE_ACCESSORY_SUPPLY
83 /* Define this, if you can switch on/off the lineout */
84 #define HAVE_LINEOUT_POWEROFF
86 /* Define this if you have a software controlled poweroff */
87 #define HAVE_SW_POWEROFF
89 /* The number of bytes reserved for loadable codecs */
90 #define CODEC_SIZE 0x100000
92 /* The number of bytes reserved for loadable plugins */
93 #define PLUGIN_BUFFER_SIZE 0x80000
95 /* Define this if you have the WM8758 audio codec */
96 #define HAVE_WM8758
98 #define AB_REPEAT_ENABLE 1
99 #define ACTION_WPSAB_SINGLE ACTION_WPS_BROWSE
101 /* define this if you have a disk storage, i.e. something
102 that needs spinups and can cause skips when shaked */
103 #define HAVE_DISK_STORAGE
105 /* Define this for LCD backlight available */
106 #define HAVE_BACKLIGHT
107 #define HAVE_BACKLIGHT_BRIGHTNESS
109 #ifndef BOOTLOADER
110 /* Support for LCD sleep/BCM shutdown */
111 #define HAVE_LCD_SLEEP
112 #define HAVE_LCD_SLEEP_SETTING
113 /* The same code may also be used when shutting down the iPod */
114 #define HAVE_LCD_SHUTDOWN
115 #endif
117 /* We can fade the backlight by using PWM */
118 #define CONFIG_BACKLIGHT_FADING BACKLIGHT_FADING_PWM
120 /* Main LCD backlight brightness range and defaults */
121 #define MIN_BRIGHTNESS_SETTING 1
122 #define MAX_BRIGHTNESS_SETTING 32
123 #define DEFAULT_BRIGHTNESS_SETTING 16
126 /* define this if the unit uses a scrollwheel for navigation */
127 #define HAVE_SCROLLWHEEL
128 /* define to activate advanced wheel acceleration code */
129 #define HAVE_WHEEL_ACCELERATION
130 /* define from which rotation speed [degree/sec] on the acceleration starts */
131 #define WHEEL_ACCEL_START 270
132 /* define type of acceleration (1 = ^2, 2 = ^3, 3 = ^4) */
133 #define WHEEL_ACCELERATION 3
135 /* Define this if you can detect headphones */
136 #define HAVE_HEADPHONE_DETECTION
138 /* Type of mobile power */
139 #if (MEM==32) /* this is the 30GB-model */
140 # define BATTERY_CAPACITY_DEFAULT 400 /* default battery capacity for the 30GB model */
141 # define BATTERY_CAPACITY_MIN 300 /* min. capacity selectable */
142 # define BATTERY_CAPACITY_MAX 1000 /* max. capacity selectable */
143 #else /* these are the 60/80GB-models */
144 # define BATTERY_CAPACITY_DEFAULT 600 /* default battery capacity for the 60/80GB model */
145 # define BATTERY_CAPACITY_MIN 500 /* min. capacity selectable */
146 # define BATTERY_CAPACITY_MAX 1400 /* max. capacity selectable */
147 #endif
148 #define BATTERY_CAPACITY_INC 50 /* capacity increment */
149 #define BATTERY_TYPES_COUNT 1 /* only one type */
151 /* Hardware controlled charging with monitoring */
152 #define CONFIG_CHARGING CHARGING_MONITOR
154 /* define this if the unit can be powered or charged via USB */
155 #define HAVE_USB_POWER
157 /* define current usage levels */
158 #define CURRENT_NORMAL 24 /* 30MHz clock, LCD off, accessory supply on */
159 #define CURRENT_BACKLIGHT 20 /* FIXME: this needs adjusting */
160 #if defined(HAVE_RECORDING)
161 #define CURRENT_RECORD 35 /* FIXME: this needs adjusting */
162 #endif
164 /* Define Apple remote tuner */
165 #define CONFIG_TUNER IPOD_REMOTE_TUNER
166 #define HAVE_RDS_CAP
168 /* Define this if you have a PortalPlayer PP5022 */
169 #define CONFIG_CPU PP5022
171 /* Define this if you want to use the PP5020 i2c interface */
172 #define CONFIG_I2C I2C_PP5020
174 /* We're able to shut off power to the HDD */
175 #define HAVE_ATA_POWER_OFF
177 /* define this if the hardware can be powered off while charging */
178 //#define HAVE_POWEROFF_WHILE_CHARGING
180 /* The start address index for ROM builds */
181 #define ROM_START 0x00000000
183 /* The size of the flash ROM */
184 #define FLASH_SIZE 0x100000
186 /* Define this to the CPU frequency */
187 #define CPU_FREQ 11289600
189 #define CONFIG_LCD LCD_IPODVIDEO
191 /* Offset ( in the firmware file's header ) to the file length */
192 #define FIRMWARE_OFFSET_FILE_LENGTH 0
194 /* Offset ( in the firmware file's header ) to the file CRC */
195 #define FIRMWARE_OFFSET_FILE_CRC 0
197 /* Offset ( in the firmware file's header ) to the real data */
198 #define FIRMWARE_OFFSET_FILE_DATA 8
200 /* USB On-the-go */
201 #define CONFIG_USBOTG USBOTG_ARC
203 /* enable these for the experimental usb stack */
204 #define HAVE_USBSTACK
205 #define USE_ROCKBOX_USB
206 #define USB_VENDOR_ID 0x05ac
207 #define USB_PRODUCT_ID 0x1209
208 #define HAVE_USB_HID_MOUSE
210 /* Define this if you have adjustable CPU frequency */
211 #define HAVE_ADJUSTABLE_CPU_FREQ
213 /* Define this if you can read an absolute wheel position */
214 #define HAVE_WHEEL_POSITION
216 /* define this if the device has larger sectors when accessed via USB */
217 /* (only relevant in disk.c, fat.c now always supports large virtual sectors) */
218 #define MAX_LOG_SECTOR_SIZE 2048
220 /* define this if the hard drive uses large physical sectors (ATA-7 feature) */
221 /* and doesn't handle them in the drive firmware */
222 #define MAX_PHYS_SECTOR_SIZE 1024
224 #define BOOTFILE_EXT "ipod"
225 #define BOOTFILE "rockbox." BOOTFILE_EXT
226 #define BOOTDIR "/.rockbox"
228 #define ICODE_ATTR_TREMOR_NOT_MDCT
230 #define IPOD_ACCESSORY_PROTOCOL
231 #define HAVE_SERIAL
233 /* DMA is used only for reading on PP502x because although reads are ~8x faster
234 * writes appear to be ~25% slower.
236 #define HAVE_ATA_DMA
238 /* Define this if a programmable hotkey is mapped */
239 #define HAVE_HOTKEY