Fix sansa c200 battery type comment.
[kugel-rb.git] / firmware / export / config-ipodmini.h
blob6e5fe26d6a5a3303d2d5efe850cc73b759a1c6c6
1 /*
2 * This config file is for the Apple iPod Mini (1st Gen)
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 9 /* TODO: change to 9 */
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 138
39 #define LCD_HEIGHT 110
40 #define LCD_DEPTH 2 /* 4 colours - 2bpp */
42 #define LCD_PIXELFORMAT HORIZONTAL_PACKING
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 40 /* Match boot contrast */
51 /* define this if you can flip your LCD */
52 #define HAVE_LCD_FLIP
54 #define CONFIG_KEYPAD IPOD_4G_PAD
56 /* Define this if you do software codec */
57 #define CONFIG_CODEC SWCODEC
59 /* define this if you have a real-time clock */
60 #define CONFIG_RTC RTC_PCF50605
62 /* Define if the device can wake from an RTC alarm */
63 #define HAVE_RTC_ALARM
65 /* Define this if you can switch on/off the accessory power supply */
66 #define HAVE_ACCESSORY_SUPPLY
68 /* Define this if you have a software controlled poweroff */
69 #define HAVE_SW_POWEROFF
71 /* The number of bytes reserved for loadable codecs */
72 #define CODEC_SIZE 0x80000
74 /* The number of bytes reserved for loadable plugins */
75 #define PLUGIN_BUFFER_SIZE 0x80000
77 /* Define this if you have the WM8721 audio codec */
78 #define HAVE_WM8721 /* actually WM8731 but no recording */
80 /* WM8721 has no tone controls, so we use the software ones */
81 #define HAVE_SW_TONE_CONTROLS
83 #define AB_REPEAT_ENABLE 1
84 #define ACTION_WPSAB_SINGLE ACTION_WPS_BROWSE
86 /* Define this for LCD backlight available */
87 #define HAVE_BACKLIGHT
89 /* We can fade the backlight by using PWM */
90 #define HAVE_BACKLIGHT_PWM_FADING
92 /* Define this if you can detect headphones */
93 #define HAVE_HEADPHONE_DETECTION
95 #define BATTERY_CAPACITY_DEFAULT 400 /* default battery capacity */
96 #define BATTERY_CAPACITY_MIN 400 /* min. capacity selectable */
97 #define BATTERY_CAPACITY_MAX 800 /* max. capacity selectable */
98 #define BATTERY_CAPACITY_INC 10 /* capacity increment */
99 #define BATTERY_TYPES_COUNT 1 /* only one type */
101 /* Hardware controlled charging? */
102 #define CONFIG_CHARGING CHARGING_MONITOR
104 /* define this if the unit can be powered or charged via USB */
105 #define HAVE_USB_POWER
107 #ifndef SIMULATOR
109 /* Define this if you have a PortalPlayer PP5020 */
110 #define CONFIG_CPU PP5020
112 /* Define this if you want to use the PP5020 i2c interface */
113 #define CONFIG_I2C I2C_PP5020
115 /* We're able to shut off power to the HDD */
116 #define HAVE_ATA_POWER_OFF
118 /* define this if the hardware can be powered off while charging */
119 //#define HAVE_POWEROFF_WHILE_CHARGING
121 /* The start address index for ROM builds */
122 #define ROM_START 0x00000000
124 /* The size of the flash ROM */
125 #define FLASH_SIZE 0x100000
127 /* Define this to the CPU frequency */
128 #define CPU_FREQ 11289600
130 #define CONFIG_LCD LCD_IPODMINI
132 /* Offset ( in the firmware file's header ) to the file length */
133 #define FIRMWARE_OFFSET_FILE_LENGTH 0
135 /* Offset ( in the firmware file's header ) to the file CRC */
136 #define FIRMWARE_OFFSET_FILE_CRC 0
138 /* Offset ( in the firmware file's header ) to the real data */
139 #define FIRMWARE_OFFSET_FILE_DATA 8
141 #define USB_IPODSTYLE
143 /* USB On-the-go */
144 #define CONFIG_USBOTG USBOTG_ARC
146 /* enable these for the experimental usb stack */
147 #define HAVE_USBSTACK
148 #define USB_VENDOR_ID 0x05ac
149 #define USB_PRODUCT_ID 0x1205
151 /* Virtual LED (icon) */
152 #define CONFIG_LED LED_VIRTUAL
154 /* Define this if you have adjustable CPU frequency */
155 #define HAVE_ADJUSTABLE_CPU_FREQ
157 #define BOOTFILE_EXT "ipod"
158 #define BOOTFILE "rockbox." BOOTFILE_EXT
159 #define BOOTDIR "/.rockbox"
161 #define ICODE_ATTR_TREMOR_NOT_MDCT
163 #endif