Move bin2c handling to libtools.make
[maemo-rb.git] / firmware / export / config / ipod4g.h
blobf3eef03e2502b03f23c43d5957117f95c647542a
1 /*
2 * This config file is for the Apple iPod 4g Grayscale
3 */
5 #define IPOD_ARCH 1
7 #define MODEL_NAME "Apple iPod 4g Grayscale"
9 /* For Rolo and boot loader */
10 #define MODEL_NUMBER 8
12 /* define this if you use an ATA controller */
13 #define CONFIG_STORAGE STORAGE_ATA
15 /*define this if the ATA controller and method of USB access support LBA48 */
16 #define HAVE_LBA48
18 /* define this if you have recording possibility */
19 #define HAVE_RECORDING
21 /* Define bitmask of input sources - recordable bitmask can be defined
22 explicitly if different */
23 #define INPUT_SRC_CAPS (SRC_CAP_MIC | SRC_CAP_LINEIN | SRC_CAP_FMRADIO)
25 /* define the bitmask of hardware sample rates */
26 #define HW_SAMPR_CAPS (SAMPR_CAP_44)
28 /* define the bitmask of recording sample rates */
29 #define REC_SAMPR_CAPS (SAMPR_CAP_44)
31 /* define this if you have a bitmap LCD display */
32 #define HAVE_LCD_BITMAP
34 /* define this if you want album art for this target */
35 #define HAVE_ALBUMART
37 /* define this to enable bitmap scaling */
38 #define HAVE_BMP_SCALING
40 /* define this to enable JPEG decoding */
41 #define HAVE_JPEG
43 /* define this if you can invert the colours on your LCD */
44 #define HAVE_LCD_INVERT
46 /* define this if the LCD needs to be shutdown */
47 #define HAVE_LCD_SHUTDOWN
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 160
59 #define LCD_HEIGHT 128
60 #define LCD_DEPTH 2 /* 4 colours - 2bpp */
61 #define LCD_PIXELFORMAT HORIZONTAL_PACKING
63 /* Display colours, for screenshots and sim (0xRRGGBB) */
64 #define LCD_DARKCOLOR 0x000000
65 #define LCD_BRIGHTCOLOR 0x5a915a
66 #define LCD_BL_DARKCOLOR 0x000000
67 #define LCD_BL_BRIGHTCOLOR 0xadd8e6
69 #define HAVE_LCD_CONTRAST
71 /* LCD contrast */
72 #define MIN_CONTRAST_SETTING 5
73 #define MAX_CONTRAST_SETTING 63
74 #define DEFAULT_CONTRAST_SETTING 40 /* Match boot contrast */
76 /* define this if you can flip your LCD */
77 #define HAVE_LCD_FLIP
79 #define CONFIG_KEYPAD IPOD_4G_PAD
81 /* Define this to have CPU boosted while scrolling in the UI */
82 #define HAVE_GUI_BOOST
84 /* Define this to enable morse code input */
85 #define HAVE_MORSE_INPUT
87 /* Define this if you do software codec */
88 #define CONFIG_CODEC SWCODEC
90 /* define this if you have a real-time clock */
91 #define CONFIG_RTC RTC_PCF50605
93 /* Define if the device can wake from an RTC alarm */
94 #define HAVE_RTC_ALARM
96 /* Define this if you can switch on/off the accessory power supply */
97 #define HAVE_ACCESSORY_SUPPLY
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 WM8975 audio codec */
109 #define HAVE_WM8975
111 #define AB_REPEAT_ENABLE
112 #define ACTION_WPSAB_SINGLE ACTION_WPS_BROWSE
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
122 /* Main LCD backlight brightness range and defaults */
123 #define MIN_BRIGHTNESS_SETTING 1
124 #define MAX_BRIGHTNESS_SETTING 31
125 #define DEFAULT_BRIGHTNESS_SETTING 20
127 /* define this if the unit uses a scrollwheel for navigation */
128 #define HAVE_SCROLLWHEEL
129 /* define to activate advanced wheel acceleration code */
130 #define HAVE_WHEEL_ACCELERATION
131 /* define from which rotation speed [degree/sec] on the acceleration starts */
132 #define WHEEL_ACCEL_START 270
133 /* define type of acceleration (1 = ^2, 2 = ^3, 3 = ^4) */
134 #define WHEEL_ACCELERATION 3
136 /* Define this if you can detect headphones */
137 #define HAVE_HEADPHONE_DETECTION
139 #define BATTERY_CAPACITY_DEFAULT 630 /* default battery capacity */
140 #define BATTERY_CAPACITY_MIN 630 /* min. capacity selectable */
141 #define BATTERY_CAPACITY_MAX 1200 /* max. capacity selectable */
142 #define BATTERY_CAPACITY_INC 10 /* capacity increment */
143 #define BATTERY_TYPES_COUNT 1 /* only one type */
145 #define CONFIG_BATTERY_MEASURE VOLTAGE_MEASURE
147 /* Hardware controlled charging? */
148 #define CONFIG_CHARGING CHARGING_MONITOR
150 /* define this if the unit can be powered or charged via USB */
151 #define HAVE_USB_POWER
153 /* define this if the unit can have USB charging disabled by user -
154 * if USB/MAIN power is discernable and hardware doesn't compel charging */
155 #define HAVE_USB_CHARGING_ENABLE
157 /* define current usage levels */
158 #define CURRENT_NORMAL 100 /* MP3: ~10.5h out of 1100mAh battery */
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 PP5020 */
169 #define CONFIG_CPU PP5020
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_IPOD2BPP
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 0x1203
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 HAVE_HARDWARE_CLICK
218 #define BOOTFILE_EXT "ipod"
219 #define BOOTFILE "rockbox." BOOTFILE_EXT
220 #define BOOTDIR "/.rockbox"
222 #define ICODE_ATTR_TREMOR_NOT_MDCT
224 #define IPOD_ACCESSORY_PROTOCOL
225 #define HAVE_SERIAL
227 #define IRAM_LCDFRAMEBUFFER IBSS_ATTR /* put the lcd frame buffer in IRAM */
230 /* DMA is used only for reading on PP502x because although reads are ~8x faster
231 * writes appear to be ~25% slower.
233 /* Switched off due to reported instabilities. #define HAVE_ATA_DMA */
235 /* Define this, if you can switch on/off the lineout */
236 #define HAVE_LINEOUT_POWEROFF
238 /* Define this if a programmable hotkey is mapped */
239 #define HAVE_HOTKEY