Updated our source code header to explicitly mention that we are GPL v2 or
[Rockbox.git] / firmware / export / config-ipod3g.h
blobd5f403c1a9a01b02e7d91f29cfa4e64d45bc8942
1 /*
2 * This config file is for the Apple iPod 3g
3 */
5 #define TARGET_TREE /* this target is using the target tree system */
7 #define IPOD_ARCH 1
9 /* For Rolo and boot loader */
10 #define MODEL_NUMBER 7
12 /* define this if you use an ATA controller */
13 #define HAVE_ATA
15 /* define this if you have recording possibility */
16 /*#define HAVE_RECORDING*/
18 /* define this if you have a bitmap LCD display */
19 #define HAVE_LCD_BITMAP
21 /* define this if you want album art for this target */
22 #define HAVE_ALBUMART
24 /* define this if you can invert the colours on your LCD */
25 #define HAVE_LCD_INVERT
27 /* define this if the LCD needs to be shutdown */
28 #define HAVE_LCD_SHUTDOWN
30 /* define this if you have access to the quickscreen */
31 #define HAVE_QUICKSCREEN
32 /* define this if you have access to the pitchscreen */
33 #define HAVE_PITCHSCREEN
35 /* define this if you would like tagcache to build on this target */
36 #define HAVE_TAGCACHE
38 /* LCD dimensions */
39 #define LCD_WIDTH 160
40 #define LCD_HEIGHT 128
41 #define LCD_DEPTH 2 /* 4 colours - 2bpp */
43 #define LCD_PIXELFORMAT HORIZONTAL_PACKING
45 /* define this if you can flip your LCD */
46 #define HAVE_LCD_FLIP
48 #define HAVE_LCD_CONTRAST
50 /* LCD contrast */
51 #define MIN_CONTRAST_SETTING 5
52 #define MAX_CONTRAST_SETTING 63
53 #define DEFAULT_CONTRAST_SETTING 40 /* Match boot contrast */
55 #define CONFIG_KEYPAD IPOD_3G_PAD
57 /* Define this if you do software codec */
58 #define CONFIG_CODEC SWCODEC
60 /* define this if you have a real-time clock */
61 #define CONFIG_RTC RTC_PCF50605
63 /* Define if the device can wake from an RTC alarm */
64 #define HAVE_RTC_ALARM
66 /* Define this if you can switch on/off the accessory power supply */
67 #define HAVE_ACCESSORY_SUPPLY
69 /* Define this if you have a software controlled poweroff */
70 #define HAVE_SW_POWEROFF
72 /* The number of bytes reserved for loadable codecs */
73 #define CODEC_SIZE 0x80000
75 /* The number of bytes reserved for loadable plugins */
76 #define PLUGIN_BUFFER_SIZE 0x80000
78 /* Define this if you have the WM8731L audio codec */
79 #define HAVE_WM8731
81 /* WM8731 has no tone controls, so we use the software ones */
82 #define HAVE_SW_TONE_CONTROLS
84 /* Define this for LCD backlight available */
85 #define HAVE_BACKLIGHT
87 /* Define this if you can detect headphones */
88 #define HAVE_HEADPHONE_DETECTION
90 #define BATTERY_CAPACITY_DEFAULT 630 /* default battery capacity */
91 #define BATTERY_CAPACITY_MIN 630 /* min. capacity selectable */
92 #define BATTERY_CAPACITY_MAX 1200 /* max. capacity selectable */
93 #define BATTERY_CAPACITY_INC 10 /* capacity increment */
94 #define BATTERY_TYPES_COUNT 1 /* only one type */
96 /* Hardware controlled charging? FIXME */
97 //#define CONFIG_CHARGING CHARGING_SIMPLE
99 #ifndef SIMULATOR
101 /* Define this if you have a PortalPlayer PP5002 */
102 #define CONFIG_CPU PP5002
104 /* We're able to shut off power to the HDD */
105 #define HAVE_ATA_POWER_OFF
107 /* Define this if you want to use the PP5002 i2c interface */
108 #define CONFIG_I2C I2C_PP5002
110 /* define this if the hardware can be powered off while charging */
111 //#define HAVE_POWEROFF_WHILE_CHARGING
113 /* The start address index for ROM builds */
114 #define ROM_START 0x00000000
116 /* The size of the flash ROM */
117 #define FLASH_SIZE 0x100000
119 /* Define this to the CPU frequency */
120 #define CPU_FREQ 11289600
122 #define CONFIG_LCD LCD_IPOD2BPP
124 /* Offset ( in the firmware file's header ) to the file length */
125 #define FIRMWARE_OFFSET_FILE_LENGTH 0
127 /* Offset ( in the firmware file's header ) to the file CRC */
128 #define FIRMWARE_OFFSET_FILE_CRC 0
130 /* Offset ( in the firmware file's header ) to the real data */
131 #define FIRMWARE_OFFSET_FILE_DATA 8
133 #define USB_IPODSTYLE
134 /* actually both firewire and USB, USB isn't handled yet */
136 /* Virtual LED (icon) */
137 #define CONFIG_LED LED_VIRTUAL
139 /* Define this if you have adjustable CPU frequency */
140 #define HAVE_ADJUSTABLE_CPU_FREQ
142 #define BOOTFILE_EXT "ipod"
143 #define BOOTFILE "rockbox." BOOTFILE_EXT
144 #define BOOTDIR "/.rockbox"
146 #define ICODE_ATTR_TREMOR_NOT_MDCT
148 #endif /* SIMULATOR */