diff options
author | Björn Stenberg <bjorn@haxx.se> | 2009-12-07 09:03:11 +0000 |
---|---|---|
committer | Björn Stenberg <bjorn@haxx.se> | 2009-12-07 09:03:11 +0000 |
commit | 66fa5b578904f7df61293d6ce5c08966b5db13db (patch) | |
tree | 5db57c13d5b23e76793b60bbc48579ac24da1550 /firmware/export/config/cowond2.h | |
parent | 7b70046e7ab7329d93f800fe4b074fabff998a0e (diff) | |
download | rockbox-66fa5b578904f7df61293d6ce5c08966b5db13db.tar.gz rockbox-66fa5b578904f7df61293d6ce5c08966b5db13db.zip |
Rename targets to be consistent in all places. (FS #10819)
git-svn-id: svn://svn.rockbox.org/rockbox/branches/v3_4@23881 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/export/config/cowond2.h')
-rw-r--r-- | firmware/export/config/cowond2.h | 175 |
1 files changed, 175 insertions, 0 deletions
diff --git a/firmware/export/config/cowond2.h b/firmware/export/config/cowond2.h new file mode 100644 index 0000000000..453fa0d4c1 --- /dev/null +++ b/firmware/export/config/cowond2.h | |||
@@ -0,0 +1,175 @@ | |||
1 | /* | ||
2 | * This config file is for the Cowon D2 | ||
3 | */ | ||
4 | #define TARGET_TREE /* this target is using the target tree system */ | ||
5 | |||
6 | /* For Rolo and boot loader */ | ||
7 | #define MODEL_NUMBER 24 | ||
8 | |||
9 | #define MODEL_NAME "Cowon D2" | ||
10 | |||
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 | ||
17 | |||
18 | |||
19 | /* Produce a dual-boot bootloader.bin for mktccboot */ | ||
20 | #define TCCBOOT | ||
21 | |||
22 | /* define this if you have recording possibility */ | ||
23 | //#define HAVE_RECORDING | ||
24 | |||
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) | ||
28 | |||
29 | /* define this if you have a bitmap LCD display */ | ||
30 | #define HAVE_LCD_BITMAP | ||
31 | |||
32 | /* define this if you have a colour LCD */ | ||
33 | #define HAVE_LCD_COLOR | ||
34 | |||
35 | /* define this if you can flip your LCD */ | ||
36 | /* #define HAVE_LCD_FLIP */ | ||
37 | |||
38 | /* define this if you can invert the colours on your LCD */ | ||
39 | /* #define HAVE_LCD_INVERT */ | ||
40 | |||
41 | /* define this if you want album art for this target */ | ||
42 | #define HAVE_ALBUMART | ||
43 | |||
44 | /* define this to enable bitmap scaling */ | ||
45 | #define HAVE_BMP_SCALING | ||
46 | |||
47 | /* define this to enable JPEG decoding */ | ||
48 | #define HAVE_JPEG | ||
49 | |||
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 | ||
54 | |||
55 | /* define this if you would like tagcache to build on this target */ | ||
56 | #define HAVE_TAGCACHE | ||
57 | |||
58 | /* FM Tuner */ | ||
59 | #define CONFIG_TUNER LV24020LP | ||
60 | #define HAVE_TUNER_PWR_CTRL | ||
61 | |||
62 | /* define this if you have a flash memory storage */ | ||
63 | #define HAVE_FLASH_STORAGE | ||
64 | |||
65 | #ifndef SIMULATOR | ||
66 | #define CONFIG_STORAGE (STORAGE_NAND | STORAGE_SD) | ||
67 | #define HAVE_MULTIDRIVE | ||
68 | #define HAVE_HOTSWAP | ||
69 | #define NUM_DRIVES 2 | ||
70 | #else | ||
71 | #define CONFIG_STORAGE STORAGE_NAND | ||
72 | #endif | ||
73 | |||
74 | #define CONFIG_NAND NAND_TCC | ||
75 | |||
76 | /* Some (2Gb?) D2s seem to be FAT16 formatted */ | ||
77 | #define HAVE_FAT16SUPPORT | ||
78 | |||
79 | /* LCD dimensions */ | ||
80 | #define LCD_WIDTH 320 | ||
81 | #define LCD_HEIGHT 240 | ||
82 | #define LCD_DEPTH 16 | ||
83 | #define LCD_PIXELFORMAT 565 | ||
84 | |||
85 | /* define this if you have LCD enable function */ | ||
86 | #define HAVE_LCD_ENABLE | ||
87 | |||
88 | /* define this to indicate your device's keypad */ | ||
89 | #define CONFIG_KEYPAD COWOND2_PAD | ||
90 | #define HAVE_TOUCHSCREEN | ||
91 | #define HAVE_BUTTON_DATA | ||
92 | |||
93 | /* define this if you have a real-time clock */ | ||
94 | #define CONFIG_RTC RTC_PCF50606 | ||
95 | |||
96 | /* define this if you have RTC RAM available for settings */ | ||
97 | //#define HAVE_RTC_RAM | ||
98 | |||
99 | /* Define this if you have a software controlled poweroff */ | ||
100 | #define HAVE_SW_POWEROFF | ||
101 | |||
102 | /* Reduce Tremor's ICODE usage */ | ||
103 | #define ICODE_ATTR_TREMOR_NOT_MDCT | ||
104 | |||
105 | /* The number of bytes reserved for loadable codecs */ | ||
106 | #define CODEC_SIZE 0x100000 | ||
107 | |||
108 | /* The number of bytes reserved for loadable plugins */ | ||
109 | #define PLUGIN_BUFFER_SIZE 0x80000 | ||
110 | |||
111 | #define AB_REPEAT_ENABLE 1 | ||
112 | |||
113 | /* Define this if you do software codec */ | ||
114 | #define CONFIG_CODEC SWCODEC | ||
115 | |||
116 | /* The D2 uses a WM8985 codec */ | ||
117 | #define HAVE_WM8985 | ||
118 | |||
119 | /* Use WM8985 EQ1 & EQ5 as hardware tone controls */ | ||
120 | /* #define HAVE_SW_TONE_CONTROLS */ | ||
121 | |||
122 | /* Define this for LCD backlight available */ | ||
123 | #define HAVE_BACKLIGHT | ||
124 | /* Enable LCD brightness control */ | ||
125 | #define HAVE_BACKLIGHT_BRIGHTNESS | ||
126 | /* Which backlight fading type? */ | ||
127 | #define CONFIG_BACKLIGHT_FADING BACKLIGHT_FADING_SW_HW_REG | ||
128 | |||
129 | /* Main LCD backlight brightness range and defaults */ | ||
130 | #define MIN_BRIGHTNESS_SETTING 1 | ||
131 | #define MAX_BRIGHTNESS_SETTING 14 | ||
132 | #define DEFAULT_BRIGHTNESS_SETTING 8 | ||
133 | |||
134 | #define CONFIG_I2C I2C_TCC780X | ||
135 | |||
136 | #define BATTERY_CAPACITY_DEFAULT 1600 /* default battery capacity */ | ||
137 | #define BATTERY_CAPACITY_MIN 1500 /* min. capacity selectable */ | ||
138 | #define BATTERY_CAPACITY_MAX 3200 /* max. capacity selectable */ | ||
139 | #define BATTERY_CAPACITY_INC 50 /* capacity increment */ | ||
140 | #define BATTERY_TYPES_COUNT 1 /* only one type */ | ||
141 | |||
142 | /* Hardware controlled charging */ | ||
143 | #define CONFIG_CHARGING CHARGING_SIMPLE | ||
144 | |||
145 | /* Define current usage levels. */ | ||
146 | #define CURRENT_NORMAL 88 /* 18 hours from a 1600 mAh battery */ | ||
147 | #define CURRENT_BACKLIGHT 30 /* TBD */ | ||
148 | #define CURRENT_RECORD 0 /* no recording yet */ | ||
149 | |||
150 | #ifndef SIMULATOR | ||
151 | /* Define this if you have a TCC7801 */ | ||
152 | #define CONFIG_CPU TCC7801 | ||
153 | |||
154 | /* Define this to the CPU frequency */ | ||
155 | #define CPU_FREQ 48000000 | ||
156 | |||
157 | /* Define this if you have adjustable CPU frequency */ | ||
158 | #define HAVE_ADJUSTABLE_CPU_FREQ | ||
159 | |||
160 | #define INCLUDE_TIMEOUT_API | ||
161 | |||
162 | /* Offset ( in the firmware file's header ) to the file CRC */ | ||
163 | #define FIRMWARE_OFFSET_FILE_CRC 0 | ||
164 | |||
165 | /* Offset ( in the firmware file's header ) to the real data */ | ||
166 | #define FIRMWARE_OFFSET_FILE_DATA 8 | ||
167 | |||
168 | #define CONFIG_LCD LCD_COWOND2 | ||
169 | |||
170 | #define BOOTFILE_EXT "d2" | ||
171 | #define BOOTFILE "rockbox." BOOTFILE_EXT | ||
172 | #define BOOTDIR "/.rockbox" | ||
173 | |||
174 | |||
175 | #endif /* SIMULATOR */ | ||