diff options
Diffstat (limited to 'firmware/export')
-rw-r--r-- | firmware/export/config-creativezv.h | 166 | ||||
-rw-r--r-- | firmware/export/config-creativezvm.h | 16 | ||||
-rw-r--r-- | firmware/export/config-creativezvm60gb.h | 168 | ||||
-rw-r--r-- | firmware/export/config.h | 4 | ||||
-rw-r--r-- | firmware/export/tlv320.h | 2 |
5 files changed, 343 insertions, 13 deletions
diff --git a/firmware/export/config-creativezv.h b/firmware/export/config-creativezv.h new file mode 100644 index 0000000000..af9bedf307 --- /dev/null +++ b/firmware/export/config-creativezv.h | |||
@@ -0,0 +1,166 @@ | |||
1 | /*************************************************************************** | ||
2 | * __________ __ ___. | ||
3 | * Open \______ \ ____ ____ | | _\_ |__ _______ ___ | ||
4 | * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ / | ||
5 | * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < < | ||
6 | * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \ | ||
7 | * \/ \/ \/ \/ \/ | ||
8 | * $Id$ | ||
9 | * | ||
10 | * Copyright (C) 2008 by Maurus Cuelenaere | ||
11 | * | ||
12 | * All files in this archive are subject to the GNU General Public License. | ||
13 | * See the file COPYING in the source tree root for full license agreement. | ||
14 | * | ||
15 | * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY | ||
16 | * KIND, either express or implied. | ||
17 | * | ||
18 | ****************************************************************************/ | ||
19 | |||
20 | /* | ||
21 | * This config file is for the Creative Zen Vision | ||
22 | */ | ||
23 | #define TARGET_TREE /* this target is using the target tree system */ | ||
24 | |||
25 | #define CONFIG_SDRAM_START 0x00900000 | ||
26 | |||
27 | #define CREATIVE_ZV 1 | ||
28 | |||
29 | /* This makes it part of the Creative Zen Vision family :) */ | ||
30 | #define CREATIVE_ZVx 1 | ||
31 | |||
32 | /* For Rolo and boot loader */ | ||
33 | #define MODEL_NUMBER 28 | ||
34 | |||
35 | /* define this if you use an ATA controller */ | ||
36 | #define HAVE_ATA | ||
37 | |||
38 | /* define this if you have a bitmap LCD display */ | ||
39 | #define HAVE_LCD_BITMAP | ||
40 | |||
41 | /* define this if you have a colour LCD */ | ||
42 | #define HAVE_LCD_COLOR | ||
43 | |||
44 | /* define this if you have access to the quickscreen */ | ||
45 | #define HAVE_QUICKSCREEN | ||
46 | |||
47 | /* define this if you have access to the pitchscreen */ | ||
48 | #define HAVE_PITCHSCREEN | ||
49 | |||
50 | /* define this if you would like tagcache to build on this target */ | ||
51 | #define HAVE_TAGCACHE | ||
52 | |||
53 | /* define this if the target has volume keys which can be used in the lists */ | ||
54 | //#define HAVE_VOLUME_IN_LIST | ||
55 | |||
56 | /* LCD dimensions */ | ||
57 | #define CONFIG_LCD LCD_CREATIVEZVM | ||
58 | |||
59 | /* choose the lcd orientation. both work */ | ||
60 | #define CONFIG_ORIENTATION SCREEN_PORTRAIT | ||
61 | |||
62 | #define LCD_WIDTH 640 | ||
63 | #define LCD_HEIGHT 480 | ||
64 | |||
65 | #define LCD_DEPTH 16 /* 65k colours */ | ||
66 | #define LCD_PIXELFORMAT RGB565 /* rgb565 */ | ||
67 | |||
68 | /* Define this if your LCD can be enabled/disabled */ | ||
69 | #define HAVE_LCD_ENABLE | ||
70 | |||
71 | #define CONFIG_KEYPAD CREATIVEZVM_PAD | ||
72 | #define HAS_BUTTON_HOLD | ||
73 | #define HAVE_HEADPHONE_DETECTION | ||
74 | //#define HAVE_TOUCHPAD | ||
75 | |||
76 | #define CONFIG_I2C I2C_DM320 | ||
77 | |||
78 | /* Define this if you do software codec */ | ||
79 | #define CONFIG_CODEC SWCODEC | ||
80 | |||
81 | /* define this if you have a real-time clock */ | ||
82 | //#define CONFIG_RTC RTC_RX5X348AB | ||
83 | |||
84 | /* Define this for LCD backlight available */ | ||
85 | //#define HAVE_BACKLIGHT | ||
86 | |||
87 | //#define HAVE_BACKLIGHT_BRIGHTNESS | ||
88 | |||
89 | /* Main LCD backlight brightness range and defaults */ | ||
90 | //#define MIN_BRIGHTNESS_SETTING 0 | ||
91 | //#define MAX_BRIGHTNESS_SETTING 127 | ||
92 | //#define DEFAULT_BRIGHTNESS_SETTING 85 /* OF "full brightness" */ | ||
93 | //#define DEFAULT_DIMNESS_SETTING 22 /* OF "most dim" */ | ||
94 | |||
95 | /* Define this if you have a software controlled poweroff */ | ||
96 | //#define HAVE_SW_POWEROFF | ||
97 | //TODO: enable this back | ||
98 | |||
99 | /* The number of bytes reserved for loadable codecs */ | ||
100 | #define CODEC_SIZE 0x80000 | ||
101 | |||
102 | /* The number of bytes reserved for loadable plugins */ | ||
103 | #define PLUGIN_BUFFER_SIZE 0x100000 | ||
104 | |||
105 | /* Define this if you have the TLV320 audio codec -> controlled by the DSP */ | ||
106 | #define HAVE_TLV320 | ||
107 | |||
108 | #define CONFIG_I2C I2C_DM320 | ||
109 | |||
110 | /* TLV320 has no tone controls, so we use the software ones */ | ||
111 | #define HAVE_SW_TONE_CONTROLS | ||
112 | |||
113 | /*#define HW_SAMPR_CAPS (SAMPR_CAP_88 | SAMPR_CAP_44 | SAMPR_CAP_22 | \ | ||
114 | SAMPR_CAP_11)*/ | ||
115 | |||
116 | #define BATTERY_CAPACITY_DEFAULT 1250 /* default battery capacity */ | ||
117 | #define BATTERY_CAPACITY_MIN 500 /* min. capacity selectable */ | ||
118 | #define BATTERY_CAPACITY_MAX 2500 /* max. capacity selectable */ | ||
119 | #define BATTERY_CAPACITY_INC 100 /* capacity increment */ | ||
120 | #define BATTERY_TYPES_COUNT 1 /* only one type */ | ||
121 | |||
122 | /* Hardware controlled charging with monitoring */ | ||
123 | //#define CONFIG_CHARGING CHARGING_MONITOR | ||
124 | |||
125 | #ifndef SIMULATOR | ||
126 | |||
127 | /* Define this if you have a TI TMS320DM320 */ | ||
128 | #define CONFIG_CPU DM320 | ||
129 | |||
130 | /* define this if the hardware can be powered off while charging */ | ||
131 | #define HAVE_POWEROFF_WHILE_CHARGING | ||
132 | |||
133 | /* The size of the flash ROM */ | ||
134 | #define FLASH_SIZE 0x400000 | ||
135 | |||
136 | /* Define this to the CPU frequency */ | ||
137 | #define CPU_FREQ 16934400 | ||
138 | |||
139 | /* Define this if you have ATA power-off control */ | ||
140 | #define HAVE_ATA_POWER_OFF | ||
141 | |||
142 | /* Virtual LED (icon) */ | ||
143 | #define CONFIG_LED LED_VIRTUAL | ||
144 | |||
145 | /* define this if the backlight can be set to a brightness */ | ||
146 | //#define __BACKLIGHT_INIT | ||
147 | |||
148 | /* Offset ( in the firmware file's header ) to the file CRC */ | ||
149 | #define FIRMWARE_OFFSET_FILE_CRC 0 | ||
150 | |||
151 | /* Offset ( in the firmware file's header ) to the real data */ | ||
152 | #define FIRMWARE_OFFSET_FILE_DATA 8 | ||
153 | |||
154 | /* Define this if you have adjustable CPU frequency */ | ||
155 | /* #define HAVE_ADJUSTABLE_CPU_FREQ */ | ||
156 | |||
157 | #define BOOTFILE_EXT "zv" | ||
158 | #define BOOTFILE "rockbox." BOOTFILE_EXT | ||
159 | #define BOOTDIR "/.rockbox" | ||
160 | |||
161 | #define CONFIG_USBOTG USBOTG_ISP1583 | ||
162 | #define HAVE_USBSTACK | ||
163 | #define USB_VENDOR_ID 0x041e | ||
164 | #define USB_PRODUCT_ID 0x4133 | ||
165 | |||
166 | #endif /* SIMULATOR */ | ||
diff --git a/firmware/export/config-creativezvm.h b/firmware/export/config-creativezvm.h index 33a5105df7..ec5e1138e4 100644 --- a/firmware/export/config-creativezvm.h +++ b/firmware/export/config-creativezvm.h | |||
@@ -26,6 +26,9 @@ | |||
26 | 26 | ||
27 | #define CREATIVE_ZVM 1 | 27 | #define CREATIVE_ZVM 1 |
28 | 28 | ||
29 | /* This makes it part of the Creative Zen Vision family :) */ | ||
30 | #define CREATIVE_ZVx 1 | ||
31 | |||
29 | /* For Rolo and boot loader */ | 32 | /* For Rolo and boot loader */ |
30 | #define MODEL_NUMBER 26 | 33 | #define MODEL_NUMBER 26 |
31 | 34 | ||
@@ -56,13 +59,8 @@ | |||
56 | /* choose the lcd orientation. both work */ | 59 | /* choose the lcd orientation. both work */ |
57 | #define CONFIG_ORIENTATION SCREEN_PORTRAIT | 60 | #define CONFIG_ORIENTATION SCREEN_PORTRAIT |
58 | 61 | ||
59 | #ifdef ZEN_VISION | ||
60 | #define LCD_WIDTH 640 | ||
61 | #define LCD_HEIGHT 480 | ||
62 | #else | ||
63 | #define LCD_WIDTH 320 | 62 | #define LCD_WIDTH 320 |
64 | #define LCD_HEIGHT 240 | 63 | #define LCD_HEIGHT 240 |
65 | #endif | ||
66 | 64 | ||
67 | #define LCD_DEPTH 16 /* 65k colours */ | 65 | #define LCD_DEPTH 16 /* 65k colours */ |
68 | #define LCD_PIXELFORMAT RGB565 /* rgb565 */ | 66 | #define LCD_PIXELFORMAT RGB565 /* rgb565 */ |
@@ -156,13 +154,7 @@ | |||
156 | /* Define this if you have adjustable CPU frequency */ | 154 | /* Define this if you have adjustable CPU frequency */ |
157 | /* #define HAVE_ADJUSTABLE_CPU_FREQ */ | 155 | /* #define HAVE_ADJUSTABLE_CPU_FREQ */ |
158 | 156 | ||
159 | #ifdef ZEN_VISION | 157 | #define BOOTFILE_EXT "zvm" |
160 | #define BOOTFILE_EXT "zv" | ||
161 | #elseif defined(ZVM_60GB) | ||
162 | #define BOOTFILE_EXT "zvm60" | ||
163 | #else | ||
164 | #define BOOTFILE_EXT "zvm" | ||
165 | #endif | ||
166 | #define BOOTFILE "rockbox." BOOTFILE_EXT | 158 | #define BOOTFILE "rockbox." BOOTFILE_EXT |
167 | #define BOOTDIR "/.rockbox" | 159 | #define BOOTDIR "/.rockbox" |
168 | 160 | ||
diff --git a/firmware/export/config-creativezvm60gb.h b/firmware/export/config-creativezvm60gb.h new file mode 100644 index 0000000000..f8a71254fe --- /dev/null +++ b/firmware/export/config-creativezvm60gb.h | |||
@@ -0,0 +1,168 @@ | |||
1 | /*************************************************************************** | ||
2 | * __________ __ ___. | ||
3 | * Open \______ \ ____ ____ | | _\_ |__ _______ ___ | ||
4 | * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ / | ||
5 | * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < < | ||
6 | * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \ | ||
7 | * \/ \/ \/ \/ \/ | ||
8 | * $Id$ | ||
9 | * | ||
10 | * Copyright (C) 2008 by Maurus Cuelenaere | ||
11 | * | ||
12 | * All files in this archive are subject to the GNU General Public License. | ||
13 | * See the file COPYING in the source tree root for full license agreement. | ||
14 | * | ||
15 | * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY | ||
16 | * KIND, either express or implied. | ||
17 | * | ||
18 | ****************************************************************************/ | ||
19 | |||
20 | /* | ||
21 | * This config file is for the Creative Zen Vision:M 60GB | ||
22 | */ | ||
23 | #define TARGET_TREE /* this target is using the target tree system */ | ||
24 | |||
25 | #define CONFIG_SDRAM_START 0x00900000 | ||
26 | |||
27 | #define CREATIVE_ZVM60GB 1 | ||
28 | |||
29 | /* This makes it part of the Creative Zen Vision family :) */ | ||
30 | #define CREATIVE_ZVx 1 | ||
31 | |||
32 | /* For Rolo and boot loader */ | ||
33 | #define MODEL_NUMBER 27 | ||
34 | |||
35 | /* define this if you use an ATA controller */ | ||
36 | #define HAVE_ATA | ||
37 | |||
38 | /* define this if you have a bitmap LCD display */ | ||
39 | #define HAVE_LCD_BITMAP | ||
40 | |||
41 | /* define this if you have a colour LCD */ | ||
42 | #define HAVE_LCD_COLOR | ||
43 | |||
44 | /* define this if you have access to the quickscreen */ | ||
45 | #define HAVE_QUICKSCREEN | ||
46 | |||
47 | /* define this if you have access to the pitchscreen */ | ||
48 | #define HAVE_PITCHSCREEN | ||
49 | |||
50 | /* define this if you would like tagcache to build on this target */ | ||
51 | #define HAVE_TAGCACHE | ||
52 | |||
53 | /* define this if the target has volume keys which can be used in the lists */ | ||
54 | //#define HAVE_VOLUME_IN_LIST | ||
55 | |||
56 | /* LCD dimensions */ | ||
57 | #define CONFIG_LCD LCD_CREATIVEZVM | ||
58 | |||
59 | /* choose the lcd orientation. both work */ | ||
60 | #define CONFIG_ORIENTATION SCREEN_PORTRAIT | ||
61 | |||
62 | #define LCD_WIDTH 320 | ||
63 | #define LCD_HEIGHT 240 | ||
64 | |||
65 | #define LCD_DEPTH 16 /* 65k colours */ | ||
66 | #define LCD_PIXELFORMAT RGB565 /* rgb565 */ | ||
67 | |||
68 | /* Define this if your LCD can be enabled/disabled */ | ||
69 | #define HAVE_LCD_ENABLE | ||
70 | |||
71 | #define CONFIG_KEYPAD CREATIVEZVM_PAD | ||
72 | #define HAS_BUTTON_HOLD | ||
73 | #define HAVE_HEADPHONE_DETECTION | ||
74 | //#define HAVE_TOUCHPAD | ||
75 | |||
76 | #define CONFIG_I2C I2C_DM320 | ||
77 | |||
78 | /* Define this if you do software codec */ | ||
79 | #define CONFIG_CODEC SWCODEC | ||
80 | |||
81 | /* define this if you have a real-time clock */ | ||
82 | //#define CONFIG_RTC RTC_RX5X348AB | ||
83 | |||
84 | /* Define this for LCD backlight available */ | ||
85 | //#define HAVE_BACKLIGHT | ||
86 | |||
87 | //#define HAVE_BACKLIGHT_BRIGHTNESS | ||
88 | |||
89 | /* Main LCD backlight brightness range and defaults */ | ||
90 | //#define MIN_BRIGHTNESS_SETTING 0 | ||
91 | //#define MAX_BRIGHTNESS_SETTING 127 | ||
92 | //#define DEFAULT_BRIGHTNESS_SETTING 85 /* OF "full brightness" */ | ||
93 | //#define DEFAULT_DIMNESS_SETTING 22 /* OF "most dim" */ | ||
94 | |||
95 | /* Define this if you have a software controlled poweroff */ | ||
96 | //#define HAVE_SW_POWEROFF | ||
97 | //TODO: enable this back | ||
98 | |||
99 | /* The number of bytes reserved for loadable codecs */ | ||
100 | #define CODEC_SIZE 0x80000 | ||
101 | |||
102 | /* The number of bytes reserved for loadable plugins */ | ||
103 | #define PLUGIN_BUFFER_SIZE 0x100000 | ||
104 | |||
105 | /* Define this if you have the TLV320 audio codec -> controlled by the DSP */ | ||
106 | #define HAVE_TLV320 | ||
107 | |||
108 | #define CONFIG_I2C I2C_DM320 | ||
109 | |||
110 | /* TLV320 has no tone controls, so we use the software ones */ | ||
111 | #define HAVE_SW_TONE_CONTROLS | ||
112 | |||
113 | /*#define HW_SAMPR_CAPS (SAMPR_CAP_88 | SAMPR_CAP_44 | SAMPR_CAP_22 | \ | ||
114 | SAMPR_CAP_11)*/ | ||
115 | |||
116 | #define BATTERY_CAPACITY_DEFAULT 1250 /* default battery capacity */ | ||
117 | #define BATTERY_CAPACITY_MIN 500 /* min. capacity selectable */ | ||
118 | #define BATTERY_CAPACITY_MAX 2500 /* max. capacity selectable */ | ||
119 | #define BATTERY_CAPACITY_INC 100 /* capacity increment */ | ||
120 | #define BATTERY_TYPES_COUNT 1 /* only one type */ | ||
121 | |||
122 | /* Hardware controlled charging with monitoring */ | ||
123 | //#define CONFIG_CHARGING CHARGING_MONITOR | ||
124 | |||
125 | #ifndef SIMULATOR | ||
126 | |||
127 | /* Define this if you have a TI TMS320DM320 */ | ||
128 | #define CONFIG_CPU DM320 | ||
129 | |||
130 | /* define this if the hardware can be powered off while charging */ | ||
131 | #define HAVE_POWEROFF_WHILE_CHARGING | ||
132 | |||
133 | /* The size of the flash ROM */ | ||
134 | #define FLASH_SIZE 0x400000 | ||
135 | |||
136 | /* Define this to the CPU frequency */ | ||
137 | #define CPU_FREQ 16934400 | ||
138 | |||
139 | /* Define this if you have ATA power-off control */ | ||
140 | #define HAVE_ATA_POWER_OFF | ||
141 | |||
142 | /* Virtual LED (icon) */ | ||
143 | #define CONFIG_LED LED_VIRTUAL | ||
144 | |||
145 | /* define this if the backlight can be set to a brightness */ | ||
146 | //#define __BACKLIGHT_INIT | ||
147 | |||
148 | /* Offset ( in the firmware file's header ) to the file CRC */ | ||
149 | #define FIRMWARE_OFFSET_FILE_CRC 0 | ||
150 | |||
151 | /* Offset ( in the firmware file's header ) to the real data */ | ||
152 | #define FIRMWARE_OFFSET_FILE_DATA 8 | ||
153 | |||
154 | /* Define this if you have adjustable CPU frequency */ | ||
155 | /* #define HAVE_ADJUSTABLE_CPU_FREQ */ | ||
156 | |||
157 | #define BOOTFILE_EXT "zvm60" | ||
158 | #define BOOTFILE "rockbox." BOOTFILE_EXT | ||
159 | #define BOOTDIR "/.rockbox" | ||
160 | |||
161 | #if 0 | ||
162 | #define CONFIG_USBOTG USBOTG_ISP1761 | ||
163 | #define HAVE_USBSTACK | ||
164 | #define USB_VENDOR_ID 0x041e | ||
165 | #define USB_PRODUCT_ID 0x4133 | ||
166 | #endif | ||
167 | |||
168 | #endif /* SIMULATOR */ | ||
diff --git a/firmware/export/config.h b/firmware/export/config.h index e6b84f9aaa..595b731e0f 100644 --- a/firmware/export/config.h +++ b/firmware/export/config.h | |||
@@ -253,6 +253,10 @@ | |||
253 | #include "config-cowond2.h" | 253 | #include "config-cowond2.h" |
254 | #elif defined(CREATIVE_ZVM) | 254 | #elif defined(CREATIVE_ZVM) |
255 | #include "config-creativezvm.h" | 255 | #include "config-creativezvm.h" |
256 | #elif defined(CREATIVE_ZVM60GB) | ||
257 | #include "config-creativezvm60gb.h" | ||
258 | #elif defined(CREATIVE_ZV) | ||
259 | #include "config-creativezv.h" | ||
256 | #else | 260 | #else |
257 | /* no known platform */ | 261 | /* no known platform */ |
258 | #endif | 262 | #endif |
diff --git a/firmware/export/tlv320.h b/firmware/export/tlv320.h index 6d9f858321..3aed99285a 100644 --- a/firmware/export/tlv320.h +++ b/firmware/export/tlv320.h | |||
@@ -111,7 +111,7 @@ extern void audiohw_set_headphone_vol(int vol_l, int vol_r); | |||
111 | 111 | ||
112 | /* REG_SRC: Sample Rate Control */ | 112 | /* REG_SRC: Sample Rate Control */ |
113 | #define REG_SRC 0x8 | 113 | #define REG_SRC 0x8 |
114 | #define SRC_CLKIN (1 << 6) /* Clock input divider */ | 114 | #define SRC_CLKIN (1 << 6) /* Clock input divider */ |
115 | #define SRC_CLKOUT (1 << 7) /* Clock output divider */ | 115 | #define SRC_CLKOUT (1 << 7) /* Clock output divider */ |
116 | /*#define SRC_SR ()*/ | 116 | /*#define SRC_SR ()*/ |
117 | #define SRC_BOSR (1 << 1) /* Base oversampling rate, depends on SRC_USB */ | 117 | #define SRC_BOSR (1 << 1) /* Base oversampling rate, depends on SRC_USB */ |