diff options
Diffstat (limited to 'firmware/export')
-rw-r--r-- | firmware/export/config-logikdax.h | 107 | ||||
-rw-r--r-- | firmware/export/config.h | 21 | ||||
-rw-r--r-- | firmware/export/cpu.h | 3 | ||||
-rw-r--r-- | firmware/export/tcc77x.h | 81 |
4 files changed, 211 insertions, 1 deletions
diff --git a/firmware/export/config-logikdax.h b/firmware/export/config-logikdax.h new file mode 100644 index 0000000000..384dac4e11 --- /dev/null +++ b/firmware/export/config-logikdax.h | |||
@@ -0,0 +1,107 @@ | |||
1 | /* | ||
2 | * This config file is for the Logik DAX MP3/DAB | ||
3 | */ | ||
4 | #define TARGET_TREE /* this target is using the target tree system */ | ||
5 | |||
6 | /* For Rolo and boot loader */ | ||
7 | #define MODEL_NUMBER 23 | ||
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 can flip your LCD */ | ||
20 | #define HAVE_LCD_FLIP | ||
21 | |||
22 | /* define this if you can invert the colours on your LCD */ | ||
23 | #define HAVE_LCD_INVERT | ||
24 | |||
25 | /* define this if you have access to the quickscreen */ | ||
26 | #define HAVE_QUICKSCREEN | ||
27 | /* define this if you have access to the pitchscreen */ | ||
28 | #define HAVE_PITCHSCREEN | ||
29 | |||
30 | /* define this if you would like tagcache to build on this target */ | ||
31 | #define HAVE_TAGCACHE | ||
32 | |||
33 | /* define this if you have a flash memory storage */ | ||
34 | #define HAVE_FLASH_STORAGE | ||
35 | |||
36 | /* LCD dimensions */ | ||
37 | #define LCD_WIDTH 128 | ||
38 | #define LCD_HEIGHT 64 | ||
39 | #define LCD_DEPTH 1 | ||
40 | |||
41 | #define LCD_PIXELFORMAT VERTICAL_PACKING | ||
42 | |||
43 | /* define this to indicate your device's keypad */ | ||
44 | #define CONFIG_KEYPAD LOGIK_DAX_PAD | ||
45 | |||
46 | /* define this if you have a real-time clock */ | ||
47 | #define CONFIG_RTC RTC_TCC77X | ||
48 | |||
49 | /* define this if you have RTC RAM available for settings */ | ||
50 | //#define HAVE_RTC_RAM | ||
51 | |||
52 | /* The number of bytes reserved for loadable plugins */ | ||
53 | #define PLUGIN_BUFFER_SIZE 0x8000 | ||
54 | |||
55 | #define AB_REPEAT_ENABLE 1 | ||
56 | |||
57 | /* Define this if you do software codec */ | ||
58 | #define CONFIG_CODEC SWCODEC | ||
59 | |||
60 | /* Define this for LCD backlight available */ | ||
61 | #define HAVE_BACKLIGHT | ||
62 | |||
63 | #define CONFIG_I2C I2C_TCC77X | ||
64 | |||
65 | #define BATTERY_CAPACITY_DEFAULT 1500 /* default battery capacity */ | ||
66 | #define BATTERY_CAPACITY_MIN 1500 /* min. capacity selectable */ | ||
67 | #define BATTERY_CAPACITY_MAX 3200 /* max. capacity selectable */ | ||
68 | #define BATTERY_CAPACITY_INC 50 /* capacity increment */ | ||
69 | #define BATTERY_TYPES_COUNT 1 /* only one type */ | ||
70 | |||
71 | /* define this if the unit should not shut down on low battery. */ | ||
72 | #define NO_LOW_BATTERY_SHUTDOWN | ||
73 | |||
74 | #ifndef SIMULATOR | ||
75 | |||
76 | /* Define this if you have a TCC773L */ | ||
77 | #define CONFIG_CPU TCC773L | ||
78 | |||
79 | /* Define this if you have ATA power-off control */ | ||
80 | #define HAVE_ATA_POWER_OFF | ||
81 | |||
82 | /* Define this to the CPU frequency */ | ||
83 | #define CPU_FREQ 120000000 | ||
84 | |||
85 | /* Offset ( in the firmware file's header ) to the file length */ | ||
86 | #define FIRMWARE_OFFSET_FILE_LENGTH 0 | ||
87 | |||
88 | /* Offset ( in the firmware file's header ) to the file CRC */ | ||
89 | #define FIRMWARE_OFFSET_FILE_CRC 4 | ||
90 | |||
91 | /* Offset ( in the firmware file's header ) to the real data */ | ||
92 | #define FIRMWARE_OFFSET_FILE_DATA 6 | ||
93 | |||
94 | /* The start address index for ROM builds */ | ||
95 | /* #define ROM_START 0x11010 for behind original Archos */ | ||
96 | #define ROM_START 0x7010 /* for behind BootBox */ | ||
97 | |||
98 | /* Software controlled LED */ | ||
99 | #define CONFIG_LED LED_VIRTUAL | ||
100 | |||
101 | #define CONFIG_LCD LCD_SSD1815 | ||
102 | |||
103 | #define BOOTFILE_EXT "logik" | ||
104 | #define BOOTFILE "rockbox." BOOTFILE_EXT | ||
105 | #define BOOTDIR "/" | ||
106 | |||
107 | #endif /* SIMULATOR */ | ||
diff --git a/firmware/export/config.h b/firmware/export/config.h index 05938d14ec..538c75d08a 100644 --- a/firmware/export/config.h +++ b/firmware/export/config.h | |||
@@ -51,6 +51,8 @@ | |||
51 | #define DSC25 25 | 51 | #define DSC25 25 |
52 | #define DM320 320 | 52 | #define DM320 320 |
53 | #define IMX31L 31 | 53 | #define IMX31L 31 |
54 | #define TCC771L 771 | ||
55 | #define TCC773L 773 | ||
54 | 56 | ||
55 | /* CONFIG_KEYPAD */ | 57 | /* CONFIG_KEYPAD */ |
56 | #define PLAYER_PAD 1 | 58 | #define PLAYER_PAD 1 |
@@ -71,6 +73,8 @@ | |||
71 | #define ARCHOS_AV300_PAD 16 | 73 | #define ARCHOS_AV300_PAD 16 |
72 | #define MROBE500_PAD 17 | 74 | #define MROBE500_PAD 17 |
73 | #define GIGABEAT_S_PAD 18 | 75 | #define GIGABEAT_S_PAD 18 |
76 | #define LOGIK_DAX_PAD 19 | ||
77 | #define IAUDIO67_PAD 20 | ||
74 | 78 | ||
75 | /* CONFIG_REMOTE_KEYPAD */ | 79 | /* CONFIG_REMOTE_KEYPAD */ |
76 | #define H100_REMOTE 1 | 80 | #define H100_REMOTE 1 |
@@ -103,6 +107,8 @@ | |||
103 | #define LCD_DSC25 16 /* as used by Archos AV300 */ | 107 | #define LCD_DSC25 16 /* as used by Archos AV300 */ |
104 | #define LCD_C200 17 /* as used by Sandisk Sansa c200 */ | 108 | #define LCD_C200 17 /* as used by Sandisk Sansa c200 */ |
105 | #define LCD_MROBE500 18 /* as used by Olympus M:Robe 500i */ | 109 | #define LCD_MROBE500 18 /* as used by Olympus M:Robe 500i */ |
110 | #define LCD_LOGIKDAX 19 /* as used by Logik DAX - SSD1815 */ | ||
111 | #define LCD_IAUDIO67 20 /* as used by iAudio 6/7 - unknown */ | ||
106 | 112 | ||
107 | /* LCD_PIXELFORMAT */ | 113 | /* LCD_PIXELFORMAT */ |
108 | #define HORIZONTAL_PACKING 1 | 114 | #define HORIZONTAL_PACKING 1 |
@@ -122,6 +128,7 @@ | |||
122 | #define I2C_S3C2440 7 | 128 | #define I2C_S3C2440 7 |
123 | #define I2C_PP5024 8 /* PP5024 style */ | 129 | #define I2C_PP5024 8 /* PP5024 style */ |
124 | #define I2C_IMX31L 9 | 130 | #define I2C_IMX31L 9 |
131 | #define I2C_TCC77X 10 | ||
125 | 132 | ||
126 | /* CONFIG_LED */ | 133 | /* CONFIG_LED */ |
127 | #define LED_REAL 1 /* SW controlled LED (Archos recorders, player) */ | 134 | #define LED_REAL 1 /* SW controlled LED (Archos recorders, player) */ |
@@ -141,6 +148,7 @@ | |||
141 | #define RTC_DS1339_DS3231 7 /* h1x0 RTC mod */ | 148 | #define RTC_DS1339_DS3231 7 /* h1x0 RTC mod */ |
142 | #define RTC_IMX31L 8 | 149 | #define RTC_IMX31L 8 |
143 | #define RTC_RX5X348AB 9 | 150 | #define RTC_RX5X348AB 9 |
151 | #define RTC_TCC77X 10 | ||
144 | 152 | ||
145 | /* USB On-the-go */ | 153 | /* USB On-the-go */ |
146 | #define USBOTG_ISP1362 1362 /* iriver H300 */ | 154 | #define USBOTG_ISP1362 1362 /* iriver H300 */ |
@@ -210,6 +218,10 @@ | |||
210 | #include "config-tpj1022.h" | 218 | #include "config-tpj1022.h" |
211 | #elif defined(MROBE_500) | 219 | #elif defined(MROBE_500) |
212 | #include "config-mrobe500.h" | 220 | #include "config-mrobe500.h" |
221 | #elif defined(LOGIK_DAX) | ||
222 | #include "config-logikdax.h" | ||
223 | #elif defined(IAUDIO_7) | ||
224 | #include "config-iaudio7.h" | ||
213 | #else | 225 | #else |
214 | /* no known platform */ | 226 | /* no known platform */ |
215 | #endif | 227 | #endif |
@@ -309,6 +321,11 @@ | |||
309 | #define CPU_PP502x | 321 | #define CPU_PP502x |
310 | #endif | 322 | #endif |
311 | 323 | ||
324 | /* define for all cpus from TCC77X family */ | ||
325 | #if (CONFIG_CPU == TCC771L) || (CONFIG_CPU == TCC773L) | ||
326 | #define CPU_TCC77X | ||
327 | #endif | ||
328 | |||
312 | /* define for all cpus from ARM7TDMI family (for specific optimisations) */ | 329 | /* define for all cpus from ARM7TDMI family (for specific optimisations) */ |
313 | #if defined(CPU_PP) || (CONFIG_CPU == PNX0101) || (CONFIG_CPU == DSC25) | 330 | #if defined(CPU_PP) || (CONFIG_CPU == PNX0101) || (CONFIG_CPU == DSC25) |
314 | #define CPU_ARM7TDMI | 331 | #define CPU_ARM7TDMI |
@@ -316,7 +333,8 @@ | |||
316 | 333 | ||
317 | /* define for all cpus from ARM family */ | 334 | /* define for all cpus from ARM family */ |
318 | #if defined(CPU_PP) || (CONFIG_CPU == PNX0101) || (CONFIG_CPU == S3C2440) \ | 335 | #if defined(CPU_PP) || (CONFIG_CPU == PNX0101) || (CONFIG_CPU == S3C2440) \ |
319 | || (CONFIG_CPU == DSC25) || (CONFIG_CPU == IMX31L) || (CONFIG_CPU == DM320) | 336 | || (CONFIG_CPU == DSC25) || (CONFIG_CPU == IMX31L) || (CONFIG_CPU == DM320) \ |
337 | || defined(CPU_TCC77X) | ||
320 | #define CPU_ARM | 338 | #define CPU_ARM |
321 | #endif | 339 | #endif |
322 | 340 | ||
@@ -342,6 +360,7 @@ | |||
342 | (((CONFIG_CPU == SH7034) && !defined(PLUGIN)) || /* SH1 archos: core only */ \ | 360 | (((CONFIG_CPU == SH7034) && !defined(PLUGIN)) || /* SH1 archos: core only */ \ |
343 | defined(CPU_COLDFIRE) || /* Coldfire: core, plugins, codecs */ \ | 361 | defined(CPU_COLDFIRE) || /* Coldfire: core, plugins, codecs */ \ |
344 | defined(CPU_PP) || /* PortalPlayer: core, plugins, codecs */ \ | 362 | defined(CPU_PP) || /* PortalPlayer: core, plugins, codecs */ \ |
363 | defined(CPU_TCC77X) || /* Telechips: core, plugins, codecs */ \ | ||
345 | (CONFIG_CPU == PNX0101)) | 364 | (CONFIG_CPU == PNX0101)) |
346 | #define ICODE_ATTR __attribute__ ((section(".icode"))) | 365 | #define ICODE_ATTR __attribute__ ((section(".icode"))) |
347 | #define ICONST_ATTR __attribute__ ((section(".irodata"))) | 366 | #define ICONST_ATTR __attribute__ ((section(".irodata"))) |
diff --git a/firmware/export/cpu.h b/firmware/export/cpu.h index 893e7ffaa8..84229378ec 100644 --- a/firmware/export/cpu.h +++ b/firmware/export/cpu.h | |||
@@ -48,3 +48,6 @@ | |||
48 | #if CONFIG_CPU == IMX31L | 48 | #if CONFIG_CPU == IMX31L |
49 | #include "imx31l.h" | 49 | #include "imx31l.h" |
50 | #endif | 50 | #endif |
51 | #ifdef CPU_TCC77X | ||
52 | #include "tcc77x.h" | ||
53 | #endif | ||
diff --git a/firmware/export/tcc77x.h b/firmware/export/tcc77x.h new file mode 100644 index 0000000000..1ab1888649 --- /dev/null +++ b/firmware/export/tcc77x.h | |||
@@ -0,0 +1,81 @@ | |||
1 | /*************************************************************************** | ||
2 | * __________ __ ___. | ||
3 | * Open \______ \ ____ ____ | | _\_ |__ _______ ___ | ||
4 | * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ / | ||
5 | * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < < | ||
6 | * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \ | ||
7 | * \/ \/ \/ \/ \/ | ||
8 | * $Id$ | ||
9 | * | ||
10 | * Copyright (C) 2007 Dave Chapman | ||
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 | #ifndef __TCC77X_H__ | ||
20 | #define __TCC77X_H__ | ||
21 | |||
22 | /* General-purpose IO */ | ||
23 | |||
24 | #define GPIOA (*(volatile unsigned long *)0x80000300) | ||
25 | #define GPIOB (*(volatile unsigned long *)0x80000310) | ||
26 | #define GPIOC (*(volatile unsigned long *)0x80000320) | ||
27 | #define GPIOD (*(volatile unsigned long *)0x80000330) | ||
28 | #define GPIOE (*(volatile unsigned long *)0x80000340) | ||
29 | |||
30 | #define GPIOA_DIR (*(volatile unsigned long *)0x80000304) | ||
31 | #define GPIOB_DIR (*(volatile unsigned long *)0x80000314) | ||
32 | #define GPIOC_DIR (*(volatile unsigned long *)0x80000324) | ||
33 | #define GPIOD_DIR (*(volatile unsigned long *)0x80000334) | ||
34 | #define GPIOE_DIR (*(volatile unsigned long *)0x80000344) | ||
35 | |||
36 | #define GPIOA_FUNC (*(volatile unsigned long *)0x80000308) | ||
37 | #define GPIOB_FUNC (*(volatile unsigned long *)0x80000318) | ||
38 | #define GPIOC_FUNC (*(volatile unsigned long *)0x80000328) | ||
39 | #define GPIOD_FUNC (*(volatile unsigned long *)0x80000338) | ||
40 | #define GPIOE_FUNC (*(volatile unsigned long *)0x80000348) | ||
41 | |||
42 | #define BMI (*(volatile unsigned long *)0x80000364) | ||
43 | |||
44 | /* Clock Generator */ | ||
45 | |||
46 | #define CLKCTRL (*(volatile unsigned long *)0x80000400) | ||
47 | #define PLL0CFG (*(volatile unsigned long *)0x80000404) | ||
48 | #define CLKDIV0 (*(volatile unsigned long *)0x8000040c) | ||
49 | #define MODECTR (*(volatile unsigned long *)0x80000410) | ||
50 | #define BCLKCTR (*(volatile unsigned long *)0x80000414) | ||
51 | #define SWRESET (*(volatile unsigned long *)0x80000418) | ||
52 | #define PCLKCFG0 (*(volatile unsigned long *)0x8000041c) | ||
53 | #define PCLKCFG1 (*(volatile unsigned long *)0x80000420) | ||
54 | #define PCLKCFG2 (*(volatile unsigned long *)0x80000424) | ||
55 | #define PCLKCFG3 (*(volatile unsigned long *)0x80000428) | ||
56 | #define PCLKCFG4 (*(volatile unsigned long *)0x8000042c) | ||
57 | #define PCLKCFG5 (*(volatile unsigned long *)0x80000430) | ||
58 | #define PCLKCFG6 (*(volatile unsigned long *)0x80000434) | ||
59 | |||
60 | /* ADC */ | ||
61 | |||
62 | #define ADCCON (*(volatile unsigned long *)0x80000a00) | ||
63 | #define ADCDATA (*(volatile unsigned long *)0x80000a04) | ||
64 | #define ADCCONA (*(volatile unsigned long *)0x80000a80) | ||
65 | #define ADCSTATUS (*(volatile unsigned long *)0x80000a84) | ||
66 | #define ADCCFG (*(volatile unsigned long *)0x80000a88) | ||
67 | |||
68 | |||
69 | /* Memory Controller */ | ||
70 | #define SDCFG (*(volatile unsigned long *)0xf0000000) | ||
71 | #define SDFSM (*(volatile unsigned long *)0xf0000004) | ||
72 | #define MCFG (*(volatile unsigned long *)0xf0000008) | ||
73 | #define TST (*(volatile unsigned long *)0xf000000c) | ||
74 | #define CSCFG0 (*(volatile unsigned long *)0xf0000010) | ||
75 | #define CSCFG1 (*(volatile unsigned long *)0xf0000014) | ||
76 | #define CSCFG2 (*(volatile unsigned long *)0xf0000018) | ||
77 | #define CSCFG3 (*(volatile unsigned long *)0xf000001c) | ||
78 | #define CLKCFG (*(volatile unsigned long *)0xf0000020) | ||
79 | #define SDCMD (*(volatile unsigned long *)0xf0000024) | ||
80 | |||
81 | #endif | ||