diff options
Diffstat (limited to 'firmware/export/config-cowond2.h')
-rw-r--r-- | firmware/export/config-cowond2.h | 140 |
1 files changed, 140 insertions, 0 deletions
diff --git a/firmware/export/config-cowond2.h b/firmware/export/config-cowond2.h new file mode 100644 index 0000000000..4f2d11e424 --- /dev/null +++ b/firmware/export/config-cowond2.h | |||
@@ -0,0 +1,140 @@ | |||
1 | /* | ||
2 | * This config file is for the Cowon iAudio 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 34 | ||
8 | |||
9 | /* define this if you have recording possibility */ | ||
10 | //#define HAVE_RECORDING | ||
11 | |||
12 | /* Define bitmask of input sources - recordable bitmask can be defined | ||
13 | explicitly if different */ | ||
14 | //#define INPUT_SRC_CAPS (SRC_CAP_MIC | SRC_CAP_LINEIN | SRC_CAP_SPDIF) | ||
15 | |||
16 | /* define this if you have a bitmap LCD display */ | ||
17 | #define HAVE_LCD_BITMAP | ||
18 | |||
19 | /* define this if you have a colour LCD */ | ||
20 | #define HAVE_LCD_COLOR | ||
21 | |||
22 | /* define this if you can flip your LCD */ | ||
23 | #define HAVE_LCD_FLIP | ||
24 | |||
25 | /* define this if you can invert the colours on your LCD */ | ||
26 | #define HAVE_LCD_INVERT | ||
27 | |||
28 | /* define this if you want album art for this target */ | ||
29 | #define HAVE_ALBUMART | ||
30 | |||
31 | /* define this if you have access to the quickscreen */ | ||
32 | #define HAVE_QUICKSCREEN | ||
33 | /* define this if you have access to the pitchscreen */ | ||
34 | #define HAVE_PITCHSCREEN | ||
35 | |||
36 | /* define this if you would like tagcache to build on this target */ | ||
37 | #define HAVE_TAGCACHE | ||
38 | |||
39 | /* define this if you have a flash memory storage */ | ||
40 | #define HAVE_FLASH_STORAGE | ||
41 | |||
42 | /* LCD dimensions */ | ||
43 | #define LCD_WIDTH 320 | ||
44 | #define LCD_HEIGHT 240 | ||
45 | #define LCD_DEPTH 16 | ||
46 | #define LCD_PIXELFORMAT 565 | ||
47 | |||
48 | /* define this if you have LCD enable function */ | ||
49 | #define HAVE_LCD_ENABLE | ||
50 | |||
51 | /* define this to indicate your device's keypad */ | ||
52 | #define CONFIG_KEYPAD COWOND2_PAD | ||
53 | |||
54 | /* define this if you have a real-time clock */ | ||
55 | //#define CONFIG_RTC RTC_TCC780X | ||
56 | |||
57 | /* define this if you have RTC RAM available for settings */ | ||
58 | //#define HAVE_RTC_RAM | ||
59 | |||
60 | /* Define this if you have a software controlled poweroff */ | ||
61 | #define HAVE_SW_POWEROFF | ||
62 | |||
63 | /* The number of bytes reserved for loadable codecs */ | ||
64 | #define CODEC_SIZE 0x80000 | ||
65 | |||
66 | /* The number of bytes reserved for loadable plugins */ | ||
67 | #define PLUGIN_BUFFER_SIZE 0x80000 | ||
68 | |||
69 | #define AB_REPEAT_ENABLE 1 | ||
70 | |||
71 | /* Define this if you do software codec */ | ||
72 | #define CONFIG_CODEC SWCODEC | ||
73 | |||
74 | /* The D2 uses a WM8985 codec */ | ||
75 | #define HAVE_WM8985 | ||
76 | |||
77 | /* There is no hardware tone control */ | ||
78 | /* TODO: probably need to use this */ | ||
79 | //#define HAVE_SW_TONE_CONTROLS | ||
80 | |||
81 | /* Define this for LCD backlight available */ | ||
82 | #define HAVE_BACKLIGHT | ||
83 | |||
84 | /* TODO: Enable LCD brightness control */ | ||
85 | //#define HAVE_BACKLIGHT_BRIGHTNESS | ||
86 | |||
87 | /* Main LCD backlight brightness range and defaults */ | ||
88 | //#define MIN_BRIGHTNESS_SETTING 1 | ||
89 | //#define MAX_BRIGHTNESS_SETTING 10 | ||
90 | //#define DEFAULT_BRIGHTNESS_SETTING 8 | ||
91 | |||
92 | #define CONFIG_I2C I2C_TCC780X | ||
93 | |||
94 | #define BATTERY_CAPACITY_DEFAULT 1500 /* default battery capacity */ | ||
95 | #define BATTERY_CAPACITY_MIN 1500 /* min. capacity selectable */ | ||
96 | #define BATTERY_CAPACITY_MAX 3200 /* max. capacity selectable */ | ||
97 | #define BATTERY_CAPACITY_INC 50 /* capacity increment */ | ||
98 | #define BATTERY_TYPES_COUNT 1 /* only one type */ | ||
99 | |||
100 | /* define this if the unit should not shut down on low battery. */ | ||
101 | /* TODO: this is temporary until battery monitoring implemented */ | ||
102 | #define NO_LOW_BATTERY_SHUTDOWN | ||
103 | |||
104 | #ifndef SIMULATOR | ||
105 | |||
106 | /* Define this if you have a TCC7801 */ | ||
107 | #define CONFIG_CPU TCC7801 | ||
108 | |||
109 | /* Define this if you have ATA power-off control */ | ||
110 | #define HAVE_ATA_POWER_OFF | ||
111 | |||
112 | /* Define this to the CPU frequency */ | ||
113 | #define CPU_FREQ 192000000 | ||
114 | |||
115 | /* Define this if you have adjustable CPU frequency */ | ||
116 | #define HAVE_ADJUSTABLE_CPU_FREQ | ||
117 | |||
118 | /* Offset ( in the firmware file's header ) to the file length */ | ||
119 | #define FIRMWARE_OFFSET_FILE_LENGTH 0 | ||
120 | |||
121 | /* Offset ( in the firmware file's header ) to the file CRC */ | ||
122 | #define FIRMWARE_OFFSET_FILE_CRC 4 | ||
123 | |||
124 | /* Offset ( in the firmware file's header ) to the real data */ | ||
125 | #define FIRMWARE_OFFSET_FILE_DATA 6 | ||
126 | |||
127 | /* The start address index for ROM builds */ | ||
128 | /* #define ROM_START 0x11010 for behind original Archos */ | ||
129 | #define ROM_START 0x7010 /* for behind BootBox */ | ||
130 | |||
131 | /* Software controlled LED */ | ||
132 | #define CONFIG_LED LED_VIRTUAL | ||
133 | |||
134 | #define CONFIG_LCD LCD_COWOND2 | ||
135 | |||
136 | #define BOOTFILE_EXT "iaudio" | ||
137 | #define BOOTFILE "rockbox." BOOTFILE_EXT | ||
138 | #define BOOTDIR "/" | ||
139 | |||
140 | #endif /* SIMULATOR */ | ||