Add support for powering down the LCD (saves 50 mA when disabled)
[kugel-rb.git] / firmware / export / config-ipodnano.h
blob7947997ee01cd8f56d7168367dcc022082b87133
1 /*
2 * This config file is for the Apple iPod Nano
3 */
4 #define TARGET_TREE /* this target is using the target tree system */
6 #define IPOD_ARCH 1
8 #define MODEL_NAME "Apple iPod Nano 1g"
10 /* For Rolo and boot loader */
11 #define MODEL_NUMBER 4
13 /* define this if you use an ATA controller */
14 #define CONFIG_STORAGE STORAGE_ATA
16 /* define this if you have recording possibility */
17 #define HAVE_RECORDING
19 /* Define bitmask of input sources - recordable bitmask can be defined
20 explicitly if different */
21 #define INPUT_SRC_CAPS (SRC_CAP_MIC | SRC_CAP_LINEIN)
23 /* define the bitmask of hardware sample rates */
24 #define HW_SAMPR_CAPS (SAMPR_CAP_44)
26 /* define the bitmask of recording sample rates */
27 #define REC_SAMPR_CAPS (SAMPR_CAP_44)
29 /* define this if you have a bitmap LCD display */
30 #define HAVE_LCD_BITMAP
32 /* define this if you have a colour LCD */
33 #define HAVE_LCD_COLOR
35 /* define this if you want album art for this target */
36 #define HAVE_ALBUMART
38 /* define this if you have access to the quickscreen */
39 #define HAVE_QUICKSCREEN
40 /* define this if you have access to the pitchscreen */
41 #define HAVE_PITCHSCREEN
43 /* define this if you would like tagcache to build on this target */
44 #define HAVE_TAGCACHE
46 /* LCD dimensions */
47 #define LCD_WIDTH 176
48 #define LCD_HEIGHT 132
49 #define LCD_DEPTH 16 /* 65536 colours */
50 #define LCD_PIXELFORMAT RGB565SWAPPED /* rgb565 byte-swapped */
52 /* LCD stays visible without backlight - simulator hint */
53 #define HAVE_TRANSFLECTIVE_LCD
55 #define CONFIG_KEYPAD IPOD_4G_PAD
57 /* Define this if you do software codec */
58 #define CONFIG_CODEC SWCODEC
60 /* define this if you have a real-time clock */
61 #define CONFIG_RTC RTC_PCF50605
63 /* Define if the device can wake from an RTC alarm */
64 #define HAVE_RTC_ALARM
66 /* Define this if you can switch on/off the accessory power supply */
67 #define HAVE_ACCESSORY_SUPPLY
69 /* Define this if you have a software controlled poweroff */
70 #define HAVE_SW_POWEROFF
72 /* The number of bytes reserved for loadable codecs */
73 #define CODEC_SIZE 0x100000
75 /* The number of bytes reserved for loadable plugins */
76 #define PLUGIN_BUFFER_SIZE 0x80000
78 /* Define this if you have the WM8975 audio codec */
79 #define HAVE_WM8975
81 #define AB_REPEAT_ENABLE 1
82 #define ACTION_WPSAB_SINGLE ACTION_WPS_BROWSE
84 /* Define this for LCD backlight available */
85 #define HAVE_BACKLIGHT
86 #define HAVE_BACKLIGHT_BRIGHTNESS
87 /* We can fade the backlight by using PWM */
88 #define CONFIG_BACKLIGHT_FADING BACKLIGHT_FADING_PWM
90 /* Main LCD backlight brightness range and defaults */
91 #define MIN_BRIGHTNESS_SETTING 1
92 #define MAX_BRIGHTNESS_SETTING 32
93 #define DEFAULT_BRIGHTNESS_SETTING 16
95 /* define this if the unit uses a scrollwheel for navigation */
96 #define HAVE_SCROLLWHEEL
97 /* define to activate advanced wheel acceleration code */
98 #define HAVE_WHEEL_ACCELERATION
99 /* define from which rotation speed [degree/sec] on the acceleration starts */
100 #define WHEEL_ACCEL_START 270
101 /* define type of acceleration (1 = ^2, 2 = ^3, 3 = ^4) */
102 #define WHEEL_ACCELERATION 3
104 /* Define this if you can detect headphones */
105 #define HAVE_HEADPHONE_DETECTION
107 /* define this if you have a flash memory storage */
108 #define HAVE_FLASH_STORAGE
110 #define BATTERY_CAPACITY_DEFAULT 300 /* default battery capacity */
111 #define BATTERY_CAPACITY_MIN 200 /* min. capacity selectable */
112 #define BATTERY_CAPACITY_MAX 600 /* max. capacity selectable */
113 #define BATTERY_CAPACITY_INC 20 /* capacity increment */
114 #define BATTERY_TYPES_COUNT 1 /* only one type */
116 /* Hardware controlled charging? FIXME */
117 //#define CONFIG_CHARGING CHARGING_SIMPLE
119 /* define this if the unit can be powered or charged via USB */
120 #define HAVE_USB_POWER
122 #define CURRENT_NORMAL 32 /* MP3: ~9h playback out of 300mAh battery */
123 #define CURRENT_BACKLIGHT 20 /* FIXME: this needs adjusting */
124 #if defined(HAVE_RECORDING)
125 #define CURRENT_RECORD 35 /* FIXME: this needs adjusting */
126 #endif
128 #ifndef SIMULATOR
130 /* Define this if you have a PortalPlayer PP5022 */
131 #define CONFIG_CPU PP5022
133 /* Define this if you want to use the PP5020 i2c interface */
134 #define CONFIG_I2C I2C_PP5020
136 /* define this if the hardware can be powered off while charging */
137 //#define HAVE_POWEROFF_WHILE_CHARGING
139 /* The start address index for ROM builds */
140 #define ROM_START 0x00000000
142 /* The size of the flash ROM */
143 #define FLASH_SIZE 0x100000
145 /* Define this to the CPU frequency */
146 #define CPU_FREQ 24000000
148 #define CONFIG_LCD LCD_IPODNANO
150 /* Offset ( in the firmware file's header ) to the file length */
151 #define FIRMWARE_OFFSET_FILE_LENGTH 0
153 /* Offset ( in the firmware file's header ) to the file CRC */
154 #define FIRMWARE_OFFSET_FILE_CRC 0
156 /* Offset ( in the firmware file's header ) to the real data */
157 #define FIRMWARE_OFFSET_FILE_DATA 8
159 /* USB On-the-go */
160 #define CONFIG_USBOTG USBOTG_ARC
162 /* enable these for the experimental usb stack */
163 #define HAVE_USBSTACK
164 #define USE_ROCKBOX_USB
165 #define USB_VENDOR_ID 0x05ac
166 #define USB_PRODUCT_ID 0x120a
168 /* Virtual LED (icon) */
169 #define CONFIG_LED LED_VIRTUAL
171 /* Define this if you have adjustable CPU frequency */
172 #define HAVE_ADJUSTABLE_CPU_FREQ
174 /* Define this if you can read an absolute wheel position */
175 #define HAVE_WHEEL_POSITION
177 #define BOOTFILE_EXT "ipod"
178 #define BOOTFILE "rockbox." BOOTFILE_EXT
179 #define BOOTDIR "/.rockbox"
181 #define ICODE_ATTR_TREMOR_NOT_MDCT
183 #define IPOD_ACCESSORY_PROTOCOL
184 #define HAVE_SERIAL
186 #endif