Move bin2c handling to libtools.make
[maemo-rb.git] / firmware / export / config / ipodnano2g.h
blob9b34e6a204196fc1a4983282378ae44ed1f89006
1 /*
2 * This config file is for iPod Nano 2nd Generation
3 */
5 #define IPOD_ARCH 1
7 /* For Rolo and boot loader */
8 #define MODEL_NUMBER 62
10 #define MODEL_NAME "Apple iPod Nano 2g"
12 /* define this if you have recording possibility */
13 //#define HAVE_RECORDING
15 /* Define bitmask of input sources - recordable bitmask can be defined
16 explicitly if different */
17 #define INPUT_SRC_CAPS (SRC_CAP_LINEIN)
19 /* define the bitmask of hardware sample rates */
20 #define HW_SAMPR_CAPS (SAMPR_CAP_88 | SAMPR_CAP_44 | SAMPR_CAP_22 | SAMPR_CAP_11 \
21 | SAMPR_CAP_96 | SAMPR_CAP_48 | SAMPR_CAP_24 | SAMPR_CAP_12 \
22 | SAMPR_CAP_64 | SAMPR_CAP_32 | SAMPR_CAP_16 | SAMPR_CAP_8)
24 /* define the bitmask of recording sample rates */
25 #define REC_SAMPR_CAPS (SAMPR_CAP_88 | SAMPR_CAP_44 | SAMPR_CAP_22 | SAMPR_CAP_11 \
26 | SAMPR_CAP_96 | SAMPR_CAP_48 | SAMPR_CAP_24 | SAMPR_CAP_12 \
27 | SAMPR_CAP_64 | SAMPR_CAP_32 | SAMPR_CAP_16 | SAMPR_CAP_8)
29 /* define this if you have a bitmap LCD display */
30 #define HAVE_LCD_BITMAP
32 /* define this if you can flip your LCD */
33 //#define HAVE_LCD_FLIP
35 /* define this if you have a colour LCD */
36 #define HAVE_LCD_COLOR
38 /* define this if you want album art for this target */
39 #define HAVE_ALBUMART
41 /* define this to enable bitmap scaling */
42 #define HAVE_BMP_SCALING
44 /* define this to enable JPEG decoding */
45 #define HAVE_JPEG
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 the LCD can shut down */
92 #define HAVE_LCD_SHUTDOWN
94 /* Define this if your LCD can be enabled/disabled */
95 #define HAVE_LCD_ENABLE
97 /* Define this if your LCD can be put to sleep. HAVE_LCD_ENABLE
98 should be defined as well. */
99 #ifndef BOOTLOADER
100 #define HAVE_LCD_SLEEP
101 #define HAVE_LCD_SLEEP_SETTING
102 #endif
104 #define CONFIG_KEYPAD IPOD_4G_PAD
106 /* Define this to have CPU boosted while scrolling in the UI */
107 #define HAVE_GUI_BOOST
109 #define AB_REPEAT_ENABLE
110 #define ACTION_WPSAB_SINGLE ACTION_WPS_BROWSE
112 /* Define this to enable morse code input */
113 #define HAVE_MORSE_INPUT
115 /* Define this if you do software codec */
116 #define CONFIG_CODEC SWCODEC
118 /* define this if you have a real-time clock */
119 #define CONFIG_RTC RTC_NANO2G
121 /* Define if the device can wake from an RTC alarm */
122 //#define HAVE_RTC_ALARM
124 #define CONFIG_LCD LCD_NANO2G
126 /* Define the type of audio codec */
127 #define HAVE_WM8975
129 #define HAVE_PCM_DMA_ADDRESS
131 /* Define this for LCD backlight available */
132 #define HAVE_BACKLIGHT
133 #define HAVE_BACKLIGHT_BRIGHTNESS
135 /* Define this if you have a software controlled poweroff */
136 #define HAVE_SW_POWEROFF
138 /* The number of bytes reserved for loadable codecs */
139 #define CODEC_SIZE 0x100000
141 /* The number of bytes reserved for loadable plugins */
142 #define PLUGIN_BUFFER_SIZE 0x80000
144 #define BATTERY_CAPACITY_DEFAULT 400 /* default battery capacity */
145 #define BATTERY_CAPACITY_MIN 300 /* min. capacity selectable */
146 #define BATTERY_CAPACITY_MAX 500 /* max. capacity selectable */
147 #define BATTERY_CAPACITY_INC 10 /* capacity increment */
148 #define BATTERY_TYPES_COUNT 1 /* only one type */
150 #define CONFIG_BATTERY_MEASURE VOLTAGE_MEASURE
152 /* Hardware controlled charging with monitoring */
153 #define CONFIG_CHARGING CHARGING_MONITOR
155 /* define current usage levels */
156 #define CURRENT_NORMAL 17 /* playback @48MHz clock, lcd sleep*/
157 #define CURRENT_BACKLIGHT 23 /* maximum brightness */
159 /* define this if the unit can be powered or charged via USB */
160 #define HAVE_USB_POWER
162 /* Define this if your LCD can set contrast */
163 //#define HAVE_LCD_CONTRAST
165 /* Define Apple remote tuner */
166 //#define CONFIG_TUNER IPOD_REMOTE_TUNER
167 //#define HAVE_RDS_CAP
169 /* The exact type of CPU */
170 #define CONFIG_CPU S5L8701
172 /* I2C interface */
173 #define CONFIG_I2C I2C_S5L8700
175 #define HAVE_USB_CHARGING_ENABLE
177 /* The size of the flash ROM */
178 #define FLASH_SIZE 0x400000
180 /* Define this to the CPU frequency */
181 #define CPU_FREQ 191692800
183 /* define this if the hardware can be powered off while charging */
184 #define HAVE_POWEROFF_WHILE_CHARGING
186 /* Offset ( in the firmware file's header ) to the file CRC */
187 #define FIRMWARE_OFFSET_FILE_CRC 0
189 /* Offset ( in the firmware file's header ) to the real data */
190 #define FIRMWARE_OFFSET_FILE_DATA 8
192 /* Define this if you can read an absolute wheel position */
193 #define HAVE_WHEEL_POSITION
195 #define HAVE_HARDWARE_CLICK
197 /* Define this if you have adjustable CPU frequency */
198 #define HAVE_ADJUSTABLE_CPU_FREQ
200 #define BOOTFILE_EXT "ipod"
201 #define BOOTFILE "rockbox." BOOTFILE_EXT
202 #define BOOTDIR "/.rockbox"
204 /* Alternative bootfile extension - this is for encrypted images */
205 #define BOOTFILE_EXT2 "ipodx"
207 /* Define this for FM radio input available */
208 #define HAVE_FMRADIO_IN
210 /** Port-specific settings **/
212 #if 0
213 /* Main LCD contrast range and defaults */
214 #define MIN_CONTRAST_SETTING 1
215 #define MAX_CONTRAST_SETTING 30
216 #define DEFAULT_CONTRAST_SETTING 19 /* Match boot contrast */
217 #endif
219 /* Main LCD backlight brightness range and defaults */
220 #define MIN_BRIGHTNESS_SETTING 1
221 #define MAX_BRIGHTNESS_SETTING 0x2e
222 #define DEFAULT_BRIGHTNESS_SETTING 0x20
224 /* USB defines */
225 #define HAVE_USBSTACK
226 #define HAVE_USB_HID_MOUSE
227 #define CONFIG_USBOTG USBOTG_S3C6400X
228 #define USB_VENDOR_ID 0x05AC
229 #define USB_PRODUCT_ID 0x1260
230 #define USB_NUM_ENDPOINTS 5
231 #define USE_ROCKBOX_USB
232 #define USB_DEVBSS_ATTR __attribute__((aligned(16)))
234 /* Define this if you can switch on/off the accessory power supply */
235 #define HAVE_ACCESSORY_SUPPLY
236 //#define IPOD_ACCESSORY_PROTOCOL
237 //#define HAVE_SERIAL
239 /* Define this, if you can switch on/off the lineout */
240 #define HAVE_LINEOUT_POWEROFF
242 #define USB_WRITE_BUFFER_SIZE (1024*64)
244 /* Define this if a programmable hotkey is mapped */
245 #define HAVE_HOTKEY