Updated our source code header to explicitly mention that we are GPL v2 or
[Rockbox.git] / firmware / export / config-ipod1g2g.h
blob6781fe608f24f472e3982d75d59628da294d7c32
1 /*
2 * This config file is for the Apple iPod 1g and 2g
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 19
11 /* define this if you use an ATA controller */
12 #define HAVE_ATA
14 /* define this if you have recording possibility */
15 /*#define HAVE_RECORDING*/
17 /* define this if you have a bitmap LCD display */
18 #define HAVE_LCD_BITMAP
20 /* define this if you want album art for this target */
21 #define HAVE_ALBUMART
23 /* define this if you can invert the colours on your LCD */
24 #define HAVE_LCD_INVERT
26 /* define this if the LCD needs to be shutdown */
27 #define HAVE_LCD_SHUTDOWN
29 /* define this if you have access to the quickscreen */
30 #define HAVE_QUICKSCREEN
31 /* define this if you have access to the pitchscreen */
32 #define HAVE_PITCHSCREEN
34 /* define this if you would like tagcache to build on this target */
35 #define HAVE_TAGCACHE
37 /* LCD dimensions */
38 #define LCD_WIDTH 160
39 #define LCD_HEIGHT 128
40 #define LCD_DEPTH 2 /* 4 colours - 2bpp */
42 #define LCD_PIXELFORMAT HORIZONTAL_PACKING
44 /* define this if you can flip your LCD */
45 #define HAVE_LCD_FLIP
47 #define HAVE_LCD_CONTRAST
49 /* LCD contrast */
50 #define MIN_CONTRAST_SETTING 5
51 #define MAX_CONTRAST_SETTING 63
52 #define DEFAULT_CONTRAST_SETTING 30 /* Match boot contrast */
54 #define CONFIG_KEYPAD IPOD_1G2G_PAD
56 /* Define this if you do software codec */
57 #define CONFIG_CODEC SWCODEC
59 /* Define this if you have a software controlled poweroff */
60 #define HAVE_SW_POWEROFF
62 /* The number of bytes reserved for loadable codecs */
63 #define CODEC_SIZE 0x80000
65 /* The number of bytes reserved for loadable plugins */
66 #define PLUGIN_BUFFER_SIZE 0x80000
68 /* Define this if you have the WM8731L audio codec */
69 #define HAVE_WM8721
71 /* WM8721 has no tone controls, so we use the software ones */
72 #define HAVE_SW_TONE_CONTROLS
74 /* Define this for LCD backlight available */
75 #define HAVE_BACKLIGHT
77 /* Define this if the backlight unverts LCD appearance */
78 #define HAVE_BACKLIGHT_INVERSION
80 /* Define this if you can detect headphones */
81 #define HAVE_HEADPHONE_DETECTION
83 #define BATTERY_CAPACITY_DEFAULT 1200 /* default battery capacity */
84 #define BATTERY_CAPACITY_MIN 1200 /* min. capacity selectable */
85 #define BATTERY_CAPACITY_MAX 1900 /* max. capacity selectable */
86 #define BATTERY_CAPACITY_INC 50 /* capacity increment */
87 #define BATTERY_TYPES_COUNT 1 /* only one type */
89 /* Hardware controlled charging? FIXME */
90 //#define CONFIG_CHARGING CHARGING_SIMPLE
92 /* FIXME: Don't shutdown on low battery until we have proper suspend. */
93 #define NO_LOW_BATTERY_SHUTDOWN
95 #ifndef SIMULATOR
97 /* Define this if you have a PortalPlayer PP5002 */
98 #define CONFIG_CPU PP5002
100 /* We're able to shut off power to the HDD */
101 #define HAVE_ATA_POWER_OFF
103 /* Define this if you want to use the PP5002 i2c interface */
104 #define CONFIG_I2C I2C_PP5002
106 /* define this if the hardware can be powered off while charging */
107 //#define HAVE_POWEROFF_WHILE_CHARGING
109 /* The start address index for ROM builds */
110 #define ROM_START 0x00000000
112 /* The size of the flash ROM */
113 #define FLASH_SIZE 0x100000
115 /* Define this to the CPU frequency */
116 #define CPU_FREQ 11289600
118 #define CONFIG_LCD LCD_IPOD2BPP
120 /* Offset ( in the firmware file's header ) to the file length */
121 #define FIRMWARE_OFFSET_FILE_LENGTH 0
123 /* Offset ( in the firmware file's header ) to the file CRC */
124 #define FIRMWARE_OFFSET_FILE_CRC 0
126 /* Offset ( in the firmware file's header ) to the real data */
127 #define FIRMWARE_OFFSET_FILE_DATA 8
129 #define USB_IPODSTYLE
130 /* actually firewire only, but handled like USB */
132 /* Virtual LED (icon) */
133 #define CONFIG_LED LED_VIRTUAL
135 /* Define this if you have adjustable CPU frequency */
136 #define HAVE_ADJUSTABLE_CPU_FREQ
138 #define BOOTFILE_EXT "ipod"
139 #define BOOTFILE "rockbox." BOOTFILE_EXT
140 #define BOOTDIR "/.rockbox"
142 #define ICODE_ATTR_TREMOR_NOT_MDCT
144 #endif /* SIMULATOR */