s3c2440: fix a typo, 4|1 == 5, not 0x41
[kugel-rb.git] / firmware / export / config / ipodnano2g.h
blob3ce4a2926b85fae6ebfb1feaf1d8f2a0c98987eb
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)
23 /* define the bitmask of recording sample rates */
24 #define REC_SAMPR_CAPS (SAMPR_CAP_88 | SAMPR_CAP_44 | SAMPR_CAP_22 | SAMPR_CAP_11)
26 /* define this if you have a bitmap LCD display */
27 #define HAVE_LCD_BITMAP
29 /* define this if you can flip your LCD */
30 //#define HAVE_LCD_FLIP
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 the LCD can shut down */
45 #define HAVE_LCD_SHUTDOWN
47 /* define this if you can invert the colours on your LCD */
48 //#define HAVE_LCD_INVERT
50 /* LCD stays visible without backlight - simulator hint */
51 #define HAVE_TRANSFLECTIVE_LCD
53 /* define this if you have access to the quickscreen */
54 #define HAVE_QUICKSCREEN
56 /* define this if you have access to the pitchscreen */
57 #define HAVE_PITCHSCREEN
59 /* define this if you would like tagcache to build on this target */
60 #define HAVE_TAGCACHE
62 /* define this if the unit uses a scrollwheel for navigation */
63 #define HAVE_SCROLLWHEEL
64 #define HAVE_WHEEL_ACCELERATION
65 #define WHEEL_ACCEL_START 270
66 #define WHEEL_ACCELERATION 3
68 /* Define this if you can detect headphones */
69 #define HAVE_HEADPHONE_DETECTION
71 /* define this if you have a flash memory storage */
72 #define HAVE_FLASH_STORAGE
74 #define CONFIG_STORAGE STORAGE_NAND
76 #define CONFIG_NAND NAND_SAMSUNG
78 /* define this if at least one storage driver
79 needs to do cleanup on shutdown */
80 #define HAVE_STORAGE_FLUSH
82 /* The NAND flash has 2048-byte sectors, and is our only storage */
83 #define SECTOR_SIZE 2048
85 /* LCD dimensions */
86 #define LCD_WIDTH 176
87 #define LCD_HEIGHT 132
88 #define LCD_DEPTH 16 /* pseudo 262.144 colors */
89 #define LCD_PIXELFORMAT RGB565 /* rgb565 */
91 /* Define this if your LCD can be enabled/disabled */
92 //#define HAVE_LCD_ENABLE
94 /* Define this if your LCD can be put to sleep. HAVE_LCD_ENABLE
95 should be defined as well. */
96 //#define HAVE_LCD_SLEEP
98 #define CONFIG_KEYPAD IPOD_4G_PAD
100 //#define AB_REPEAT_ENABLE 1
101 //#define ACTION_WPSAB_SINGLE ACTION_WPS_BROWSE
103 /* Define this to enable morse code input */
104 #define HAVE_MORSE_INPUT
106 /* Define this if you do software codec */
107 #define CONFIG_CODEC SWCODEC
109 /* define this if you have a real-time clock */
110 #define CONFIG_RTC RTC_NANO2G
112 /* Define if the device can wake from an RTC alarm */
113 //#define HAVE_RTC_ALARM
115 #define CONFIG_LCD LCD_NANO2G
117 /* Define the type of audio codec */
118 #define HAVE_WM8975
120 #define HAVE_PCM_DMA_ADDRESS
122 /* Define this for LCD backlight available */
123 #define HAVE_BACKLIGHT
124 #define HAVE_BACKLIGHT_BRIGHTNESS
126 /* Define this if you have a software controlled poweroff */
127 #define HAVE_SW_POWEROFF
129 /* The number of bytes reserved for loadable codecs */
130 #define CODEC_SIZE 0x100000
132 /* The number of bytes reserved for loadable plugins */
133 #define PLUGIN_BUFFER_SIZE 0x80000
135 #define BATTERY_CAPACITY_DEFAULT 400 /* default battery capacity */
136 #define BATTERY_CAPACITY_MIN 400 /* min. capacity selectable */
137 #define BATTERY_CAPACITY_MAX 400 /* max. capacity selectable */
138 #define BATTERY_CAPACITY_INC 50 /* capacity increment */
139 #define BATTERY_TYPES_COUNT 1 /* only one type */
141 /* Hardware controlled charging with monitoring */
142 #define CONFIG_CHARGING CHARGING_MONITOR
144 /* define this if the unit can be powered or charged via USB */
145 #define HAVE_USB_POWER
147 /* Define this if your LCD can set contrast */
148 //#define HAVE_LCD_CONTRAST
150 /* Define Apple remote tuner */
151 //#define CONFIG_TUNER IPOD_REMOTE_TUNER
152 //#define HAVE_RDS_CAP
154 /* The exact type of CPU */
155 #define CONFIG_CPU S5L8701
157 /* I2C interface */
158 #define CONFIG_I2C I2C_S5L8700
160 #define HAVE_USB_CHARGING_ENABLE
162 /* The size of the flash ROM */
163 #define FLASH_SIZE 0x400000
165 /* Define this to the CPU frequency */
166 #define CPU_FREQ 191692800
168 /* define this if the hardware can be powered off while charging */
169 #define HAVE_POWEROFF_WHILE_CHARGING
171 /* Offset ( in the firmware file's header ) to the file CRC */
172 #define FIRMWARE_OFFSET_FILE_CRC 0
174 /* Offset ( in the firmware file's header ) to the real data */
175 #define FIRMWARE_OFFSET_FILE_DATA 8
177 /* Define this if you can read an absolute wheel position */
178 #define HAVE_WHEEL_POSITION
180 /* Define this if you have adjustable CPU frequency */
181 #define HAVE_ADJUSTABLE_CPU_FREQ
183 #define BOOTFILE_EXT "ipod"
184 #define BOOTFILE "rockbox." BOOTFILE_EXT
185 #define BOOTDIR "/.rockbox"
187 /* Alternative bootfile extension - this is for encrypted images */
188 #define BOOTFILE_EXT2 "ipodx"
190 /* Define this for FM radio input available */
191 #define HAVE_FMRADIO_IN
193 /** Port-specific settings **/
195 #if 0
196 /* Main LCD contrast range and defaults */
197 #define MIN_CONTRAST_SETTING 1
198 #define MAX_CONTRAST_SETTING 30
199 #define DEFAULT_CONTRAST_SETTING 19 /* Match boot contrast */
200 #endif
202 /* Main LCD backlight brightness range and defaults */
203 #define MIN_BRIGHTNESS_SETTING 1
204 #define MAX_BRIGHTNESS_SETTING 0x2e
205 #define DEFAULT_BRIGHTNESS_SETTING 0x20
207 /* USB defines */
208 #define HAVE_USBSTACK
209 //#define HAVE_USB_HID_MOUSE - broken?
210 #define CONFIG_USBOTG USBOTG_S3C6400X
211 #define USB_VENDOR_ID 0x05AC
212 #define USB_PRODUCT_ID 0x1260
213 #define USB_NUM_ENDPOINTS 5
214 #define USE_ROCKBOX_USB
215 #define USB_DEVBSS_ATTR __attribute__((aligned(16)))
217 /* Define this if you can switch on/off the accessory power supply */
218 #define HAVE_ACCESSORY_SUPPLY
219 //#define IPOD_ACCESSORY_PROTOCOL
220 //#define HAVE_SERIAL
222 #define USB_WRITE_BUFFER_SIZE (1024*64)
224 /* Define this if a programmable hotkey is mapped */
225 #define HAVE_HOTKEY