Clip+: use correct 290mAh battery capacity
[kugel-rb.git] / firmware / export / config / ipod1g2g.h
blob6da48ab62fcaee5375aebedc2e52c9d892d69e66
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 #define MODEL_NAME "Apple iPod 1g/2g"
10 /* For Rolo and boot loader */
11 #define MODEL_NUMBER 19
13 /* define this if you use an ATA controller */
14 #define CONFIG_STORAGE STORAGE_ATA
16 /*define this if the ATA controller and method of USB access support LBA48 */
17 #define HAVE_LBA48
19 /* define this if you have recording possibility
20 #define HAVE_RECORDING */
22 /* define the bitmask of hardware sample rates */
23 #define HW_SAMPR_CAPS (SAMPR_CAP_96 | SAMPR_CAP_88 | SAMPR_CAP_48 | \
24 SAMPR_CAP_44 | SAMPR_CAP_32 | SAMPR_CAP_8)
26 /* define the bitmask of recording sample rates
27 #define REC_SAMPR_CAPS (SAMPR_CAP_96 | SAMPR_CAP_88 | SAMPR_CAP_48 | \
28 SAMPR_CAP_44 | SAMPR_CAP_32 | SAMPR_CAP_8) */
30 /* define this if you have a bitmap LCD display */
31 #define HAVE_LCD_BITMAP
33 /* define this if you want album art for this target */
34 #define HAVE_ALBUMART
36 /* define this to enable bitmap scaling */
37 #define HAVE_BMP_SCALING
39 /* define this to enable JPEG decoding */
40 #define HAVE_JPEG
42 /* define this if you can invert the colours on your LCD */
43 #define HAVE_LCD_INVERT
45 /* define this if the LCD needs to be shutdown */
46 #define HAVE_LCD_SHUTDOWN
48 /* define this if you have access to the quickscreen */
49 #define HAVE_QUICKSCREEN
50 /* define this if you have access to the pitchscreen */
51 #define HAVE_PITCHSCREEN
53 /* define this if you would like tagcache to build on this target */
54 #define HAVE_TAGCACHE
56 /* LCD dimensions */
57 #define LCD_WIDTH 160
58 #define LCD_HEIGHT 128
59 #define LCD_DEPTH 2 /* 4 colours - 2bpp */
61 #define LCD_PIXELFORMAT HORIZONTAL_PACKING
63 /* Display colours, for screenshots and sim (0xRRGGBB) */
64 #define LCD_DARKCOLOR 0x000000
65 #define LCD_BRIGHTCOLOR 0x648764
66 #define LCD_BL_DARKCOLOR 0x000000
67 #define LCD_BL_BRIGHTCOLOR 0xdfd8ff
69 /* define this if you can flip your LCD */
70 #define HAVE_LCD_FLIP
72 #define HAVE_LCD_CONTRAST
74 /* LCD contrast */
75 #define MIN_CONTRAST_SETTING 5
76 #define MAX_CONTRAST_SETTING 63
77 #define DEFAULT_CONTRAST_SETTING 30 /* Match boot contrast */
79 #define CONFIG_KEYPAD IPOD_1G2G_PAD
81 #define HAVE_SCROLLWHEEL
83 /* Define this to enable morse code input */
84 #define HAVE_MORSE_INPUT
86 /* Define this if you do software codec */
87 #define CONFIG_CODEC SWCODEC
89 /* Define this if you have a software controlled poweroff */
90 #define HAVE_SW_POWEROFF
92 /* The number of bytes reserved for loadable codecs */
93 #define CODEC_SIZE 0x100000
95 /* The number of bytes reserved for loadable plugins */
96 #define PLUGIN_BUFFER_SIZE 0x80000
98 /* Define this if you have the WM8731L audio codec */
99 #define HAVE_WM8721
101 /* define this if you have a disk storage, i.e. something
102 that needs spinups and can cause skips when shaked */
103 #define HAVE_DISK_STORAGE
105 /* WM8721 has no tone controls, so we use the software ones */
106 #define HAVE_SW_TONE_CONTROLS
108 /* Define this for LCD backlight available */
109 #define HAVE_BACKLIGHT
111 /* Define this if the backlight unverts LCD appearance */
112 #define HAVE_BACKLIGHT_INVERSION
114 /* Define this if you can detect headphones */
115 #define HAVE_HEADPHONE_DETECTION
117 #define BATTERY_CAPACITY_DEFAULT 1200 /* default battery capacity */
118 #define BATTERY_CAPACITY_MIN 1200 /* min. capacity selectable */
119 #define BATTERY_CAPACITY_MAX 1900 /* max. capacity selectable */
120 #define BATTERY_CAPACITY_INC 50 /* capacity increment */
121 #define BATTERY_TYPES_COUNT 1 /* only one type */
123 /* Hardware controlled charging? FIXME */
124 //#define CONFIG_CHARGING CHARGING_SIMPLE
126 /* FIXME: Don't shutdown on low battery until we have proper suspend. */
127 #define NO_LOW_BATTERY_SHUTDOWN
129 /* Define this if you have a PortalPlayer PP5002 */
130 #define CONFIG_CPU PP5002
132 /* We're able to shut off power to the HDD */
133 #define HAVE_ATA_POWER_OFF
135 /* Define this if you want to use the PP5002 i2c interface */
136 #define CONFIG_I2C I2C_PP5002
138 /* define this if the hardware can be powered off while charging */
139 //#define HAVE_POWEROFF_WHILE_CHARGING
141 /* The start address index for ROM builds */
142 #define ROM_START 0x00000000
144 /* The size of the flash ROM */
145 #define FLASH_SIZE 0x100000
147 /* Define this to the CPU frequency */
148 #define CPU_FREQ 11289600
150 #define CONFIG_LCD LCD_IPOD2BPP
152 /* Offset ( in the firmware file's header ) to the file length */
153 #define FIRMWARE_OFFSET_FILE_LENGTH 0
155 /* Offset ( in the firmware file's header ) to the file CRC */
156 #define FIRMWARE_OFFSET_FILE_CRC 0
158 /* Offset ( in the firmware file's header ) to the real data */
159 #define FIRMWARE_OFFSET_FILE_DATA 8
161 #define USB_HANDLED_BY_OF
162 /* actually firewire only, but handled like USB */
164 /* Define this if you have adjustable CPU frequency */
165 #define HAVE_ADJUSTABLE_CPU_FREQ
167 #define BOOTFILE_EXT "ipod"
168 #define BOOTFILE "rockbox." BOOTFILE_EXT
169 #define BOOTDIR "/.rockbox"
171 #define ICODE_ATTR_TREMOR_NOT_MDCT
173 #define IRAM_LCDFRAMEBUFFER IBSS_ATTR /* put the lcd frame buffer in IRAM */
175 /* Define this if a programmable hotkey is mapped */
176 #define HAVE_HOTKEY