diff options
author | Tomasz Moń <desowin@gmail.com> | 2011-11-16 14:08:01 +0000 |
---|---|---|
committer | Tomasz Moń <desowin@gmail.com> | 2011-11-16 14:08:01 +0000 |
commit | e8a8a1be43afe63079ae48ce1a9eb3052df3b1a4 (patch) | |
tree | 084e1cdf27a339ce58e24cff8fec8c31432b52db /firmware/export/config | |
parent | 992d4eb775cac48e107e18d72783ebfb39c4234f (diff) | |
download | rockbox-e8a8a1be43afe63079ae48ce1a9eb3052df3b1a4.tar.gz rockbox-e8a8a1be43afe63079ae48ce1a9eb3052df3b1a4.zip |
Sandisk Sansa Connect port (FS #12363)
Included are drivers for buttons, backlight, lcd, audio and storage.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31000 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/export/config')
-rw-r--r-- | firmware/export/config/sansaconnect.h | 201 |
1 files changed, 201 insertions, 0 deletions
diff --git a/firmware/export/config/sansaconnect.h b/firmware/export/config/sansaconnect.h new file mode 100644 index 0000000000..714534d6ad --- /dev/null +++ b/firmware/export/config/sansaconnect.h | |||
@@ -0,0 +1,201 @@ | |||
1 | /*************************************************************************** | ||
2 | * __________ __ ___. | ||
3 | * Open \______ \ ____ ____ | | _\_ |__ _______ ___ | ||
4 | * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ / | ||
5 | * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < < | ||
6 | * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \ | ||
7 | * \/ \/ \/ \/ \/ | ||
8 | * | ||
9 | * Copyright (C) 2011 by Tomasz Moń | ||
10 | * | ||
11 | * This program is free software; you can redistribute it and/or | ||
12 | * modify it under the terms of the GNU General Public License | ||
13 | * as published by the Free Software Foundation; either version 2 | ||
14 | * of the License, or (at your option) any later version. | ||
15 | * | ||
16 | * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY | ||
17 | * KIND, either express or implied. | ||
18 | * | ||
19 | ****************************************************************************/ | ||
20 | |||
21 | /* | ||
22 | * This config file is for the Sansa Connect | ||
23 | */ | ||
24 | #define TARGET_TREE /* this target is using the target tree system */ | ||
25 | |||
26 | /* This is the absolute address on the bus set by OF bootloader */ | ||
27 | #define CONFIG_SDRAM_START 0x01000000 | ||
28 | |||
29 | #define SANSA_CONNECT 1 | ||
30 | #define MODEL_NAME "Sandisk Sansa Connect" | ||
31 | |||
32 | /* For Rolo and boot loader */ | ||
33 | #define MODEL_NUMBER 81 | ||
34 | |||
35 | /* define this if you have a flash memory storage */ | ||
36 | #define HAVE_FLASH_STORAGE | ||
37 | |||
38 | /* define this if you use an SD controller */ | ||
39 | #define CONFIG_STORAGE STORAGE_SD | ||
40 | |||
41 | #define HAVE_MULTIDRIVE | ||
42 | #define NUM_DRIVES 2 | ||
43 | #define HAVE_HOTSWAP | ||
44 | #define HAVE_HOTSWAP_STORAGE_AS_MAIN | ||
45 | |||
46 | /* define this if you have a bitmap LCD display */ | ||
47 | #define HAVE_LCD_BITMAP | ||
48 | |||
49 | /* define this if you have a colour LCD */ | ||
50 | #define HAVE_LCD_COLOR | ||
51 | |||
52 | /* define this if you want album art for this target */ | ||
53 | #define HAVE_ALBUMART | ||
54 | |||
55 | /* define this to enable bitmap scaling */ | ||
56 | #define HAVE_BMP_SCALING | ||
57 | |||
58 | /* define this to enable JPEG decoding */ | ||
59 | #define HAVE_JPEG | ||
60 | |||
61 | /* define this if you have access to the quickscreen */ | ||
62 | #define HAVE_QUICKSCREEN | ||
63 | |||
64 | /* define this if you have access to the pitchscreen */ | ||
65 | #define HAVE_PITCHSCREEN | ||
66 | |||
67 | /* define this if you would like tagcache to build on this target */ | ||
68 | #define HAVE_TAGCACHE | ||
69 | |||
70 | /* define this if the target has volume keys which can be used in the lists */ | ||
71 | #define HAVE_VOLUME_IN_LIST | ||
72 | |||
73 | /* define this if you want viewport clipping enabled for safe LCD functions */ | ||
74 | #define HAVE_VIEWPORT_CLIP | ||
75 | |||
76 | /* LCD dimensions */ | ||
77 | #define CONFIG_LCD LCD_CONNECT | ||
78 | |||
79 | #define LCD_WIDTH 240 | ||
80 | #define LCD_HEIGHT 320 | ||
81 | |||
82 | #define LCD_DEPTH 16 /* 65k colours */ | ||
83 | #define LCD_PIXELFORMAT RGB565 /* rgb565 */ | ||
84 | |||
85 | #define HAVE_LCD_ENABLE | ||
86 | #ifndef BOOTLOADER | ||
87 | #define HAVE_LCD_SLEEP | ||
88 | #endif | ||
89 | |||
90 | #define LCD_SLEEP_TIMEOUT (2*HZ) | ||
91 | |||
92 | #define MAX_ICON_HEIGHT 35 | ||
93 | #define MAX_ICON_WIDTH 35 | ||
94 | |||
95 | |||
96 | #define CONFIG_KEYPAD SANSA_CONNECT_PAD | ||
97 | |||
98 | /* Define this to have CPU bootsted while scrolling in the UI */ | ||
99 | #define HAVE_GUI_BOOST | ||
100 | |||
101 | /* define this if the target has volume keys which can be used in the lists */ | ||
102 | #define HAVE_VOLUME_IN_LIST | ||
103 | |||
104 | #define HAVE_MORSE_INPUT | ||
105 | |||
106 | /* Define this if you do software codec */ | ||
107 | #define CONFIG_CODEC SWCODEC | ||
108 | |||
109 | //#define HAVE_HARDWARE_BEEP | ||
110 | |||
111 | /* There is no hardware tone control */ | ||
112 | #define HAVE_SW_TONE_CONTROLS | ||
113 | |||
114 | #define HAVE_AIC3X | ||
115 | |||
116 | //#define HW_SAMPR_CAPS SAMPR_CAP_44 | SAMPR_CAP_22 | SAMPR_CAP_11 | SAMPR_CAP_8 | ||
117 | |||
118 | /* define this if you have a real-time clock */ | ||
119 | //#define CONFIG_RTC RTC_STM41T62 | ||
120 | |||
121 | /* define this if the unit uses a scrollwheel for navigation */ | ||
122 | #define HAVE_SCROLLWHEEL | ||
123 | |||
124 | /* Define this for LCD backlight available */ | ||
125 | #define HAVE_BACKLIGHT | ||
126 | |||
127 | #define HAVE_BACKLIGHT_BRIGHTNESS | ||
128 | |||
129 | #define CONFIG_BACKLIGHT_FADING BACKLIGHT_FADING_SW_SETTING | ||
130 | |||
131 | /* Main LCD backlight brightness range and defaults */ | ||
132 | #define MIN_BRIGHTNESS_SETTING 1 | ||
133 | #define MAX_BRIGHTNESS_SETTING 20 | ||
134 | #define DEFAULT_BRIGHTNESS_SETTING 16 /* OF default brightness (80%) */ | ||
135 | #define DEFAULT_DIMNESS_SETTING 6 /* OF default inactive (30%) */ | ||
136 | |||
137 | /* Define this if you have a software controlled poweroff */ | ||
138 | #define HAVE_SW_POWEROFF | ||
139 | |||
140 | /* The number of bytes reserved for loadable codecs */ | ||
141 | #define CODEC_SIZE 0x100000 | ||
142 | |||
143 | /* The number of bytes reserved for loadable plugins */ | ||
144 | #define PLUGIN_BUFFER_SIZE 0x200000 | ||
145 | |||
146 | #define BATTERY_CAPACITY_DEFAULT 800 /* default battery capacity */ | ||
147 | #define BATTERY_CAPACITY_MIN 700 /* min. capacity selectable */ | ||
148 | #define BATTERY_CAPACITY_MAX 1000 /* max. capacity selectable */ | ||
149 | #define BATTERY_CAPACITY_INC 100 /* capacity increment */ | ||
150 | #define BATTERY_TYPES_COUNT 1 /* only one type */ | ||
151 | |||
152 | /* define current usage levels */ | ||
153 | #if 0 | ||
154 | /* TODO */ | ||
155 | #define CURRENT_NORMAL 85 | ||
156 | #define CURRENT_BACKLIGHT 200 | ||
157 | #endif | ||
158 | |||
159 | /* Hardware controlled charging with monitoring */ | ||
160 | //#define CONFIG_CHARGING CHARGING_MONITOR | ||
161 | |||
162 | #define CONFIG_CPU DM320 | ||
163 | |||
164 | #define CONFIG_I2C I2C_DM320 | ||
165 | #define HAVE_SOFTWARE_I2C | ||
166 | |||
167 | /* define this if the hardware can be powered off while charging */ | ||
168 | #define HAVE_POWEROFF_WHILE_CHARGING | ||
169 | |||
170 | /* The size of the flash ROM */ | ||
171 | #define FLASH_SIZE 0x400000 | ||
172 | |||
173 | /* Define this to the CPU frequency */ | ||
174 | #define CPU_FREQ 150000000 | ||
175 | |||
176 | /* Define this if you have ATA power-off control */ | ||
177 | #define HAVE_ATA_POWER_OFF | ||
178 | |||
179 | /* Offset ( in the firmware file's header ) to the file CRC */ | ||
180 | #define FIRMWARE_OFFSET_FILE_CRC 0 | ||
181 | |||
182 | /* Offset ( in the firmware file's header ) to the real data */ | ||
183 | #define FIRMWARE_OFFSET_FILE_DATA 8 | ||
184 | |||
185 | #if 0 | ||
186 | #define HAVE_USBSTACK | ||
187 | #define USB_VENDOR_ID 0x0781 | ||
188 | #define USB_PRODUCT_ID 0x7480 | ||
189 | #endif | ||
190 | |||
191 | #define INCLUDE_TIMEOUT_API | ||
192 | |||
193 | /* Define this if you have adjustable CPU frequency */ | ||
194 | #define HAVE_ADJUSTABLE_CPU_FREQ | ||
195 | |||
196 | #define BOOTFILE_EXT "sansa" | ||
197 | #define BOOTFILE "rockbox." BOOTFILE_EXT | ||
198 | #define BOOTDIR "/.rockbox" | ||
199 | |||
200 | /* Define this if a programmable hotkey is mapped */ | ||
201 | #define HAVE_HOTKEY | ||