Improve insert of playlists. Decode M3U files using current code page and strip any...
[kugel-rb.git] / firmware / export / config-ipodvideo.h
blob60a5dd8f6ff6f375f6273b6a31e3af27a8e0b2f8
1 /*
2 * This config file is for the Apple iPod Video
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 5
11 /* define this if you have recording possibility */
12 #define HAVE_RECORDING
14 /* Define bitmask of input sources - recordable bitmask can be defined
15 explicitly if different */
16 #define INPUT_SRC_CAPS (SRC_CAP_MIC | SRC_CAP_LINEIN)
18 /* define the bitmask of hardware sample rates */
19 #define HW_SAMPR_CAPS (SAMPR_CAP_44)
21 /* define the bitmask of recording sample rates */
22 #define REC_SAMPR_CAPS (SAMPR_CAP_44)
24 /* define this if you have a bitmap LCD display */
25 #define HAVE_LCD_BITMAP
27 /* define this if you have a colour LCD */
28 #define HAVE_LCD_COLOR
30 /* define this if you want album art for this target */
31 #define HAVE_ALBUMART
33 /* define this if you have access to the quickscreen */
34 #define HAVE_QUICKSCREEN
35 /* define this if you have access to the pitchscreen */
36 #define HAVE_PITCHSCREEN
38 /* define this if you would like tagcache to build on this target */
39 #define HAVE_TAGCACHE
41 /* LCD dimensions */
42 #define LCD_WIDTH 320
43 #define LCD_HEIGHT 240
44 #define LCD_DEPTH 16 /* 65536 colours */
45 #define LCD_PIXELFORMAT RGB565 /* rgb565 */
47 #define CONFIG_KEYPAD IPOD_4G_PAD
49 /* Define this if you do software codec */
50 #define CONFIG_CODEC SWCODEC
52 /* define this if you have a real-time clock */
53 #define CONFIG_RTC RTC_PCF50605
55 /* Define if the device can wake from an RTC alarm */
56 #define HAVE_RTC_ALARM
58 /* Define this if you have a software controlled poweroff */
59 #define HAVE_SW_POWEROFF
61 /* The number of bytes reserved for loadable codecs */
62 #define CODEC_SIZE 0x80000
64 /* The number of bytes reserved for loadable plugins */
65 #define PLUGIN_BUFFER_SIZE 0x80000
67 /* Define this if you have the WM8758 audio codec */
68 #define HAVE_WM8758
70 #define AB_REPEAT_ENABLE 1
71 #define ACTION_WPSAB_SINGLE ACTION_WPS_BROWSE
73 /* Define this for LCD backlight available */
74 #define HAVE_BACKLIGHT
75 #define HAVE_BACKLIGHT_BRIGHTNESS
77 /* Main LCD backlight brightness range and defaults */
78 #define MIN_BRIGHTNESS_SETTING 1
79 #define MAX_BRIGHTNESS_SETTING 32
80 #define DEFAULT_BRIGHTNESS_SETTING 16
82 /* We can fade the backlight by using PWM */
83 #define HAVE_BACKLIGHT_PWM_FADING
85 /* Define this if you can detect headphones */
86 #define HAVE_HEADPHONE_DETECTION
88 /* Type of mobile power */
89 #if (MEM==32) /* this is the 30GB-model */
90 # define BATTERY_CAPACITY_DEFAULT 400 /* default battery capacity for the 30GB model */
91 # define BATTERY_CAPACITY_MIN 300 /* min. capacity selectable */
92 # define BATTERY_CAPACITY_MAX 800 /* max. capacity selectable */
93 #else /* these are the 60/80GB-models */
94 # define BATTERY_CAPACITY_DEFAULT 600 /* default battery capacity for the 60/80GB model */
95 # define BATTERY_CAPACITY_MIN 500 /* min. capacity selectable */
96 # define BATTERY_CAPACITY_MAX 1000 /* max. capacity selectable */
97 #endif
98 #define BATTERY_CAPACITY_INC 50 /* capacity increment */
99 #define BATTERY_TYPES_COUNT 1 /* only one type */
101 /* Hardware controlled charging with monitoring */
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 PP5022 */
110 #define CONFIG_CPU PP5022
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_IPODVIDEO
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 USBSTACK_CAPS CONTROLLER_DEVICE
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 this if you can read an absolute wheel position */
158 #define HAVE_WHEEL_POSITION
160 /* define this if the device has larger sectors when accessed via USB */
161 /* (only relevant in disk.c, fat.c now always supports large virtual sectors) */
162 #define MAX_LOG_SECTOR_SIZE 2048
164 /* define this if the hard drive uses large physical sectors (ATA-7 feature) */
165 /* and doesn't handle them in the drive firmware */
166 #define MAX_PHYS_SECTOR_SIZE 1024
168 #define BOOTFILE_EXT "ipod"
169 #define BOOTFILE "rockbox." BOOTFILE_EXT
170 #define BOOTDIR "/.rockbox"
172 #define ICODE_ATTR_TREMOR_NOT_MDCT
174 #endif