A bunch of improvements that make playback of the first track work
[Rockbox.git] / firmware / export / config-ipod1g2g.h
blob138ef8dc77b89741833b865d0bdbc1cc7fc84335
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 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 30 /* Match boot contrast */
46 #define CONFIG_KEYPAD IPOD_1G2G_PAD
48 /* Define this if you do software codec */
49 #define CONFIG_CODEC SWCODEC
51 /* Define this if you have a software controlled poweroff */
52 #define HAVE_SW_POWEROFF
54 /* The number of bytes reserved for loadable codecs */
55 #define CODEC_SIZE 0x80000
57 /* The number of bytes reserved for loadable plugins */
58 #define PLUGIN_BUFFER_SIZE 0x80000
60 /* Define this if you have the WM8731L audio codec */
61 #define HAVE_WM8721
63 /* WM8721 has no tone controls, so we use the software ones */
64 #define HAVE_SW_TONE_CONTROLS
66 /* Define this for LCD backlight available */
67 #define HAVE_BACKLIGHT
69 /* Define this if the backlight unverts LCD appearance */
70 #define HAVE_BACKLIGHT_INVERSION
72 /* Define this if you can detect headphones */
73 #define HAVE_HEADPHONE_DETECTION
75 #define BATTERY_CAPACITY_DEFAULT 630 /* default battery capacity */
76 #define BATTERY_CAPACITY_MIN 1200 /* min. capacity selectable */
77 #define BATTERY_CAPACITY_MAX 1900 /* max. capacity selectable */
78 #define BATTERY_CAPACITY_INC 50 /* capacity increment */
79 #define BATTERY_TYPES_COUNT 1 /* only one type */
81 /* Hardware controlled charging? FIXME */
82 //#define CONFIG_CHARGING CHARGING_SIMPLE
84 #ifndef SIMULATOR
86 /* Define this if you have a PortalPlayer PP5002 */
87 #define CONFIG_CPU PP5002
89 /* We're able to shut off power to the HDD */
90 #define HAVE_ATA_POWER_OFF
92 /* Define this if you want to use the PP5002 i2c interface */
93 #define CONFIG_I2C I2C_PP5002
95 /* define this if the hardware can be powered off while charging */
96 //#define HAVE_POWEROFF_WHILE_CHARGING
98 /* The start address index for ROM builds */
99 #define ROM_START 0x00000000
101 /* The size of the flash ROM */
102 #define FLASH_SIZE 0x100000
104 /* Define this to the CPU frequency */
105 #define CPU_FREQ 11289600
107 #define CONFIG_LCD LCD_IPOD2BPP
109 /* Offset ( in the firmware file's header ) to the file length */
110 #define FIRMWARE_OFFSET_FILE_LENGTH 0
112 /* Offset ( in the firmware file's header ) to the file CRC */
113 #define FIRMWARE_OFFSET_FILE_CRC 0
115 /* Offset ( in the firmware file's header ) to the real data */
116 #define FIRMWARE_OFFSET_FILE_DATA 8
118 #define USB_IPODSTYLE
119 /* actually firewire only, but handled like USB */
121 /* Virtual LED (icon) */
122 #define CONFIG_LED LED_VIRTUAL
124 /* Define this if you have adjustable CPU frequency */
125 #define HAVE_ADJUSTABLE_CPU_FREQ
127 #define BOOTFILE_EXT "ipod"
128 #define BOOTFILE "rockbox." BOOTFILE_EXT
129 #define BOOTDIR "/.rockbox"
131 #define ICODE_ATTR_TREMOR_NOT_MDCT
133 #endif /* SIMULATOR */