commit FS#9027 - conditional viewports
[kugel-rb.git] / firmware / export / config-cowond2.h
blob828dc076b79b8f5e24486cd42a4065d61d77dfe5
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_FMRADIO)
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 /* FM Tuner
43 #define CONFIG_TUNER LV24020LP
44 #define HAVE_TUNER_PWR_CTRL*/
46 /* define this if you have a flash memory storage */
47 #define HAVE_FLASH_STORAGE
49 /* Some (2Gb?) D2s seem to be FAT16 formatted */
50 #define HAVE_FAT16SUPPORT
52 /* LCD dimensions */
53 #define LCD_WIDTH 320
54 #define LCD_HEIGHT 240
55 #define LCD_DEPTH 16
56 #define LCD_PIXELFORMAT 565
58 /* define this if you have LCD enable function */
59 #define HAVE_LCD_ENABLE
61 /* define this to indicate your device's keypad */
62 #define CONFIG_KEYPAD COWOND2_PAD
63 #define HAVE_TOUCHPAD
64 #define HAVE_BUTTON_DATA
66 /* define this if you have a real-time clock */
67 #define CONFIG_RTC RTC_PCF50606
69 /* define this if you have RTC RAM available for settings */
70 //#define HAVE_RTC_RAM
72 /* Define this if you have a software controlled poweroff */
73 #define HAVE_SW_POWEROFF
75 /* Reduce Tremor's ICODE usage */
76 #define ICODE_ATTR_TREMOR_NOT_MDCT
78 /* The number of bytes reserved for loadable codecs */
79 #define CODEC_SIZE 0x80000
81 /* The number of bytes reserved for loadable plugins */
82 #define PLUGIN_BUFFER_SIZE 0x80000
84 #define AB_REPEAT_ENABLE 1
86 /* Define this if you do software codec */
87 #define CONFIG_CODEC SWCODEC
89 /* The D2 uses a WM8985 codec */
90 #define HAVE_WM8985
92 /* Use WM8985 EQ1 & EQ5 as hardware tone controls */
93 /* #define HAVE_SW_TONE_CONTROLS */
95 /* Define this for LCD backlight available */
96 #define HAVE_BACKLIGHT
98 /* Enable LCD brightness control */
99 #define HAVE_BACKLIGHT_BRIGHTNESS
101 /* Main LCD backlight brightness range and defaults */
102 #define MIN_BRIGHTNESS_SETTING 1
103 #define MAX_BRIGHTNESS_SETTING 14
104 #define DEFAULT_BRIGHTNESS_SETTING 8
106 #define CONFIG_I2C I2C_TCC780X
108 #define BATTERY_CAPACITY_DEFAULT 1600 /* default battery capacity */
109 #define BATTERY_CAPACITY_MIN 1500 /* min. capacity selectable */
110 #define BATTERY_CAPACITY_MAX 3200 /* max. capacity selectable */
111 #define BATTERY_CAPACITY_INC 50 /* capacity increment */
112 #define BATTERY_TYPES_COUNT 1 /* only one type */
114 /* Hardware controlled charging */
115 #define CONFIG_CHARGING CHARGING_SIMPLE
117 #ifndef SIMULATOR
119 /* Define this if you have a TCC7801 */
120 #define CONFIG_CPU TCC7801
122 /* Define this if you have ATA power-off control */
123 #define HAVE_ATA_POWER_OFF
125 /* Define this to the CPU frequency */
126 #define CPU_FREQ 48000000
128 /* Define this if you have adjustable CPU frequency */
129 #define HAVE_ADJUSTABLE_CPU_FREQ
131 /* Offset ( in the firmware file's header ) to the file CRC */
132 #define FIRMWARE_OFFSET_FILE_CRC 0
134 /* Offset ( in the firmware file's header ) to the real data */
135 #define FIRMWARE_OFFSET_FILE_DATA 8
137 /* Software controlled LED */
138 #define CONFIG_LED LED_VIRTUAL
140 #define CONFIG_LCD LCD_COWOND2
142 #define BOOTFILE_EXT "iaudio"
143 #define BOOTFILE "rockbox." BOOTFILE_EXT
144 #define BOOTDIR "/.rockbox"
146 #endif /* SIMULATOR */