Add a note about Rockbox not running on Sansas v2 (FS#8477 by Marc Guay).
[Rockbox.git] / firmware / export / config-ipod1g2g.h
blob8d7dce207f345ab5ccf077b3f220ef7a708382d0
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 want album art for this target */
18 #define HAVE_ALBUMART
20 /* define this if you can invert the colours on your LCD */
21 #define HAVE_LCD_INVERT
23 /* define this if the LCD needs to be shutdown */
24 #define HAVE_LCD_SHUTDOWN
26 /* define this if you have access to the quickscreen */
27 #define HAVE_QUICKSCREEN
28 /* define this if you have access to the pitchscreen */
29 #define HAVE_PITCHSCREEN
31 /* define this if you would like tagcache to build on this target */
32 #define HAVE_TAGCACHE
34 /* LCD dimensions */
35 #define LCD_WIDTH 160
36 #define LCD_HEIGHT 128
37 #define LCD_DEPTH 2 /* 4 colours - 2bpp */
39 #define LCD_PIXELFORMAT HORIZONTAL_PACKING
41 /* define this if you can flip your LCD */
42 #define HAVE_LCD_FLIP
44 #define HAVE_LCD_CONTRAST
46 /* LCD contrast */
47 #define MIN_CONTRAST_SETTING 5
48 #define MAX_CONTRAST_SETTING 63
49 #define DEFAULT_CONTRAST_SETTING 30 /* Match boot contrast */
51 #define CONFIG_KEYPAD IPOD_1G2G_PAD
53 /* Define this if you do software codec */
54 #define CONFIG_CODEC SWCODEC
56 /* Define this if you have a software controlled poweroff */
57 #define HAVE_SW_POWEROFF
59 /* The number of bytes reserved for loadable codecs */
60 #define CODEC_SIZE 0x80000
62 /* The number of bytes reserved for loadable plugins */
63 #define PLUGIN_BUFFER_SIZE 0x80000
65 /* Define this if you have the WM8731L audio codec */
66 #define HAVE_WM8721
68 /* WM8721 has no tone controls, so we use the software ones */
69 #define HAVE_SW_TONE_CONTROLS
71 /* Define this for LCD backlight available */
72 #define HAVE_BACKLIGHT
74 /* Define this if the backlight unverts LCD appearance */
75 #define HAVE_BACKLIGHT_INVERSION
77 /* Define this if you can detect headphones */
78 #define HAVE_HEADPHONE_DETECTION
80 #define BATTERY_CAPACITY_DEFAULT 630 /* default battery capacity */
81 #define BATTERY_CAPACITY_MIN 1200 /* min. capacity selectable */
82 #define BATTERY_CAPACITY_MAX 1900 /* max. capacity selectable */
83 #define BATTERY_CAPACITY_INC 50 /* capacity increment */
84 #define BATTERY_TYPES_COUNT 1 /* only one type */
86 /* Hardware controlled charging? FIXME */
87 //#define CONFIG_CHARGING CHARGING_SIMPLE
89 #ifndef SIMULATOR
91 /* Define this if you have a PortalPlayer PP5002 */
92 #define CONFIG_CPU PP5002
94 /* We're able to shut off power to the HDD */
95 #define HAVE_ATA_POWER_OFF
97 /* Define this if you want to use the PP5002 i2c interface */
98 #define CONFIG_I2C I2C_PP5002
100 /* define this if the hardware can be powered off while charging */
101 //#define HAVE_POWEROFF_WHILE_CHARGING
103 /* The start address index for ROM builds */
104 #define ROM_START 0x00000000
106 /* The size of the flash ROM */
107 #define FLASH_SIZE 0x100000
109 /* Define this to the CPU frequency */
110 #define CPU_FREQ 11289600
112 #define CONFIG_LCD LCD_IPOD2BPP
114 /* Offset ( in the firmware file's header ) to the file length */
115 #define FIRMWARE_OFFSET_FILE_LENGTH 0
117 /* Offset ( in the firmware file's header ) to the file CRC */
118 #define FIRMWARE_OFFSET_FILE_CRC 0
120 /* Offset ( in the firmware file's header ) to the real data */
121 #define FIRMWARE_OFFSET_FILE_DATA 8
123 #define USB_IPODSTYLE
124 /* actually firewire only, but handled like USB */
126 /* Virtual LED (icon) */
127 #define CONFIG_LED LED_VIRTUAL
129 /* Define this if you have adjustable CPU frequency */
130 #define HAVE_ADJUSTABLE_CPU_FREQ
132 #define BOOTFILE_EXT "ipod"
133 #define BOOTFILE "rockbox." BOOTFILE_EXT
134 #define BOOTDIR "/.rockbox"
136 #define ICODE_ATTR_TREMOR_NOT_MDCT
138 #endif /* SIMULATOR */