Remove the calls to backlight_lcd_sleep_countdown from target specific code and move...
[kugel-rb.git] / firmware / export / config-ipod3g.h
blob57773750f271300a009674e9aef092eb56a0c77c
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 #define MODEL_NAME "Apple iPod 3g"
11 /* For Rolo and boot loader */
12 #define MODEL_NUMBER 7
14 /* define this if you use an ATA controller */
15 #define CONFIG_STORAGE STORAGE_ATA
17 /* define this if you have recording possibility */
18 /*#define HAVE_RECORDING*/
20 /* define the bitmask of hardware sample rates */
21 #define HW_SAMPR_CAPS (SAMPR_CAP_96 | SAMPR_CAP_88 | SAMPR_CAP_48 | \
22 SAMPR_CAP_44 | SAMPR_CAP_32 | SAMPR_CAP_8)
24 /* define the bitmask of recording sample rates
25 #define REC_SAMPR_CAPS (SAMPR_CAP_96 | SAMPR_CAP_88 | SAMPR_CAP_48 | \
26 SAMPR_CAP_44 | SAMPR_CAP_32 | SAMPR_CAP_8) */
28 /* define this if you have a bitmap LCD display */
29 #define HAVE_LCD_BITMAP
31 /* define this if you want album art for this target */
32 #define HAVE_ALBUMART
34 /* define this if you can invert the colours on your LCD */
35 #define HAVE_LCD_INVERT
37 /* define this if the LCD needs to be shutdown */
38 #define HAVE_LCD_SHUTDOWN
40 /* define this if you have access to the quickscreen */
41 #define HAVE_QUICKSCREEN
42 /* define this if you have access to the pitchscreen */
43 #define HAVE_PITCHSCREEN
45 /* define this if you would like tagcache to build on this target */
46 #define HAVE_TAGCACHE
48 /* LCD dimensions */
49 #define LCD_WIDTH 160
50 #define LCD_HEIGHT 128
51 #define LCD_DEPTH 2 /* 4 colours - 2bpp */
53 #define LCD_PIXELFORMAT HORIZONTAL_PACKING
55 /* Display colours, for screenshots and sim (0xRRGGBB) */
56 #define LCD_DARKCOLOR 0x000000
57 #define LCD_BRIGHTCOLOR 0x5a915a
58 #define LCD_BL_DARKCOLOR 0x000000
59 #define LCD_BL_BRIGHTCOLOR 0xadd8e6
61 /* define this if you can flip your LCD */
62 #define HAVE_LCD_FLIP
64 #define HAVE_LCD_CONTRAST
66 /* LCD contrast */
67 #define MIN_CONTRAST_SETTING 5
68 #define MAX_CONTRAST_SETTING 63
69 #define DEFAULT_CONTRAST_SETTING 40 /* Match boot contrast */
71 #define CONFIG_KEYPAD IPOD_3G_PAD
73 #define HAVE_SCROLLWHEEL
75 /* Define this if you do software codec */
76 #define CONFIG_CODEC SWCODEC
78 /* define this if you have a real-time clock */
79 #define CONFIG_RTC RTC_PCF50605
81 /* Define if the device can wake from an RTC alarm */
82 #define HAVE_RTC_ALARM
84 /* Define this if you can switch on/off the accessory power supply */
85 #define HAVE_ACCESSORY_SUPPLY
87 /* Define this if you have a software controlled poweroff */
88 #define HAVE_SW_POWEROFF
90 /* The number of bytes reserved for loadable codecs */
91 #define CODEC_SIZE 0x100000
93 /* The number of bytes reserved for loadable plugins */
94 #define PLUGIN_BUFFER_SIZE 0x80000
96 /* Define this if you have the WM8731L audio codec */
97 #define HAVE_WM8731
99 /* WM8731 has no tone controls, so we use the software ones */
100 #define HAVE_SW_TONE_CONTROLS
102 /* define this if you have a disk storage, i.e. something
103 that needs spinups and can cause skips when shaked */
104 #define HAVE_DISK_STORAGE
106 /* Define this for LCD backlight available */
107 #define HAVE_BACKLIGHT
109 /* Define this if you can detect headphones */
110 #define HAVE_HEADPHONE_DETECTION
112 #define BATTERY_CAPACITY_DEFAULT 630 /* default battery capacity */
113 #define BATTERY_CAPACITY_MIN 630 /* min. capacity selectable */
114 #define BATTERY_CAPACITY_MAX 1200 /* max. capacity selectable */
115 #define BATTERY_CAPACITY_INC 10 /* capacity increment */
116 #define BATTERY_TYPES_COUNT 1 /* only one type */
118 /* Hardware controlled charging? FIXME */
119 #define CONFIG_CHARGING CHARGING_SIMPLE
121 #ifndef SIMULATOR
123 /* Define this if you have a PortalPlayer PP5002 */
124 #define CONFIG_CPU PP5002
126 /* We're able to shut off power to the HDD */
127 #define HAVE_ATA_POWER_OFF
129 /* Define this if you want to use the PP5002 i2c interface */
130 #define CONFIG_I2C I2C_PP5002
132 /* define this if the hardware can be powered off while charging */
133 //#define HAVE_POWEROFF_WHILE_CHARGING
135 /* The start address index for ROM builds */
136 #define ROM_START 0x00000000
138 /* The size of the flash ROM */
139 #define FLASH_SIZE 0x100000
141 /* Define this to the CPU frequency */
142 #define CPU_FREQ 11289600
144 #define CONFIG_LCD LCD_IPOD2BPP
146 /* Offset ( in the firmware file's header ) to the file length */
147 #define FIRMWARE_OFFSET_FILE_LENGTH 0
149 /* Offset ( in the firmware file's header ) to the file CRC */
150 #define FIRMWARE_OFFSET_FILE_CRC 0
152 /* Offset ( in the firmware file's header ) to the real data */
153 #define FIRMWARE_OFFSET_FILE_DATA 8
155 #define USB_HANDLED_BY_OF
156 /* actually both firewire and USB, USB isn't handled yet */
158 /* Virtual LED (icon) */
159 #define CONFIG_LED LED_VIRTUAL
161 /* Define this if you have adjustable CPU frequency */
162 #define HAVE_ADJUSTABLE_CPU_FREQ
164 #define BOOTFILE_EXT "ipod"
165 #define BOOTFILE "rockbox." BOOTFILE_EXT
166 #define BOOTDIR "/.rockbox"
168 #define ICODE_ATTR_TREMOR_NOT_MDCT
170 #endif /* SIMULATOR */