Enable RTC for Cowon D2. Time readout works, but date is currently junk.
[kugel-rb.git] / firmware / export / config-cowond2.h
blobd71e52813431b6d6473cf9e2f317523c510d64c6
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
59 #define HAVE_TOUCHPAD
61 /* define this if you have a real-time clock */
62 #define CONFIG_RTC RTC_PCF50606
64 /* define this if you have RTC RAM available for settings */
65 //#define HAVE_RTC_RAM
67 /* Define this if you have a software controlled poweroff */
68 #define HAVE_SW_POWEROFF
70 /* Reduce Tremor's ICODE usage */
71 #define ICODE_ATTR_TREMOR_NOT_MDCT
73 /* The number of bytes reserved for loadable codecs */
74 #define CODEC_SIZE 0x80000
76 /* The number of bytes reserved for loadable plugins */
77 #define PLUGIN_BUFFER_SIZE 0x80000
79 #define AB_REPEAT_ENABLE 1
81 /* Define this if you do software codec */
82 #define CONFIG_CODEC SWCODEC
84 /* The D2 uses a WM8985 codec */
85 #define HAVE_WM8985
87 /* Use WM8985 EQ1 & EQ5 as hardware tone controls */
88 /* #define HAVE_SW_TONE_CONTROLS */
90 /* Define this for LCD backlight available */
91 #define HAVE_BACKLIGHT
93 /* Enable LCD brightness control */
94 #define HAVE_BACKLIGHT_BRIGHTNESS
96 /* Main LCD backlight brightness range and defaults */
97 #define MIN_BRIGHTNESS_SETTING 1
98 #define MAX_BRIGHTNESS_SETTING 14
99 #define DEFAULT_BRIGHTNESS_SETTING 8
101 #define CONFIG_I2C I2C_TCC780X
103 #define BATTERY_CAPACITY_DEFAULT 1600 /* default battery capacity */
104 #define BATTERY_CAPACITY_MIN 1500 /* min. capacity selectable */
105 #define BATTERY_CAPACITY_MAX 3200 /* max. capacity selectable */
106 #define BATTERY_CAPACITY_INC 50 /* capacity increment */
107 #define BATTERY_TYPES_COUNT 1 /* only one type */
109 /* Hardware controlled charging */
110 #define CONFIG_CHARGING CHARGING_SIMPLE
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 */