diff options
author | Björn Stenberg <bjorn@haxx.se> | 2009-12-07 09:17:48 +0000 |
---|---|---|
committer | Björn Stenberg <bjorn@haxx.se> | 2009-12-07 09:17:48 +0000 |
commit | 36a81eb9b98ac7b1dff0d6658dba0255dd579f5f (patch) | |
tree | 81b81008c4cb69c276329ecd50200887c4da4838 /firmware/export/config-ipod3g.h | |
parent | 66fa5b578904f7df61293d6ce5c08966b5db13db (diff) | |
download | rockbox-36a81eb9b98ac7b1dff0d6658dba0255dd579f5f.tar.gz rockbox-36a81eb9b98ac7b1dff0d6658dba0255dd579f5f.zip |
Reverted r23881 mistakenly committed to branch.v3.4
git-svn-id: svn://svn.rockbox.org/rockbox/branches/v3_4@23882 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/export/config-ipod3g.h')
-rw-r--r-- | firmware/export/config-ipod3g.h | 175 |
1 files changed, 175 insertions, 0 deletions
diff --git a/firmware/export/config-ipod3g.h b/firmware/export/config-ipod3g.h new file mode 100644 index 0000000000..197f80fe72 --- /dev/null +++ b/firmware/export/config-ipod3g.h | |||
@@ -0,0 +1,175 @@ | |||
1 | /* | ||
2 | * This config file is for the Apple iPod 3g | ||
3 | */ | ||
4 | |||
5 | #define TARGET_TREE /* this target is using the target tree system */ | ||
6 | |||
7 | #define IPOD_ARCH 1 | ||
8 | |||
9 | #define MODEL_NAME "Apple iPod 3g" | ||
10 | |||
11 | /* For Rolo and boot loader */ | ||
12 | #define MODEL_NUMBER 7 | ||
13 | |||
14 | /* define this if you use an ATA controller */ | ||
15 | #define CONFIG_STORAGE STORAGE_ATA | ||
16 | |||
17 | /* define this if you have recording possibility */ | ||
18 | /*#define HAVE_RECORDING*/ | ||
19 | |||
20 | /* define the bitmask of hardware sample rates */ | ||
21 | #define HW_SAMPR_CAPS (SAMPR_CAP_96 | SAMPR_CAP_88 | SAMPR_CAP_48 | \ | ||
22 | SAMPR_CAP_44 | SAMPR_CAP_32 | SAMPR_CAP_8) | ||
23 | |||
24 | /* define the bitmask of recording sample rates | ||
25 | #define REC_SAMPR_CAPS (SAMPR_CAP_96 | SAMPR_CAP_88 | SAMPR_CAP_48 | \ | ||
26 | SAMPR_CAP_44 | SAMPR_CAP_32 | SAMPR_CAP_8) */ | ||
27 | |||
28 | /* define this if you have a bitmap LCD display */ | ||
29 | #define HAVE_LCD_BITMAP | ||
30 | |||
31 | /* define this if you want album art for this target */ | ||
32 | #define HAVE_ALBUMART | ||
33 | |||
34 | /* define this to enable bitmap scaling */ | ||
35 | #define HAVE_BMP_SCALING | ||
36 | |||
37 | /* define this to enable JPEG decoding */ | ||
38 | #define HAVE_JPEG | ||
39 | |||
40 | /* define this if you can invert the colours on your LCD */ | ||
41 | #define HAVE_LCD_INVERT | ||
42 | |||
43 | /* define this if the LCD needs to be shutdown */ | ||
44 | #define HAVE_LCD_SHUTDOWN | ||
45 | |||
46 | /* define this if you have access to the quickscreen */ | ||
47 | #define HAVE_QUICKSCREEN | ||
48 | /* define this if you have access to the pitchscreen */ | ||
49 | #define HAVE_PITCHSCREEN | ||
50 | |||
51 | /* define this if you would like tagcache to build on this target */ | ||
52 | #define HAVE_TAGCACHE | ||
53 | |||
54 | /* LCD dimensions */ | ||
55 | #define LCD_WIDTH 160 | ||
56 | #define LCD_HEIGHT 128 | ||
57 | #define LCD_DEPTH 2 /* 4 colours - 2bpp */ | ||
58 | |||
59 | #define LCD_PIXELFORMAT HORIZONTAL_PACKING | ||
60 | |||
61 | /* Display colours, for screenshots and sim (0xRRGGBB) */ | ||
62 | #define LCD_DARKCOLOR 0x000000 | ||
63 | #define LCD_BRIGHTCOLOR 0x5a915a | ||
64 | #define LCD_BL_DARKCOLOR 0x000000 | ||
65 | #define LCD_BL_BRIGHTCOLOR 0xadd8e6 | ||
66 | |||
67 | /* define this if you can flip your LCD */ | ||
68 | #define HAVE_LCD_FLIP | ||
69 | |||
70 | #define HAVE_LCD_CONTRAST | ||
71 | |||
72 | /* LCD contrast */ | ||
73 | #define MIN_CONTRAST_SETTING 5 | ||
74 | #define MAX_CONTRAST_SETTING 63 | ||
75 | #define DEFAULT_CONTRAST_SETTING 40 /* Match boot contrast */ | ||
76 | |||
77 | #define CONFIG_KEYPAD IPOD_3G_PAD | ||
78 | |||
79 | #define HAVE_SCROLLWHEEL | ||
80 | |||
81 | /* Define this if you do software codec */ | ||
82 | #define CONFIG_CODEC SWCODEC | ||
83 | |||
84 | /* define this if you have a real-time clock */ | ||
85 | #define CONFIG_RTC RTC_PCF50605 | ||
86 | |||
87 | /* Define if the device can wake from an RTC alarm */ | ||
88 | #define HAVE_RTC_ALARM | ||
89 | |||
90 | /* Define this if you can switch on/off the accessory power supply */ | ||
91 | #define HAVE_ACCESSORY_SUPPLY | ||
92 | |||
93 | /* Define this if you have a software controlled poweroff */ | ||
94 | #define HAVE_SW_POWEROFF | ||
95 | |||
96 | /* The number of bytes reserved for loadable codecs */ | ||
97 | #define CODEC_SIZE 0x100000 | ||
98 | |||
99 | /* The number of bytes reserved for loadable plugins */ | ||
100 | #define PLUGIN_BUFFER_SIZE 0x80000 | ||
101 | |||
102 | /* Define this if you have the WM8731L audio codec */ | ||
103 | #define HAVE_WM8731 | ||
104 | |||
105 | /* WM8731 has no tone controls, so we use the software ones */ | ||
106 | #define HAVE_SW_TONE_CONTROLS | ||
107 | |||
108 | /* define this if you have a disk storage, i.e. something | ||
109 | that needs spinups and can cause skips when shaked */ | ||
110 | #define HAVE_DISK_STORAGE | ||
111 | |||
112 | /* Define this for LCD backlight available */ | ||
113 | #define HAVE_BACKLIGHT | ||
114 | |||
115 | /* Define this if you can detect headphones */ | ||
116 | #define HAVE_HEADPHONE_DETECTION | ||
117 | |||
118 | #define BATTERY_CAPACITY_DEFAULT 630 /* default battery capacity */ | ||
119 | #define BATTERY_CAPACITY_MIN 630 /* min. capacity selectable */ | ||
120 | #define BATTERY_CAPACITY_MAX 1200 /* max. capacity selectable */ | ||
121 | #define BATTERY_CAPACITY_INC 10 /* capacity increment */ | ||
122 | #define BATTERY_TYPES_COUNT 1 /* only one type */ | ||
123 | |||
124 | /* Hardware controlled charging? FIXME */ | ||
125 | #define CONFIG_CHARGING CHARGING_SIMPLE | ||
126 | |||
127 | #ifndef SIMULATOR | ||
128 | |||
129 | /* Define this if you have a PortalPlayer PP5002 */ | ||
130 | #define CONFIG_CPU PP5002 | ||
131 | |||
132 | /* We're able to shut off power to the HDD */ | ||
133 | #define HAVE_ATA_POWER_OFF | ||
134 | |||
135 | /* Define this if you want to use the PP5002 i2c interface */ | ||
136 | #define CONFIG_I2C I2C_PP5002 | ||
137 | |||
138 | /* define this if the hardware can be powered off while charging */ | ||
139 | //#define HAVE_POWEROFF_WHILE_CHARGING | ||
140 | |||
141 | /* The start address index for ROM builds */ | ||
142 | #define ROM_START 0x00000000 | ||
143 | |||
144 | /* The size of the flash ROM */ | ||
145 | #define FLASH_SIZE 0x100000 | ||
146 | |||
147 | /* Define this to the CPU frequency */ | ||
148 | #define CPU_FREQ 11289600 | ||
149 | |||
150 | #define CONFIG_LCD LCD_IPOD2BPP | ||
151 | |||
152 | /* Offset ( in the firmware file's header ) to the file length */ | ||
153 | #define FIRMWARE_OFFSET_FILE_LENGTH 0 | ||
154 | |||
155 | /* Offset ( in the firmware file's header ) to the file CRC */ | ||
156 | #define FIRMWARE_OFFSET_FILE_CRC 0 | ||
157 | |||
158 | /* Offset ( in the firmware file's header ) to the real data */ | ||
159 | #define FIRMWARE_OFFSET_FILE_DATA 8 | ||
160 | |||
161 | #define USB_HANDLED_BY_OF | ||
162 | /* actually both firewire and USB, USB isn't handled yet */ | ||
163 | |||
164 | /* Define this if you have adjustable CPU frequency */ | ||
165 | #define HAVE_ADJUSTABLE_CPU_FREQ | ||
166 | |||
167 | #define BOOTFILE_EXT "ipod" | ||
168 | #define BOOTFILE "rockbox." BOOTFILE_EXT | ||
169 | #define BOOTDIR "/.rockbox" | ||
170 | |||
171 | #define ICODE_ATTR_TREMOR_NOT_MDCT | ||
172 | |||
173 | #define IRAM_LCDFRAMEBUFFER IBSS_ATTR /* put the lcd frame buffer in IRAM */ | ||
174 | |||
175 | #endif /* SIMULATOR */ | ||