merge 19488 back from the 3.1 branch
[kugel-rb.git] / firmware / export / config-cowond2.h
blob9f825bb77b01000c0665c0b302ed87544c11a706
1 /*
2 * This config file is for the Cowon D2
3 */
4 #define TARGET_TREE /* this target is using the target tree system */
6 /* For Rolo and boot loader */
7 #define MODEL_NUMBER 24
9 #define MODEL_NAME "Cowon D2"
11 #if 1
12 #define HAVE_USBSTACK
13 #define USE_ROCKBOX_USB
14 #define USB_VENDOR_ID 0x0e21
15 #define USB_PRODUCT_ID 0x0800
16 #endif
19 /* Produce a dual-boot bootloader.bin for mktccboot */
20 #define TCCBOOT
22 /* define this if you have recording possibility */
23 //#define HAVE_RECORDING
25 /* Define bitmask of input sources - recordable bitmask can be defined
26 explicitly if different */
27 #define INPUT_SRC_CAPS (SRC_CAP_MIC | SRC_CAP_LINEIN | SRC_CAP_FMRADIO)
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 can flip your LCD */
36 /* #define HAVE_LCD_FLIP */
38 /* define this if you can invert the colours on your LCD */
39 /* #define HAVE_LCD_INVERT */
41 /* define this if you want album art for this target */
42 #define HAVE_ALBUMART
44 /* define this if you have access to the quickscreen */
45 #define HAVE_QUICKSCREEN
46 /* define this if you have access to the pitchscreen */
47 #define HAVE_PITCHSCREEN
49 /* define this if you would like tagcache to build on this target */
50 //#define HAVE_TAGCACHE
52 /* FM Tuner
53 #define CONFIG_TUNER LV24020LP
54 #define HAVE_TUNER_PWR_CTRL*/
56 /* define this if you have a flash memory storage */
57 #define HAVE_FLASH_STORAGE
59 #define CONFIG_STORAGE STORAGE_NAND
61 #define CONFIG_NAND NAND_TCC
63 /* Some (2Gb?) D2s seem to be FAT16 formatted */
64 #define HAVE_FAT16SUPPORT
66 /* LCD dimensions */
67 #define LCD_WIDTH 320
68 #define LCD_HEIGHT 240
69 #define LCD_DEPTH 16
70 #define LCD_PIXELFORMAT 565
72 /* define this if you have LCD enable function */
73 #define HAVE_LCD_ENABLE
75 /* define this to indicate your device's keypad */
76 #define CONFIG_KEYPAD COWOND2_PAD
77 #define HAVE_TOUCHSCREEN
78 #define HAVE_BUTTON_DATA
80 /* define this if you have a real-time clock */
81 #define CONFIG_RTC RTC_PCF50606
83 /* define this if you have RTC RAM available for settings */
84 //#define HAVE_RTC_RAM
86 /* Define this if you have a software controlled poweroff */
87 #define HAVE_SW_POWEROFF
89 /* Reduce Tremor's ICODE usage */
90 #define ICODE_ATTR_TREMOR_NOT_MDCT
92 /* The number of bytes reserved for loadable codecs */
93 #define CODEC_SIZE 0x100000
95 /* The number of bytes reserved for loadable plugins */
96 #define PLUGIN_BUFFER_SIZE 0x80000
98 #define AB_REPEAT_ENABLE 1
100 /* Define this if you do software codec */
101 #define CONFIG_CODEC SWCODEC
103 /* The D2 uses a WM8985 codec */
104 #define HAVE_WM8985
106 /* Use WM8985 EQ1 & EQ5 as hardware tone controls */
107 /* #define HAVE_SW_TONE_CONTROLS */
109 /* Define this for LCD backlight available */
110 #define HAVE_BACKLIGHT
112 /* Enable LCD brightness control */
113 #define HAVE_BACKLIGHT_BRIGHTNESS
115 /* Main LCD backlight brightness range and defaults */
116 #define MIN_BRIGHTNESS_SETTING 1
117 #define MAX_BRIGHTNESS_SETTING 14
118 #define DEFAULT_BRIGHTNESS_SETTING 8
120 #define CONFIG_I2C I2C_TCC780X
122 #define BATTERY_CAPACITY_DEFAULT 1600 /* default battery capacity */
123 #define BATTERY_CAPACITY_MIN 1500 /* min. capacity selectable */
124 #define BATTERY_CAPACITY_MAX 3200 /* max. capacity selectable */
125 #define BATTERY_CAPACITY_INC 50 /* capacity increment */
126 #define BATTERY_TYPES_COUNT 1 /* only one type */
128 /* Hardware controlled charging */
129 #define CONFIG_CHARGING CHARGING_SIMPLE
131 #ifndef SIMULATOR
133 /* define this if the backlight thread is used for fade, not for sim, needs
134 * HAVE_BACKLIGHT_BRIGHTNESS */
135 #ifndef BOOTLOADER
136 #define USE_BACKLIGHT_SW_FADING
137 #endif
139 /* Define this if you have a TCC7801 */
140 #define CONFIG_CPU TCC7801
142 /* Define this if you have ATA power-off control */
143 #define HAVE_ATA_POWER_OFF
145 /* Define this to the CPU frequency */
146 #define CPU_FREQ 48000000
148 /* Define this if you have adjustable CPU frequency */
149 #define HAVE_ADJUSTABLE_CPU_FREQ
151 /* Offset ( in the firmware file's header ) to the file CRC */
152 #define FIRMWARE_OFFSET_FILE_CRC 0
154 /* Offset ( in the firmware file's header ) to the real data */
155 #define FIRMWARE_OFFSET_FILE_DATA 8
157 /* Software controlled LED */
158 #define CONFIG_LED LED_VIRTUAL
160 #define CONFIG_LCD LCD_COWOND2
162 #define BOOTFILE_EXT "d2"
163 #define BOOTFILE "rockbox." BOOTFILE_EXT
164 #define BOOTDIR "/.rockbox"
167 #endif /* SIMULATOR */