fix reds
[kugel-rb.git] / firmware / export / config-cowond2.h
blob18a80f279116bc7a0825f02857279599e40cbb1a
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 #define MODEL_NAME "Cowon iAudio D2"
11 /* Produce a dual-boot bootloader.bin for mktccboot */
12 #define TCCBOOT
14 /* define this if you have recording possibility */
15 //#define HAVE_RECORDING
17 /* Define bitmask of input sources - recordable bitmask can be defined
18 explicitly if different */
19 #define INPUT_SRC_CAPS (SRC_CAP_MIC | SRC_CAP_LINEIN | SRC_CAP_FMRADIO)
21 /* define this if you have a bitmap LCD display */
22 #define HAVE_LCD_BITMAP
24 /* define this if you have a colour LCD */
25 #define HAVE_LCD_COLOR
27 /* define this if you can flip your LCD */
28 /* #define HAVE_LCD_FLIP */
30 /* define this if you can invert the colours on your LCD */
31 /* #define HAVE_LCD_INVERT */
33 /* define this if you want album art for this target */
34 #define HAVE_ALBUMART
36 /* define this if you have access to the quickscreen */
37 #define HAVE_QUICKSCREEN
38 /* define this if you have access to the pitchscreen */
39 #define HAVE_PITCHSCREEN
41 /* define this if you would like tagcache to build on this target */
42 //#define HAVE_TAGCACHE
44 /* FM Tuner
45 #define CONFIG_TUNER LV24020LP
46 #define HAVE_TUNER_PWR_CTRL*/
48 /* define this if you have a flash memory storage */
49 #define HAVE_FLASH_STORAGE
51 #define CONFIG_STORAGE STORAGE_NAND
53 #define CONFIG_NAND NAND_TCC
55 /* Some (2Gb?) D2s seem to be FAT16 formatted */
56 #define HAVE_FAT16SUPPORT
58 /* LCD dimensions */
59 #define LCD_WIDTH 320
60 #define LCD_HEIGHT 240
61 #define LCD_DEPTH 16
62 #define LCD_PIXELFORMAT 565
64 /* define this if you have LCD enable function */
65 #define HAVE_LCD_ENABLE
67 /* define this to indicate your device's keypad */
68 #define CONFIG_KEYPAD COWOND2_PAD
69 #define HAVE_TOUCHSCREEN
70 #define HAVE_BUTTON_DATA
72 /* define this if you have a real-time clock */
73 #define CONFIG_RTC RTC_PCF50606
75 /* define this if you have RTC RAM available for settings */
76 //#define HAVE_RTC_RAM
78 /* Define this if you have a software controlled poweroff */
79 #define HAVE_SW_POWEROFF
81 /* Reduce Tremor's ICODE usage */
82 #define ICODE_ATTR_TREMOR_NOT_MDCT
84 /* The number of bytes reserved for loadable codecs */
85 #define CODEC_SIZE 0x100000
87 /* The number of bytes reserved for loadable plugins */
88 #define PLUGIN_BUFFER_SIZE 0x80000
90 #define AB_REPEAT_ENABLE 1
92 /* Define this if you do software codec */
93 #define CONFIG_CODEC SWCODEC
95 /* The D2 uses a WM8985 codec */
96 #define HAVE_WM8985
98 /* Use WM8985 EQ1 & EQ5 as hardware tone controls */
99 /* #define HAVE_SW_TONE_CONTROLS */
101 /* Define this for LCD backlight available */
102 #define HAVE_BACKLIGHT
104 /* Enable LCD brightness control */
105 #define HAVE_BACKLIGHT_BRIGHTNESS
107 /* Main LCD backlight brightness range and defaults */
108 #define MIN_BRIGHTNESS_SETTING 1
109 #define MAX_BRIGHTNESS_SETTING 14
110 #define DEFAULT_BRIGHTNESS_SETTING 8
112 #define CONFIG_I2C I2C_TCC780X
114 #define BATTERY_CAPACITY_DEFAULT 1600 /* default battery capacity */
115 #define BATTERY_CAPACITY_MIN 1500 /* min. capacity selectable */
116 #define BATTERY_CAPACITY_MAX 3200 /* max. capacity selectable */
117 #define BATTERY_CAPACITY_INC 50 /* capacity increment */
118 #define BATTERY_TYPES_COUNT 1 /* only one type */
120 /* Hardware controlled charging */
121 #define CONFIG_CHARGING CHARGING_SIMPLE
123 #ifndef SIMULATOR
125 /* Define this if you have a TCC7801 */
126 #define CONFIG_CPU TCC7801
128 /* Define this if you have ATA power-off control */
129 #define HAVE_ATA_POWER_OFF
131 /* Define this to the CPU frequency */
132 #define CPU_FREQ 48000000
134 /* Define this if you have adjustable CPU frequency */
135 #define HAVE_ADJUSTABLE_CPU_FREQ
137 /* Offset ( in the firmware file's header ) to the file CRC */
138 #define FIRMWARE_OFFSET_FILE_CRC 0
140 /* Offset ( in the firmware file's header ) to the real data */
141 #define FIRMWARE_OFFSET_FILE_DATA 8
143 /* Software controlled LED */
144 #define CONFIG_LED LED_VIRTUAL
146 #define CONFIG_LCD LCD_COWOND2
148 #define BOOTFILE_EXT "iaudio"
149 #define BOOTFILE "rockbox." BOOTFILE_EXT
150 #define BOOTDIR "/.rockbox"
153 #endif /* SIMULATOR */