Set the default battery capacity for ipod video properly depending on detected RAM...
[maemo-rb.git] / firmware / export / config / ipodvideo.h
blobdd21bb518a06eac8fe40d98d6b6e5a6ddfcc9ccc
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_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
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 #define BATTERY_CAPACITY_DEFAULT 400 /* only for variable initialisation */
140 #define BATTERY_CAPACITY_DEFAULT_THIN 400 /* default battery capacity for the
141 30GB model */
142 #define BATTERY_CAPACITY_DEFAULT_THICK 600 /* default battery capacity for the
143 60/80GB model */
144 #define BATTERY_CAPACITY_MIN 300 /* min. capacity selectable */
145 #define BATTERY_CAPACITY_MAX 1400 /* max. capacity selectable */
146 #define BATTERY_CAPACITY_INC 50 /* capacity increment */
147 #define BATTERY_TYPES_COUNT 1 /* only one type */
149 /* Hardware controlled charging with monitoring */
150 #define CONFIG_CHARGING CHARGING_MONITOR
152 /* define this if the unit can be powered or charged via USB */
153 #define HAVE_USB_POWER
155 /* define this if the unit can have USB charging disabled by user -
156 * if USB/MAIN power is discernable and hardware doesn't compel charging */
157 #define HAVE_USB_CHARGING_ENABLE
159 /* define current usage levels */
160 #define CURRENT_NORMAL 24 /* 30MHz clock, LCD off, accessory supply on */
161 #define CURRENT_BACKLIGHT 20 /* FIXME: this needs adjusting */
162 #if defined(HAVE_RECORDING)
163 #define CURRENT_RECORD 35 /* FIXME: this needs adjusting */
164 #endif
166 /* Define Apple remote tuner */
167 #define CONFIG_TUNER IPOD_REMOTE_TUNER
168 #define HAVE_RDS_CAP
170 /* Define this if you have a PortalPlayer PP5022 */
171 #define CONFIG_CPU PP5022
173 /* Define this if you want to use the PP5020 i2c interface */
174 #define CONFIG_I2C I2C_PP5020
176 /* We're able to shut off power to the HDD */
177 #define HAVE_ATA_POWER_OFF
179 /* define this if the hardware can be powered off while charging */
180 //#define HAVE_POWEROFF_WHILE_CHARGING
182 /* The start address index for ROM builds */
183 #define ROM_START 0x00000000
185 /* The size of the flash ROM */
186 #define FLASH_SIZE 0x100000
188 /* Define this to the CPU frequency */
189 #define CPU_FREQ 11289600
191 #define CONFIG_LCD LCD_IPODVIDEO
193 /* Offset ( in the firmware file's header ) to the file length */
194 #define FIRMWARE_OFFSET_FILE_LENGTH 0
196 /* Offset ( in the firmware file's header ) to the file CRC */
197 #define FIRMWARE_OFFSET_FILE_CRC 0
199 /* Offset ( in the firmware file's header ) to the real data */
200 #define FIRMWARE_OFFSET_FILE_DATA 8
202 /* USB On-the-go */
203 #define CONFIG_USBOTG USBOTG_ARC
205 /* enable these for the experimental usb stack */
206 #define HAVE_USBSTACK
207 #define USE_ROCKBOX_USB
208 #define USB_VENDOR_ID 0x05ac
209 #define USB_PRODUCT_ID 0x1209
210 #define HAVE_USB_HID_MOUSE
212 /* Define this if you have adjustable CPU frequency */
213 #define HAVE_ADJUSTABLE_CPU_FREQ
215 /* Define this if you can read an absolute wheel position */
216 #define HAVE_WHEEL_POSITION
218 /* define this if the device has larger sectors when accessed via USB */
219 /* (only relevant in disk.c, fat.c now always supports large virtual sectors) */
220 #define MAX_LOG_SECTOR_SIZE 2048
222 /* define this if the hard drive uses large physical sectors (ATA-7 feature) */
223 /* and doesn't handle them in the drive firmware */
224 #define MAX_PHYS_SECTOR_SIZE 1024
226 #define BOOTFILE_EXT "ipod"
227 #define BOOTFILE "rockbox." BOOTFILE_EXT
228 #define BOOTDIR "/.rockbox"
230 #define ICODE_ATTR_TREMOR_NOT_MDCT
232 #define IPOD_ACCESSORY_PROTOCOL
233 #define HAVE_SERIAL
235 /* DMA is used only for reading on PP502x because although reads are ~8x faster
236 * writes appear to be ~25% slower.
238 /* Switched off due to reported instabilities. #define HAVE_ATA_DMA */
240 /* Define this if a programmable hotkey is mapped */
241 #define HAVE_HOTKEY