FS#11081 - Hotkey patch. Many targets supported, but some keymaps need work before...
[kugel-rb.git] / firmware / export / config / cowond2.h
blob5b9ee0d86127ec6f8ef067222d9a612c6156b410
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 0
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 to enable bitmap scaling */
45 #define HAVE_BMP_SCALING
47 /* define this to enable JPEG decoding */
48 #define HAVE_JPEG
50 /* define this if you have access to the quickscreen */
51 #define HAVE_QUICKSCREEN
52 /* define this if you have access to the pitchscreen */
53 #define HAVE_PITCHSCREEN
55 /* define this if you would like tagcache to build on this target */
56 #define HAVE_TAGCACHE
58 /* FM Tuner */
59 #define CONFIG_TUNER LV24020LP
60 #define HAVE_TUNER_PWR_CTRL
62 /* define this if you have a flash memory storage */
63 #define HAVE_FLASH_STORAGE
65 #define CONFIG_STORAGE (STORAGE_NAND | STORAGE_SD)
66 #define HAVE_MULTIDRIVE
67 #define HAVE_HOTSWAP
68 #define NUM_DRIVES 2
70 #define CONFIG_NAND NAND_TCC
72 /* Some (2Gb?) D2s seem to be FAT16 formatted */
73 #define HAVE_FAT16SUPPORT
75 /* LCD dimensions */
76 #define LCD_WIDTH 320
77 #define LCD_HEIGHT 240
78 #define LCD_DEPTH 16
79 #define LCD_PIXELFORMAT 565
81 /* define this if you have LCD enable function */
82 #define HAVE_LCD_ENABLE
84 /* define this to indicate your device's keypad */
85 #define CONFIG_KEYPAD COWON_D2_PAD
86 #define HAVE_TOUCHSCREEN
87 #define HAVE_BUTTON_DATA
89 /* The D2 has either a PCF50606 or PCF50635, RTC_D2 handles both */
90 #define CONFIG_RTC RTC_D2
92 /* define this if you have RTC RAM available for settings */
93 //#define HAVE_RTC_RAM
95 /* Define this if you have a software controlled poweroff */
96 #define HAVE_SW_POWEROFF
98 /* Reduce Tremor's ICODE usage */
99 #define ICODE_ATTR_TREMOR_NOT_MDCT
101 /* The number of bytes reserved for loadable codecs */
102 #define CODEC_SIZE 0x100000
104 /* The number of bytes reserved for loadable plugins */
105 #define PLUGIN_BUFFER_SIZE 0x80000
107 #define AB_REPEAT_ENABLE 1
109 /* Define this if you do software codec */
110 #define CONFIG_CODEC SWCODEC
112 /* The D2 uses a WM8985 codec */
113 #define HAVE_WM8985
115 /* Use WM8985 EQ1 & EQ5 as hardware tone controls */
116 /* #define HAVE_SW_TONE_CONTROLS */
118 /* Define this for LCD backlight available */
119 #define HAVE_BACKLIGHT
120 /* Enable LCD brightness control */
121 #define HAVE_BACKLIGHT_BRIGHTNESS
122 /* Which backlight fading type? */
123 #define CONFIG_BACKLIGHT_FADING BACKLIGHT_FADING_SW_HW_REG
125 /* Main LCD backlight brightness range and defaults */
126 #define MIN_BRIGHTNESS_SETTING 1
127 #define MAX_BRIGHTNESS_SETTING 14
128 #define DEFAULT_BRIGHTNESS_SETTING 8
130 #define CONFIG_I2C I2C_TCC780X
132 #define BATTERY_CAPACITY_DEFAULT 1600 /* default battery capacity */
133 #define BATTERY_CAPACITY_MIN 1500 /* min. capacity selectable */
134 #define BATTERY_CAPACITY_MAX 3200 /* max. capacity selectable */
135 #define BATTERY_CAPACITY_INC 50 /* capacity increment */
136 #define BATTERY_TYPES_COUNT 1 /* only one type */
138 /* Hardware controlled charging */
139 #define CONFIG_CHARGING CHARGING_SIMPLE
141 /* Define this if the unit can be powered or charged via USB */
142 #define HAVE_USB_POWER
144 /* Define current usage levels. */
145 #define CURRENT_NORMAL 88 /* 18 hours from a 1600 mAh battery */
146 #define CURRENT_BACKLIGHT 30 /* TBD */
147 #define CURRENT_RECORD 0 /* no recording yet */
149 /* Define this if you have a TCC7801 */
150 #define CONFIG_CPU TCC7801
152 /* Define this to the CPU frequency */
153 #define CPU_FREQ 48000000
155 /* Define this if you have adjustable CPU frequency */
156 #define HAVE_ADJUSTABLE_CPU_FREQ
158 #define INCLUDE_TIMEOUT_API
160 /* Offset ( in the firmware file's header ) to the file CRC */
161 #define FIRMWARE_OFFSET_FILE_CRC 0
163 /* Offset ( in the firmware file's header ) to the real data */
164 #define FIRMWARE_OFFSET_FILE_DATA 8
166 #define CONFIG_LCD LCD_COWOND2
168 #define BOOTFILE_EXT "d2"
169 #define BOOTFILE "rockbox." BOOTFILE_EXT
170 #define BOOTDIR "/.rockbox"
172 /* Define this if a programmable hotkey is mapped */
173 //#define HAVE_HOTKEY