Correct the charging/power #defines for the Nano2G. This now enables you to hold...
[kugel-rb.git] / firmware / export / config-ipodnano2g.h
blob5e92ea889a035a84a6e8daf16f95642ce12dc5a2
1 /*
2 * This config file is for iPod Nano 2nd Generation
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 62
11 #define MODEL_NAME "Apple iPod Nano 2g"
13 /* define this if you have recording possibility */
14 //#define HAVE_RECORDING
16 /* Define bitmask of input sources - recordable bitmask can be defined
17 explicitly if different */
18 #define INPUT_SRC_CAPS (SRC_CAP_LINEIN)
20 /* define the bitmask of hardware sample rates */
21 #define HW_SAMPR_CAPS (SAMPR_CAP_88 | SAMPR_CAP_44 | SAMPR_CAP_22 | SAMPR_CAP_11)
23 /* define the bitmask of recording sample rates */
24 #define REC_SAMPR_CAPS (SAMPR_CAP_88 | SAMPR_CAP_44 | SAMPR_CAP_22 | SAMPR_CAP_11)
26 /* define this if you have a bitmap LCD display */
27 #define HAVE_LCD_BITMAP
29 /* define this if you can flip your LCD */
30 //#define HAVE_LCD_FLIP
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 to enable bitmap scaling */
39 #define HAVE_BMP_SCALING
41 /* define this to enable JPEG decoding */
42 #define HAVE_JPEG
44 /* define this if the LCD can shut down */
45 #define HAVE_LCD_SHUTDOWN
47 /* define this if you can invert the colours on your LCD */
48 //#define HAVE_LCD_INVERT
50 /* define this if you have access to the quickscreen */
51 #define HAVE_QUICKSCREEN
53 /* define this if you have access to the pitchscreen */
54 #define HAVE_PITCHSCREEN
56 /* define this if you would like tagcache to build on this target */
57 #define HAVE_TAGCACHE
59 /* Define this if you can detect headphones */
60 #define HAVE_HEADPHONE_DETECTION
62 /* define this if you have a flash memory storage */
63 #define HAVE_FLASH_STORAGE
65 #define CONFIG_STORAGE STORAGE_NAND
67 #define CONFIG_NAND NAND_SAMSUNG
69 /* define this if at least one storage driver
70 needs to do cleanup on shutdown */
71 #define HAVE_STORAGE_FLUSH
73 /* The NAND flash has 2048-byte sectors, and is our only storage */
74 #define SECTOR_SIZE 2048
76 /* LCD dimensions */
77 #define LCD_WIDTH 176
78 #define LCD_HEIGHT 132
79 #define LCD_DEPTH 16 /* pseudo 262.144 colors */
80 #define LCD_PIXELFORMAT RGB565 /* rgb565 */
82 /* Define this if your LCD can be enabled/disabled */
83 //#define HAVE_LCD_ENABLE
85 /* Define this if your LCD can be put to sleep. HAVE_LCD_ENABLE
86 should be defined as well. */
87 //#define HAVE_LCD_SLEEP
89 #define CONFIG_KEYPAD IPOD_4G_PAD
91 //#define AB_REPEAT_ENABLE 1
92 //#define ACTION_WPSAB_SINGLE ACTION_WPS_BROWSE
94 /* Define this if you do software codec */
95 #define CONFIG_CODEC SWCODEC
97 /* define this if you have a real-time clock */
98 #define CONFIG_RTC RTC_NANO2G
100 #define CONFIG_LCD LCD_NANO2G
102 /* Define the type of audio codec */
103 #define HAVE_WM8975
105 /* Define this for LCD backlight available */
106 #define HAVE_BACKLIGHT
107 /* #define HAVE_BACKLIGHT_BRIGHTNESS - not yet */
109 /* Define this if you have a software controlled poweroff */
110 #define HAVE_SW_POWEROFF
112 /* The number of bytes reserved for loadable codecs */
113 #define CODEC_SIZE 0x100000
115 /* The number of bytes reserved for loadable plugins */
116 #define PLUGIN_BUFFER_SIZE 0x80000
118 #define BATTERY_CAPACITY_DEFAULT 400 /* default battery capacity */
119 #define BATTERY_CAPACITY_MIN 400 /* min. capacity selectable */
120 #define BATTERY_CAPACITY_MAX 400 /* max. capacity selectable */
121 #define BATTERY_CAPACITY_INC 50 /* capacity increment */
122 #define BATTERY_TYPES_COUNT 1 /* only one type */
124 /* Hardware controlled charging with monitoring */
125 #define CONFIG_CHARGING CHARGING_MONITOR
127 /* define this if the unit can be powered or charged via USB */
128 #define HAVE_USB_POWER
130 #ifndef SIMULATOR
132 /* Define this if your LCD can set contrast */
133 //#define HAVE_LCD_CONTRAST
135 /* The exact type of CPU */
136 #define CONFIG_CPU S5L8701
138 /* I2C interface */
139 #define CONFIG_I2C I2C_S5L8700
141 /* The size of the flash ROM */
142 #define FLASH_SIZE 0x400000
144 /* Define this to the CPU frequency */
145 #define CPU_FREQ 200000000
147 /* Define this if you have ATA power-off control */
148 //#define HAVE_ATA_POWER_OFF
150 /* Offset ( in the firmware file's header ) to the file CRC */
151 #define FIRMWARE_OFFSET_FILE_CRC 0
153 /* Offset ( in the firmware file's header ) to the real data */
154 #define FIRMWARE_OFFSET_FILE_DATA 8
156 /* USB On-the-go */
157 //#define CONFIG_USBOTG USBOTG_M5636
159 /* We reboot into the OF to handle USB */
160 #define USB_HANDLED_BY_OF
162 /* Define this if you have adjustable CPU frequency */
163 /* #define HAVE_ADJUSTABLE_CPU_FREQ - not yet */
165 #define BOOTFILE_EXT "ipod"
166 #define BOOTFILE "rockbox." BOOTFILE_EXT
167 #define BOOTDIR "/.rockbox"
169 /* Alternative bootfile extension - this is for encrypted images */
170 #define BOOTFILE_EXT2 "ipodx"
172 #if 0
173 #define BOOTLOADER_ENTRYPOINT 0x001F0000
174 #define FLASH_ENTRYPOINT 0x00001000
175 #define FLASH_MAGIC 0xfbfbfbf1
176 #endif
178 #endif /* SIMULATOR */
180 /* Define this for FM radio input available */
181 #define HAVE_FMRADIO_IN
183 /** Port-specific settings **/
185 #if 0
186 /* Main LCD contrast range and defaults */
187 #define MIN_CONTRAST_SETTING 1
188 #define MAX_CONTRAST_SETTING 30
189 #define DEFAULT_CONTRAST_SETTING 19 /* Match boot contrast */
191 /* Main LCD backlight brightness range and defaults */
192 #define MIN_BRIGHTNESS_SETTING 0
193 #define MAX_BRIGHTNESS_SETTING 31
194 #define DEFAULT_BRIGHTNESS_SETTING 20
195 #endif