diff options
Diffstat (limited to 'firmware/export/config/ipodnano2g.h')
-rw-r--r-- | firmware/export/config/ipodnano2g.h | 213 |
1 files changed, 213 insertions, 0 deletions
diff --git a/firmware/export/config/ipodnano2g.h b/firmware/export/config/ipodnano2g.h new file mode 100644 index 0000000000..be7129b690 --- /dev/null +++ b/firmware/export/config/ipodnano2g.h | |||
@@ -0,0 +1,213 @@ | |||
1 | /* | ||
2 | * This config file is for iPod Nano 2nd Generation | ||
3 | */ | ||
4 | #define TARGET_TREE /* this target is using the target tree system */ | ||
5 | |||
6 | #define IPOD_ARCH 1 | ||
7 | |||
8 | /* For Rolo and boot loader */ | ||
9 | #define MODEL_NUMBER 62 | ||
10 | |||
11 | #define MODEL_NAME "Apple iPod Nano 2g" | ||
12 | |||
13 | /* define this if you have recording possibility */ | ||
14 | //#define HAVE_RECORDING | ||
15 | |||
16 | /* Define bitmask of input sources - recordable bitmask can be defined | ||
17 | explicitly if different */ | ||
18 | #define INPUT_SRC_CAPS (SRC_CAP_LINEIN) | ||
19 | |||
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 | |||
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) | ||
25 | |||
26 | /* define this if you have a bitmap LCD display */ | ||
27 | #define HAVE_LCD_BITMAP | ||
28 | |||
29 | /* define this if you can flip your LCD */ | ||
30 | //#define HAVE_LCD_FLIP | ||
31 | |||
32 | /* define this if you have a colour LCD */ | ||
33 | #define HAVE_LCD_COLOR | ||
34 | |||
35 | /* define this if you want album art for this target */ | ||
36 | #define HAVE_ALBUMART | ||
37 | |||
38 | /* define this to enable bitmap scaling */ | ||
39 | #define HAVE_BMP_SCALING | ||
40 | |||
41 | /* define this to enable JPEG decoding */ | ||
42 | #define HAVE_JPEG | ||
43 | |||
44 | /* define this if the LCD can shut down */ | ||
45 | #define HAVE_LCD_SHUTDOWN | ||
46 | |||
47 | /* define this if you can invert the colours on your LCD */ | ||
48 | //#define HAVE_LCD_INVERT | ||
49 | |||
50 | /* define this if you have access to the quickscreen */ | ||
51 | #define HAVE_QUICKSCREEN | ||
52 | |||
53 | /* define this if you have access to the pitchscreen */ | ||
54 | #define HAVE_PITCHSCREEN | ||
55 | |||
56 | /* define this if you would like tagcache to build on this target */ | ||
57 | #define HAVE_TAGCACHE | ||
58 | |||
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 | ||
64 | |||
65 | /* Define this if you can detect headphones */ | ||
66 | #define HAVE_HEADPHONE_DETECTION | ||
67 | |||
68 | /* define this if you have a flash memory storage */ | ||
69 | #define HAVE_FLASH_STORAGE | ||
70 | |||
71 | #define CONFIG_STORAGE STORAGE_NAND | ||
72 | |||
73 | #define CONFIG_NAND NAND_SAMSUNG | ||
74 | |||
75 | /* define this if at least one storage driver | ||
76 | needs to do cleanup on shutdown */ | ||
77 | #define HAVE_STORAGE_FLUSH | ||
78 | |||
79 | /* The NAND flash has 2048-byte sectors, and is our only storage */ | ||
80 | #define SECTOR_SIZE 2048 | ||
81 | |||
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 */ | ||
87 | |||
88 | /* Define this if your LCD can be enabled/disabled */ | ||
89 | //#define HAVE_LCD_ENABLE | ||
90 | |||
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 | ||
94 | |||
95 | #define CONFIG_KEYPAD IPOD_4G_PAD | ||
96 | |||
97 | //#define AB_REPEAT_ENABLE 1 | ||
98 | //#define ACTION_WPSAB_SINGLE ACTION_WPS_BROWSE | ||
99 | |||
100 | /* Define this to enable morse code input */ | ||
101 | #define HAVE_MORSE_INPUT | ||
102 | |||
103 | /* Define this if you do software codec */ | ||
104 | #define CONFIG_CODEC SWCODEC | ||
105 | |||
106 | /* define this if you have a real-time clock */ | ||
107 | #define CONFIG_RTC RTC_NANO2G | ||
108 | |||
109 | #define CONFIG_LCD LCD_NANO2G | ||
110 | |||
111 | /* Define the type of audio codec */ | ||
112 | #define HAVE_WM8975 | ||
113 | |||
114 | #define HAVE_PCM_DMA_ADDRESS | ||
115 | |||
116 | /* Define this for LCD backlight available */ | ||
117 | #define HAVE_BACKLIGHT | ||
118 | #define HAVE_BACKLIGHT_BRIGHTNESS | ||
119 | |||
120 | /* Define this if you have a software controlled poweroff */ | ||
121 | #define HAVE_SW_POWEROFF | ||
122 | |||
123 | /* The number of bytes reserved for loadable codecs */ | ||
124 | #define CODEC_SIZE 0x100000 | ||
125 | |||
126 | /* The number of bytes reserved for loadable plugins */ | ||
127 | #define PLUGIN_BUFFER_SIZE 0x80000 | ||
128 | |||
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 */ | ||
134 | |||
135 | /* Hardware controlled charging with monitoring */ | ||
136 | #define CONFIG_CHARGING CHARGING_MONITOR | ||
137 | |||
138 | /* define this if the unit can be powered or charged via USB */ | ||
139 | #define HAVE_USB_POWER | ||
140 | |||
141 | /* Define this if your LCD can set contrast */ | ||
142 | //#define HAVE_LCD_CONTRAST | ||
143 | |||
144 | /* The exact type of CPU */ | ||
145 | #define CONFIG_CPU S5L8701 | ||
146 | |||
147 | /* I2C interface */ | ||
148 | #define CONFIG_I2C I2C_S5L8700 | ||
149 | |||
150 | #define HAVE_USB_CHARGING_ENABLE | ||
151 | |||
152 | /* The size of the flash ROM */ | ||
153 | #define FLASH_SIZE 0x400000 | ||
154 | |||
155 | /* Define this to the CPU frequency */ | ||
156 | #define CPU_FREQ 191692800 | ||
157 | |||
158 | /* Define this if you have ATA power-off control */ | ||
159 | //#define HAVE_ATA_POWER_OFF | ||
160 | |||
161 | /* Offset ( in the firmware file's header ) to the file CRC */ | ||
162 | #define FIRMWARE_OFFSET_FILE_CRC 0 | ||
163 | |||
164 | /* Offset ( in the firmware file's header ) to the real data */ | ||
165 | #define FIRMWARE_OFFSET_FILE_DATA 8 | ||
166 | |||
167 | /* USB On-the-go */ | ||
168 | //#define CONFIG_USBOTG USBOTG_M5636 | ||
169 | |||
170 | /* Define this if you can read an absolute wheel position */ | ||
171 | #define HAVE_WHEEL_POSITION | ||
172 | |||
173 | /* Define this if you have adjustable CPU frequency */ | ||
174 | /* #define HAVE_ADJUSTABLE_CPU_FREQ - not yet */ | ||
175 | |||
176 | #define BOOTFILE_EXT "ipod" | ||
177 | #define BOOTFILE "rockbox." BOOTFILE_EXT | ||
178 | #define BOOTDIR "/.rockbox" | ||
179 | |||
180 | /* Alternative bootfile extension - this is for encrypted images */ | ||
181 | #define BOOTFILE_EXT2 "ipodx" | ||
182 | |||
183 | #if 0 | ||
184 | #define BOOTLOADER_ENTRYPOINT 0x001F0000 | ||
185 | #define FLASH_ENTRYPOINT 0x00001000 | ||
186 | #define FLASH_MAGIC 0xfbfbfbf1 | ||
187 | #endif | ||
188 | |||
189 | /* Define this for FM radio input available */ | ||
190 | #define HAVE_FMRADIO_IN | ||
191 | |||
192 | /** Port-specific settings **/ | ||
193 | |||
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 | ||
200 | |||
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 | ||
205 | |||
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))) | ||