Gigibeat S Manual - redo r23795 to look like it was originally meant to look.
[kugel-rb.git] / firmware / export / config-ipodnano2g.h
blobbe7129b690a7236677aca5e81586eeca2f3e5572
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 /* define this if you have access to the quickscreen */
51 #define HAVE_QUICKSCREEN
53 /* define this if you have access to the pitchscreen */
54 #define HAVE_PITCHSCREEN
56 /* define this if you would like tagcache to build on this target */
57 #define HAVE_TAGCACHE
59 /* define this if the unit uses a scrollwheel for navigation */
60 #define HAVE_SCROLLWHEEL
61 #define HAVE_WHEEL_ACCELERATION
62 #define WHEEL_ACCEL_START 270
63 #define WHEEL_ACCELERATION 3
65 /* Define this if you can detect headphones */
66 #define HAVE_HEADPHONE_DETECTION
68 /* define this if you have a flash memory storage */
69 #define HAVE_FLASH_STORAGE
71 #define CONFIG_STORAGE STORAGE_NAND
73 #define CONFIG_NAND NAND_SAMSUNG
75 /* define this if at least one storage driver
76 needs to do cleanup on shutdown */
77 #define HAVE_STORAGE_FLUSH
79 /* The NAND flash has 2048-byte sectors, and is our only storage */
80 #define SECTOR_SIZE 2048
82 /* LCD dimensions */
83 #define LCD_WIDTH 176
84 #define LCD_HEIGHT 132
85 #define LCD_DEPTH 16 /* pseudo 262.144 colors */
86 #define LCD_PIXELFORMAT RGB565 /* rgb565 */
88 /* Define this if your LCD can be enabled/disabled */
89 //#define HAVE_LCD_ENABLE
91 /* Define this if your LCD can be put to sleep. HAVE_LCD_ENABLE
92 should be defined as well. */
93 //#define HAVE_LCD_SLEEP
95 #define CONFIG_KEYPAD IPOD_4G_PAD
97 //#define AB_REPEAT_ENABLE 1
98 //#define ACTION_WPSAB_SINGLE ACTION_WPS_BROWSE
100 /* Define this to enable morse code input */
101 #define HAVE_MORSE_INPUT
103 /* Define this if you do software codec */
104 #define CONFIG_CODEC SWCODEC
106 /* define this if you have a real-time clock */
107 #define CONFIG_RTC RTC_NANO2G
109 #define CONFIG_LCD LCD_NANO2G
111 /* Define the type of audio codec */
112 #define HAVE_WM8975
114 #define HAVE_PCM_DMA_ADDRESS
116 /* Define this for LCD backlight available */
117 #define HAVE_BACKLIGHT
118 #define HAVE_BACKLIGHT_BRIGHTNESS
120 /* Define this if you have a software controlled poweroff */
121 #define HAVE_SW_POWEROFF
123 /* The number of bytes reserved for loadable codecs */
124 #define CODEC_SIZE 0x100000
126 /* The number of bytes reserved for loadable plugins */
127 #define PLUGIN_BUFFER_SIZE 0x80000
129 #define BATTERY_CAPACITY_DEFAULT 400 /* default battery capacity */
130 #define BATTERY_CAPACITY_MIN 400 /* min. capacity selectable */
131 #define BATTERY_CAPACITY_MAX 400 /* max. capacity selectable */
132 #define BATTERY_CAPACITY_INC 50 /* capacity increment */
133 #define BATTERY_TYPES_COUNT 1 /* only one type */
135 /* Hardware controlled charging with monitoring */
136 #define CONFIG_CHARGING CHARGING_MONITOR
138 /* define this if the unit can be powered or charged via USB */
139 #define HAVE_USB_POWER
141 /* Define this if your LCD can set contrast */
142 //#define HAVE_LCD_CONTRAST
144 /* The exact type of CPU */
145 #define CONFIG_CPU S5L8701
147 /* I2C interface */
148 #define CONFIG_I2C I2C_S5L8700
150 #define HAVE_USB_CHARGING_ENABLE
152 /* The size of the flash ROM */
153 #define FLASH_SIZE 0x400000
155 /* Define this to the CPU frequency */
156 #define CPU_FREQ 191692800
158 /* Define this if you have ATA power-off control */
159 //#define HAVE_ATA_POWER_OFF
161 /* Offset ( in the firmware file's header ) to the file CRC */
162 #define FIRMWARE_OFFSET_FILE_CRC 0
164 /* Offset ( in the firmware file's header ) to the real data */
165 #define FIRMWARE_OFFSET_FILE_DATA 8
167 /* USB On-the-go */
168 //#define CONFIG_USBOTG USBOTG_M5636
170 /* Define this if you can read an absolute wheel position */
171 #define HAVE_WHEEL_POSITION
173 /* Define this if you have adjustable CPU frequency */
174 /* #define HAVE_ADJUSTABLE_CPU_FREQ - not yet */
176 #define BOOTFILE_EXT "ipod"
177 #define BOOTFILE "rockbox." BOOTFILE_EXT
178 #define BOOTDIR "/.rockbox"
180 /* Alternative bootfile extension - this is for encrypted images */
181 #define BOOTFILE_EXT2 "ipodx"
183 #if 0
184 #define BOOTLOADER_ENTRYPOINT 0x001F0000
185 #define FLASH_ENTRYPOINT 0x00001000
186 #define FLASH_MAGIC 0xfbfbfbf1
187 #endif
189 /* Define this for FM radio input available */
190 #define HAVE_FMRADIO_IN
192 /** Port-specific settings **/
194 #if 0
195 /* Main LCD contrast range and defaults */
196 #define MIN_CONTRAST_SETTING 1
197 #define MAX_CONTRAST_SETTING 30
198 #define DEFAULT_CONTRAST_SETTING 19 /* Match boot contrast */
199 #endif
201 /* Main LCD backlight brightness range and defaults */
202 #define MIN_BRIGHTNESS_SETTING 1
203 #define MAX_BRIGHTNESS_SETTING 0x2e
204 #define DEFAULT_BRIGHTNESS_SETTING 0x20
206 /* USB defines */
207 #define HAVE_USBSTACK
208 #define CONFIG_USBOTG USBOTG_S3C6400X
209 #define USB_VENDOR_ID 0x05AC
210 #define USB_PRODUCT_ID 0x1260
211 #define USB_NUM_ENDPOINTS 5
212 #define USE_ROCKBOX_USB
213 #define USB_DEVBSS_ATTR __attribute__((aligned(16)))