2 * This config file is for the Apple iPod Video
4 #define TARGET_TREE /* this target is using the target tree system */
8 /* For Rolo and boot loader */
11 /* define this if you use an ATA controller */
14 /* define this if you have recording possibility */
15 #define HAVE_RECORDING
17 /* Define bitmask of input sources - recordable bitmask can be defined
18 explicitly if different */
19 #define INPUT_SRC_CAPS (SRC_CAP_MIC | SRC_CAP_LINEIN)
21 /* define the bitmask of hardware sample rates */
22 #define HW_SAMPR_CAPS (SAMPR_CAP_44)
24 /* define the bitmask of recording sample rates */
25 #define REC_SAMPR_CAPS (SAMPR_CAP_44)
27 /* define this if you have a bitmap LCD display */
28 #define HAVE_LCD_BITMAP
30 /* define this if you have a colour LCD */
31 #define HAVE_LCD_COLOR
33 /* define this if you want album art for this target */
36 /* define this if you have access to the quickscreen */
37 #define HAVE_QUICKSCREEN
38 /* define this if you have access to the pitchscreen */
39 #define HAVE_PITCHSCREEN
41 /* define this if you would like tagcache to build on this target */
46 #define LCD_HEIGHT 240
47 #define LCD_DEPTH 16 /* 65536 colours */
48 #define LCD_PIXELFORMAT RGB565 /* rgb565 */
50 #define CONFIG_KEYPAD IPOD_4G_PAD
52 /* Define this if you do software codec */
53 #define CONFIG_CODEC SWCODEC
55 /* define this if you have a real-time clock */
56 #define CONFIG_RTC RTC_PCF50605
58 /* Define if the device can wake from an RTC alarm */
59 #define HAVE_RTC_ALARM
61 /* Define this if you can switch on/off the accessory power supply */
62 #define HAVE_ACCESSORY_SUPPLY
64 /* Define this if you have a software controlled poweroff */
65 #define HAVE_SW_POWEROFF
67 /* The number of bytes reserved for loadable codecs */
68 #define CODEC_SIZE 0x80000
70 /* The number of bytes reserved for loadable plugins */
71 #define PLUGIN_BUFFER_SIZE 0x80000
73 /* Define this if you have the WM8758 audio codec */
76 #define AB_REPEAT_ENABLE 1
77 #define ACTION_WPSAB_SINGLE ACTION_WPS_BROWSE
79 /* Define this for LCD backlight available */
80 #define HAVE_BACKLIGHT
81 #define HAVE_BACKLIGHT_BRIGHTNESS
83 /* Main LCD backlight brightness range and defaults */
84 #define MIN_BRIGHTNESS_SETTING 1
85 #define MAX_BRIGHTNESS_SETTING 32
86 #define DEFAULT_BRIGHTNESS_SETTING 16
88 /* We can fade the backlight by using PWM */
89 #define HAVE_BACKLIGHT_PWM_FADING
91 /* define this if the unit uses a scrollwheel for navigation */
92 #define HAVE_SCROLLWHEEL
93 /* define from which rotation speed [degree/sec] on the acceleration starts */
94 #define WHEEL_ACCEL_START 270
95 /* define type of acceleration (1 = ^2, 2 = ^3, 3 = ^4) */
96 #define WHEEL_ACCELERATION 3
98 /* Define this if you can detect headphones */
99 #define HAVE_HEADPHONE_DETECTION
101 /* Type of mobile power */
102 #if (MEM==32) /* this is the 30GB-model */
103 # define BATTERY_CAPACITY_DEFAULT 400 /* default battery capacity for the 30GB model */
104 # define BATTERY_CAPACITY_MIN 300 /* min. capacity selectable */
105 # define BATTERY_CAPACITY_MAX 800 /* max. capacity selectable */
106 #else /* these are the 60/80GB-models */
107 # define BATTERY_CAPACITY_DEFAULT 600 /* default battery capacity for the 60/80GB model */
108 # define BATTERY_CAPACITY_MIN 500 /* min. capacity selectable */
109 # define BATTERY_CAPACITY_MAX 1000 /* max. capacity selectable */
111 #define BATTERY_CAPACITY_INC 50 /* capacity increment */
112 #define BATTERY_TYPES_COUNT 1 /* only one type */
114 /* Hardware controlled charging with monitoring */
115 #define CONFIG_CHARGING CHARGING_MONITOR
117 /* define this if the unit can be powered or charged via USB */
118 #define HAVE_USB_POWER
122 /* Define this if you have a PortalPlayer PP5022 */
123 #define CONFIG_CPU PP5022
125 /* Define this if you want to use the PP5020 i2c interface */
126 #define CONFIG_I2C I2C_PP5020
128 /* We're able to shut off power to the HDD */
129 #define HAVE_ATA_POWER_OFF
131 /* define this if the hardware can be powered off while charging */
132 //#define HAVE_POWEROFF_WHILE_CHARGING
134 /* The start address index for ROM builds */
135 #define ROM_START 0x00000000
137 /* The size of the flash ROM */
138 #define FLASH_SIZE 0x100000
140 /* Define this to the CPU frequency */
141 #define CPU_FREQ 11289600
143 #define CONFIG_LCD LCD_IPODVIDEO
145 /* Offset ( in the firmware file's header ) to the file length */
146 #define FIRMWARE_OFFSET_FILE_LENGTH 0
148 /* Offset ( in the firmware file's header ) to the file CRC */
149 #define FIRMWARE_OFFSET_FILE_CRC 0
151 /* Offset ( in the firmware file's header ) to the real data */
152 #define FIRMWARE_OFFSET_FILE_DATA 8
154 #define USB_IPODSTYLE
157 #define CONFIG_USBOTG USBOTG_ARC
159 /* enable these for the experimental usb stack */
160 #define HAVE_USBSTACK
161 #define USB_VENDOR_ID 0x05ac
162 #define USB_PRODUCT_ID 0x1209
164 /* Virtual LED (icon) */
165 #define CONFIG_LED LED_VIRTUAL
167 /* Define this if you have adjustable CPU frequency */
168 #define HAVE_ADJUSTABLE_CPU_FREQ
170 /* Define this if you can read an absolute wheel position */
171 #define HAVE_WHEEL_POSITION
173 /* define this if the device has larger sectors when accessed via USB */
174 /* (only relevant in disk.c, fat.c now always supports large virtual sectors) */
175 #define MAX_LOG_SECTOR_SIZE 2048
177 /* define this if the hard drive uses large physical sectors (ATA-7 feature) */
178 /* and doesn't handle them in the drive firmware */
179 #define MAX_PHYS_SECTOR_SIZE 1024
181 #define BOOTFILE_EXT "ipod"
182 #define BOOTFILE "rockbox." BOOTFILE_EXT
183 #define BOOTDIR "/.rockbox"
185 #define ICODE_ATTR_TREMOR_NOT_MDCT