Re-add the lseek to the beginning of the file which was accidentally removed.
[kugel-rb.git] / firmware / export / config / ipodnano2g.h
blob2cc3cecc6c1a95fc1d691fe39eff8abcb557367a
1 /*
2 * This config file is for iPod Nano 2nd Generation
3 */
4 #define TARGET_TREE /* this target is using the target tree system */
6 #define IPOD_ARCH 1
8 /* For Rolo and boot loader */
9 #define MODEL_NUMBER 62
11 #define MODEL_NAME "Apple iPod Nano 2g"
13 /* define this if you have recording possibility */
14 //#define HAVE_RECORDING
16 /* Define bitmask of input sources - recordable bitmask can be defined
17 explicitly if different */
18 #define INPUT_SRC_CAPS (SRC_CAP_LINEIN)
20 /* define the bitmask of hardware sample rates */
21 #define HW_SAMPR_CAPS (SAMPR_CAP_88 | SAMPR_CAP_44 | SAMPR_CAP_22 | SAMPR_CAP_11 \
22 | SAMPR_CAP_96 | SAMPR_CAP_48 | SAMPR_CAP_24 | SAMPR_CAP_12 \
23 | SAMPR_CAP_64 | SAMPR_CAP_32 | SAMPR_CAP_16 | SAMPR_CAP_8)
25 /* define the bitmask of recording sample rates */
26 #define REC_SAMPR_CAPS (SAMPR_CAP_88 | SAMPR_CAP_44 | SAMPR_CAP_22 | SAMPR_CAP_11 \
27 | SAMPR_CAP_96 | SAMPR_CAP_48 | SAMPR_CAP_24 | SAMPR_CAP_12 \
28 | SAMPR_CAP_64 | SAMPR_CAP_32 | SAMPR_CAP_16 | SAMPR_CAP_8)
30 /* define this if you have a bitmap LCD display */
31 #define HAVE_LCD_BITMAP
33 /* define this if you can flip your LCD */
34 //#define HAVE_LCD_FLIP
36 /* define this if you have a colour LCD */
37 #define HAVE_LCD_COLOR
39 /* define this if you want album art for this target */
40 #define HAVE_ALBUMART
42 /* define this to enable bitmap scaling */
43 #define HAVE_BMP_SCALING
45 /* define this to enable JPEG decoding */
46 #define HAVE_JPEG
48 /* define this if you can invert the colours on your LCD */
49 //#define HAVE_LCD_INVERT
51 /* LCD stays visible without backlight - simulator hint */
52 #define HAVE_TRANSFLECTIVE_LCD
54 /* define this if you have access to the quickscreen */
55 #define HAVE_QUICKSCREEN
57 /* define this if you have access to the pitchscreen */
58 #define HAVE_PITCHSCREEN
60 /* define this if you would like tagcache to build on this target */
61 #define HAVE_TAGCACHE
63 /* define this if the unit uses a scrollwheel for navigation */
64 #define HAVE_SCROLLWHEEL
65 #define HAVE_WHEEL_ACCELERATION
66 #define WHEEL_ACCEL_START 270
67 #define WHEEL_ACCELERATION 3
69 /* Define this if you can detect headphones */
70 #define HAVE_HEADPHONE_DETECTION
72 /* define this if you have a flash memory storage */
73 #define HAVE_FLASH_STORAGE
75 #define CONFIG_STORAGE STORAGE_NAND
77 #define CONFIG_NAND NAND_SAMSUNG
79 /* define this if at least one storage driver
80 needs to do cleanup on shutdown */
81 #define HAVE_STORAGE_FLUSH
83 /* The NAND flash has 2048-byte sectors, and is our only storage */
84 #define SECTOR_SIZE 2048
86 /* LCD dimensions */
87 #define LCD_WIDTH 176
88 #define LCD_HEIGHT 132
89 #define LCD_DEPTH 16 /* pseudo 262.144 colors */
90 #define LCD_PIXELFORMAT RGB565 /* rgb565 */
92 /* Define this if the LCD can shut down */
93 #define HAVE_LCD_SHUTDOWN
95 /* Define this if your LCD can be enabled/disabled */
96 #define HAVE_LCD_ENABLE
98 /* Define this if your LCD can be put to sleep. HAVE_LCD_ENABLE
99 should be defined as well. */
100 #ifndef BOOTLOADER
101 #define HAVE_LCD_SLEEP
102 #define HAVE_LCD_SLEEP_SETTING
103 #endif
105 #define CONFIG_KEYPAD IPOD_4G_PAD
107 //#define AB_REPEAT_ENABLE
108 //#define ACTION_WPSAB_SINGLE ACTION_WPS_BROWSE
110 /* Define this to enable morse code input */
111 #define HAVE_MORSE_INPUT
113 /* Define this if you do software codec */
114 #define CONFIG_CODEC SWCODEC
116 /* define this if you have a real-time clock */
117 #define CONFIG_RTC RTC_NANO2G
119 /* Define if the device can wake from an RTC alarm */
120 //#define HAVE_RTC_ALARM
122 #define CONFIG_LCD LCD_NANO2G
124 /* Define the type of audio codec */
125 #define HAVE_WM8975
127 #define HAVE_PCM_DMA_ADDRESS
129 /* Define this for LCD backlight available */
130 #define HAVE_BACKLIGHT
131 #define HAVE_BACKLIGHT_BRIGHTNESS
133 /* Define this if you have a software controlled poweroff */
134 #define HAVE_SW_POWEROFF
136 /* The number of bytes reserved for loadable codecs */
137 #define CODEC_SIZE 0x100000
139 /* The number of bytes reserved for loadable plugins */
140 #define PLUGIN_BUFFER_SIZE 0x80000
142 #define BATTERY_CAPACITY_DEFAULT 400 /* default battery capacity */
143 #define BATTERY_CAPACITY_MIN 300 /* min. capacity selectable */
144 #define BATTERY_CAPACITY_MAX 500 /* max. capacity selectable */
145 #define BATTERY_CAPACITY_INC 10 /* capacity increment */
146 #define BATTERY_TYPES_COUNT 1 /* only one type */
148 /* Hardware controlled charging with monitoring */
149 #define CONFIG_CHARGING CHARGING_MONITOR
151 /* define current usage levels */
152 #define CURRENT_NORMAL 21 /* playback @48MHz clock, backlight off */
153 #define CURRENT_BACKLIGHT 23 /* maximum brightness */
155 /* define this if the unit can be powered or charged via USB */
156 #define HAVE_USB_POWER
158 /* Define this if your LCD can set contrast */
159 //#define HAVE_LCD_CONTRAST
161 /* Define Apple remote tuner */
162 //#define CONFIG_TUNER IPOD_REMOTE_TUNER
163 //#define HAVE_RDS_CAP
165 /* The exact type of CPU */
166 #define CONFIG_CPU S5L8701
168 /* I2C interface */
169 #define CONFIG_I2C I2C_S5L8700
171 #define HAVE_USB_CHARGING_ENABLE
173 /* The size of the flash ROM */
174 #define FLASH_SIZE 0x400000
176 /* Define this to the CPU frequency */
177 #define CPU_FREQ 191692800
179 /* define this if the hardware can be powered off while charging */
180 #define HAVE_POWEROFF_WHILE_CHARGING
182 /* Offset ( in the firmware file's header ) to the file CRC */
183 #define FIRMWARE_OFFSET_FILE_CRC 0
185 /* Offset ( in the firmware file's header ) to the real data */
186 #define FIRMWARE_OFFSET_FILE_DATA 8
188 /* Define this if you can read an absolute wheel position */
189 #define HAVE_WHEEL_POSITION
191 /* Define this if you have adjustable CPU frequency */
192 #define HAVE_ADJUSTABLE_CPU_FREQ
194 #define BOOTFILE_EXT "ipod"
195 #define BOOTFILE "rockbox." BOOTFILE_EXT
196 #define BOOTDIR "/.rockbox"
198 /* Alternative bootfile extension - this is for encrypted images */
199 #define BOOTFILE_EXT2 "ipodx"
201 /* Define this for FM radio input available */
202 #define HAVE_FMRADIO_IN
204 /** Port-specific settings **/
206 #if 0
207 /* Main LCD contrast range and defaults */
208 #define MIN_CONTRAST_SETTING 1
209 #define MAX_CONTRAST_SETTING 30
210 #define DEFAULT_CONTRAST_SETTING 19 /* Match boot contrast */
211 #endif
213 /* Main LCD backlight brightness range and defaults */
214 #define MIN_BRIGHTNESS_SETTING 1
215 #define MAX_BRIGHTNESS_SETTING 0x2e
216 #define DEFAULT_BRIGHTNESS_SETTING 0x20
218 /* USB defines */
219 #define HAVE_USBSTACK
220 //#define HAVE_USB_HID_MOUSE - broken?
221 #define CONFIG_USBOTG USBOTG_S3C6400X
222 #define USB_VENDOR_ID 0x05AC
223 #define USB_PRODUCT_ID 0x1260
224 #define USB_NUM_ENDPOINTS 5
225 #define USE_ROCKBOX_USB
226 #define USB_DEVBSS_ATTR __attribute__((aligned(16)))
228 /* Define this if you can switch on/off the accessory power supply */
229 #define HAVE_ACCESSORY_SUPPLY
230 //#define IPOD_ACCESSORY_PROTOCOL
231 //#define HAVE_SERIAL
233 /* Define this, if you can switch on/off the lineout */
234 #define HAVE_LINEOUT_POWEROFF
236 #define USB_WRITE_BUFFER_SIZE (1024*64)
238 /* Define this if a programmable hotkey is mapped */
239 #define HAVE_HOTKEY