Fix typo.
[Rockbox.git] / firmware / export / config-ipod3g.h
blobe3c2a922d9458d90eab1599f182f1e722d9837d2
1 /*
2 * This config file is for the Apple iPod 3g
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 7
11 /* define this if you have recording possibility */
12 /*#define HAVE_RECORDING*/
14 /* define this if you have a bitmap LCD display */
15 #define HAVE_LCD_BITMAP
17 /* define this if you can invert the colours on your LCD */
18 #define HAVE_LCD_INVERT
20 /* define this if the LCD needs to be shutdown */
21 #define HAVE_LCD_SHUTDOWN
23 /* define this if you have access to the quickscreen */
24 #define HAVE_QUICKSCREEN
25 /* define this if you have access to the pitchscreen */
26 #define HAVE_PITCHSCREEN
28 /* define this if you would like tagcache to build on this target */
29 #define HAVE_TAGCACHE
31 /* LCD dimensions */
32 #define LCD_WIDTH 160
33 #define LCD_HEIGHT 128
34 #define LCD_DEPTH 2 /* 4 colours - 2bpp */
36 #define LCD_PIXELFORMAT HORIZONTAL_PACKING
38 /* define this if you can flip your LCD */
39 #define HAVE_LCD_FLIP
41 /* LCD contrast */
42 #define MIN_CONTRAST_SETTING 5
43 #define MAX_CONTRAST_SETTING 63
44 #define DEFAULT_CONTRAST_SETTING 40 /* Match boot contrast */
46 #define CONFIG_KEYPAD IPOD_3G_PAD
48 /* Define this if you do software codec */
49 #define CONFIG_CODEC SWCODEC
51 /* define this if you have a real-time clock */
52 #define CONFIG_RTC RTC_PCF50605
54 /* Define if the device can wake from an RTC alarm */
55 #define HAVE_RTC_ALARM
57 /* Define this if you have a software controlled poweroff */
58 #define HAVE_SW_POWEROFF
60 /* The number of bytes reserved for loadable codecs */
61 #define CODEC_SIZE 0x80000
63 /* The number of bytes reserved for loadable plugins */
64 #define PLUGIN_BUFFER_SIZE 0x80000
66 /* Define this if you have the WM8731L audio codec */
67 #define HAVE_WM8731
69 /* WM8731 has no tone controls, so we use the software ones */
70 #define HAVE_SW_TONE_CONTROLS
72 /* Define this for LCD backlight available */
73 #define HAVE_BACKLIGHT
75 /* Define this if you can detect headphones */
76 #define HAVE_HEADPHONE_DETECTION
78 #define BATTERY_CAPACITY_DEFAULT 630 /* default battery capacity */
79 #define BATTERY_CAPACITY_MIN 630 /* min. capacity selectable */
80 #define BATTERY_CAPACITY_MAX 1200 /* max. capacity selectable */
81 #define BATTERY_CAPACITY_INC 10 /* capacity increment */
82 #define BATTERY_TYPES_COUNT 1 /* only one type */
84 /* Hardware controlled charging? FIXME */
85 //#define CONFIG_CHARGING CHARGING_SIMPLE
87 #ifndef SIMULATOR
89 /* Define this if you have a PortalPlayer PP5002 */
90 #define CONFIG_CPU PP5002
92 /* We're able to shut off power to the HDD */
93 #define HAVE_ATA_POWER_OFF
95 /* Define this if you want to use the PP5002 i2c interface */
96 #define CONFIG_I2C I2C_PP5002
98 /* define this if the hardware can be powered off while charging */
99 //#define HAVE_POWEROFF_WHILE_CHARGING
101 /* The start address index for ROM builds */
102 #define ROM_START 0x00000000
104 /* The size of the flash ROM */
105 #define FLASH_SIZE 0x100000
107 /* Define this to the CPU frequency */
108 #define CPU_FREQ 11289600
110 #define CONFIG_LCD LCD_IPOD2BPP
112 /* Offset ( in the firmware file's header ) to the file length */
113 #define FIRMWARE_OFFSET_FILE_LENGTH 0
115 /* Offset ( in the firmware file's header ) to the file CRC */
116 #define FIRMWARE_OFFSET_FILE_CRC 0
118 /* Offset ( in the firmware file's header ) to the real data */
119 #define FIRMWARE_OFFSET_FILE_DATA 8
121 #define USB_IPODSTYLE
122 /* actually both firewire and USB, USB isn't handled yet */
124 /* Virtual LED (icon) */
125 #define CONFIG_LED LED_VIRTUAL
127 /* Define this if you have adjustable CPU frequency */
128 #define HAVE_ADJUSTABLE_CPU_FREQ
130 #define BOOTFILE_EXT "ipod"
131 #define BOOTFILE "rockbox." BOOTFILE_EXT
132 #define BOOTDIR "/.rockbox"
134 #define ICODE_ATTR_TREMOR_NOT_MDCT
136 #endif /* SIMULATOR */