D2: Beginnings of a WM8985 driver (based on WM8758, using EQ1 and EQ5 as HW treble...
[kugel-rb.git] / firmware / export / config-cowond2.h
blob74cf90eac4514740a976c5567aba5cf95c76b2ce
1 /*
2 * This config file is for the Cowon iAudio 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 /* Produce a dual-boot bootloader.bin for mktccboot */
10 #define TCCBOOT
12 /* define this if you have recording possibility */
13 //#define HAVE_RECORDING
15 /* Define bitmask of input sources - recordable bitmask can be defined
16 explicitly if different */
17 //#define INPUT_SRC_CAPS (SRC_CAP_MIC | SRC_CAP_LINEIN | SRC_CAP_SPDIF)
19 /* define this if you have a bitmap LCD display */
20 #define HAVE_LCD_BITMAP
22 /* define this if you have a colour LCD */
23 #define HAVE_LCD_COLOR
25 /* define this if you can flip your LCD */
26 /* #define HAVE_LCD_FLIP */
28 /* define this if you can invert the colours on your LCD */
29 /* #define HAVE_LCD_INVERT */
31 /* define this if you want album art for this target */
32 #define HAVE_ALBUMART
34 /* define this if you have access to the quickscreen */
35 #define HAVE_QUICKSCREEN
36 /* define this if you have access to the pitchscreen */
37 #define HAVE_PITCHSCREEN
39 /* define this if you would like tagcache to build on this target */
40 //#define HAVE_TAGCACHE
42 /* define this if you have a flash memory storage */
43 #define HAVE_FLASH_STORAGE
45 /* Some (2Gb?) D2s seem to be FAT16 formatted */
46 #define HAVE_FAT16SUPPORT
48 /* LCD dimensions */
49 #define LCD_WIDTH 320
50 #define LCD_HEIGHT 240
51 #define LCD_DEPTH 16
52 #define LCD_PIXELFORMAT 565
54 /* define this if you have LCD enable function */
55 #define HAVE_LCD_ENABLE
57 /* define this to indicate your device's keypad */
58 #define CONFIG_KEYPAD COWOND2_PAD
60 /* define this if you have a real-time clock */
61 //#define CONFIG_RTC RTC_TCC780X
63 /* define this if you have RTC RAM available for settings */
64 //#define HAVE_RTC_RAM
66 /* Define this if you have a software controlled poweroff */
67 #define HAVE_SW_POWEROFF
69 /* Reduce Tremor's ICODE usage */
70 #define ICODE_ATTR_TREMOR_NOT_MDCT
72 /* The number of bytes reserved for loadable codecs */
73 #define CODEC_SIZE 0x80000
75 /* The number of bytes reserved for loadable plugins */
76 #define PLUGIN_BUFFER_SIZE 0x80000
78 #define AB_REPEAT_ENABLE 1
80 /* Define this if you do software codec */
81 #define CONFIG_CODEC SWCODEC
83 /* The D2 uses a WM8985 codec */
84 #define HAVE_WM8985
86 /* Use WM8985 EQ1 & EQ5 as hardware tone controls */
87 /* #define HAVE_SW_TONE_CONTROLS */
89 /* Define this for LCD backlight available */
90 #define HAVE_BACKLIGHT
92 /* Enable LCD brightness control */
93 #define HAVE_BACKLIGHT_BRIGHTNESS
95 /* Main LCD backlight brightness range and defaults */
96 #define MIN_BRIGHTNESS_SETTING 1
97 #define MAX_BRIGHTNESS_SETTING 14
98 #define DEFAULT_BRIGHTNESS_SETTING 8
100 #define CONFIG_I2C I2C_TCC780X
102 #define BATTERY_CAPACITY_DEFAULT 1500 /* default battery capacity */
103 #define BATTERY_CAPACITY_MIN 1500 /* min. capacity selectable */
104 #define BATTERY_CAPACITY_MAX 3200 /* max. capacity selectable */
105 #define BATTERY_CAPACITY_INC 50 /* capacity increment */
106 #define BATTERY_TYPES_COUNT 1 /* only one type */
108 /* define this if the unit should not shut down on low battery. */
109 /* TODO: this is temporary until battery monitoring implemented */
110 #define NO_LOW_BATTERY_SHUTDOWN
112 #ifndef SIMULATOR
114 /* Define this if you have a TCC7801 */
115 #define CONFIG_CPU TCC7801
117 /* Define this if you have ATA power-off control */
118 #define HAVE_ATA_POWER_OFF
120 /* Define this to the CPU frequency */
121 #define CPU_FREQ 48000000
123 /* Define this if you have adjustable CPU frequency */
124 #define HAVE_ADJUSTABLE_CPU_FREQ
126 /* Offset ( in the firmware file's header ) to the file CRC */
127 #define FIRMWARE_OFFSET_FILE_CRC 0
129 /* Offset ( in the firmware file's header ) to the real data */
130 #define FIRMWARE_OFFSET_FILE_DATA 8
132 /* Software controlled LED */
133 #define CONFIG_LED LED_VIRTUAL
135 #define CONFIG_LCD LCD_COWOND2
137 #define BOOTFILE_EXT "iaudio"
138 #define BOOTFILE "rockbox." BOOTFILE_EXT
139 #define BOOTDIR "/.rockbox"
141 #endif /* SIMULATOR */