Introduce new config header 'config-sim.h' that takes care of undefining things that...
[kugel-rb.git] / firmware / export / config-ipodnano2g.h
blobbcc98e0da3d37162771fa09d190a1499abac7bf3
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
62 /* Define this if you can detect headphones */
63 #define HAVE_HEADPHONE_DETECTION
65 /* define this if you have a flash memory storage */
66 #define HAVE_FLASH_STORAGE
68 #define CONFIG_STORAGE STORAGE_NAND
70 #define CONFIG_NAND NAND_SAMSUNG
72 /* define this if at least one storage driver
73 needs to do cleanup on shutdown */
74 #define HAVE_STORAGE_FLUSH
76 /* The NAND flash has 2048-byte sectors, and is our only storage */
77 #define SECTOR_SIZE 2048
79 /* LCD dimensions */
80 #define LCD_WIDTH 176
81 #define LCD_HEIGHT 132
82 #define LCD_DEPTH 16 /* pseudo 262.144 colors */
83 #define LCD_PIXELFORMAT RGB565 /* rgb565 */
85 /* Define this if your LCD can be enabled/disabled */
86 //#define HAVE_LCD_ENABLE
88 /* Define this if your LCD can be put to sleep. HAVE_LCD_ENABLE
89 should be defined as well. */
90 //#define HAVE_LCD_SLEEP
92 #define CONFIG_KEYPAD IPOD_4G_PAD
94 //#define AB_REPEAT_ENABLE 1
95 //#define ACTION_WPSAB_SINGLE ACTION_WPS_BROWSE
97 /* Define this if you do software codec */
98 #define CONFIG_CODEC SWCODEC
100 /* define this if you have a real-time clock */
101 #define CONFIG_RTC RTC_NANO2G
103 #define CONFIG_LCD LCD_NANO2G
105 /* Define the type of audio codec */
106 #define HAVE_WM8975
108 #define HAVE_PCM_DMA_ADDRESS
110 /* Define this for LCD backlight available */
111 #define HAVE_BACKLIGHT
112 #define HAVE_BACKLIGHT_BRIGHTNESS
114 /* Define this if you have a software controlled poweroff */
115 #define HAVE_SW_POWEROFF
117 /* The number of bytes reserved for loadable codecs */
118 #define CODEC_SIZE 0x100000
120 /* The number of bytes reserved for loadable plugins */
121 #define PLUGIN_BUFFER_SIZE 0x80000
123 #define BATTERY_CAPACITY_DEFAULT 400 /* default battery capacity */
124 #define BATTERY_CAPACITY_MIN 400 /* min. capacity selectable */
125 #define BATTERY_CAPACITY_MAX 400 /* max. capacity selectable */
126 #define BATTERY_CAPACITY_INC 50 /* capacity increment */
127 #define BATTERY_TYPES_COUNT 1 /* only one type */
129 /* Hardware controlled charging with monitoring */
130 #define CONFIG_CHARGING CHARGING_MONITOR
132 /* define this if the unit can be powered or charged via USB */
133 #define HAVE_USB_POWER
135 /* Define this if your LCD can set contrast */
136 //#define HAVE_LCD_CONTRAST
138 /* The exact type of CPU */
139 #define CONFIG_CPU S5L8701
141 /* I2C interface */
142 #define CONFIG_I2C I2C_S5L8700
144 #define HAVE_USB_CHARGING_ENABLE
146 /* The size of the flash ROM */
147 #define FLASH_SIZE 0x400000
149 /* Define this to the CPU frequency */
150 #define CPU_FREQ 191692800
152 /* Define this if you have ATA power-off control */
153 //#define HAVE_ATA_POWER_OFF
155 /* Offset ( in the firmware file's header ) to the file CRC */
156 #define FIRMWARE_OFFSET_FILE_CRC 0
158 /* Offset ( in the firmware file's header ) to the real data */
159 #define FIRMWARE_OFFSET_FILE_DATA 8
161 /* USB On-the-go */
162 //#define CONFIG_USBOTG USBOTG_M5636
164 /* Define this if you can read an absolute wheel position */
165 #define HAVE_WHEEL_POSITION
167 /* Define this if you have adjustable CPU frequency */
168 /* #define HAVE_ADJUSTABLE_CPU_FREQ - not yet */
170 #define BOOTFILE_EXT "ipod"
171 #define BOOTFILE "rockbox." BOOTFILE_EXT
172 #define BOOTDIR "/.rockbox"
174 /* Alternative bootfile extension - this is for encrypted images */
175 #define BOOTFILE_EXT2 "ipodx"
177 #if 0
178 #define BOOTLOADER_ENTRYPOINT 0x001F0000
179 #define FLASH_ENTRYPOINT 0x00001000
180 #define FLASH_MAGIC 0xfbfbfbf1
181 #endif
183 /* Define this for FM radio input available */
184 #define HAVE_FMRADIO_IN
186 /** Port-specific settings **/
188 #if 0
189 /* Main LCD contrast range and defaults */
190 #define MIN_CONTRAST_SETTING 1
191 #define MAX_CONTRAST_SETTING 30
192 #define DEFAULT_CONTRAST_SETTING 19 /* Match boot contrast */
193 #endif
195 /* Main LCD backlight brightness range and defaults */
196 #define MIN_BRIGHTNESS_SETTING 1
197 #define MAX_BRIGHTNESS_SETTING 0x2e
198 #define DEFAULT_BRIGHTNESS_SETTING 0x20
200 /* USB defines */
201 #define HAVE_USBSTACK
202 #define CONFIG_USBOTG USBOTG_S3C6400X
203 #define USB_VENDOR_ID 0x05AC
204 #define USB_PRODUCT_ID 0x1260
205 #define USB_NUM_ENDPOINTS 5
206 #define USE_ROCKBOX_USB
207 #define USB_DEVBSS_ATTR __attribute__((aligned(16)))