summaryrefslogtreecommitdiff
path: root/firmware/export
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/export')
-rw-r--r--firmware/export/config.h29
-rw-r--r--firmware/export/config/iaudio7.h164
-rw-r--r--firmware/export/config/logikdax.h152
-rw-r--r--firmware/export/config/sansac100.h130
-rw-r--r--firmware/export/config/sansam200.h139
-rw-r--r--firmware/export/cpu.h3
-rw-r--r--firmware/export/tcc77x.h262
7 files changed, 3 insertions, 876 deletions
diff --git a/firmware/export/config.h b/firmware/export/config.h
index db1c589043..d23abfa086 100644
--- a/firmware/export/config.h
+++ b/firmware/export/config.h
@@ -68,9 +68,6 @@
68#define DSC25 25 68#define DSC25 25
69#define DM320 320 69#define DM320 320
70#define IMX31L 31 70#define IMX31L 31
71#define TCC770 770
72#define TCC771L 771
73#define TCC773L 773
74#define TCC7801 7801 71#define TCC7801 7801
75#define S5L8700 8700 72#define S5L8700 8700
76#define S5L8701 8701 73#define S5L8701 8701
@@ -113,15 +110,12 @@
113#define MROBE100_PAD 17 110#define MROBE100_PAD 17
114#define MROBE500_PAD 18 111#define MROBE500_PAD 18
115#define GIGABEAT_S_PAD 19 112#define GIGABEAT_S_PAD 19
116#define LOGIK_DAX_PAD 20
117#define IAUDIO67_PAD 21
118#define COWON_D2_PAD 22 113#define COWON_D2_PAD 22
119#define IAUDIO_M3_PAD 23 114#define IAUDIO_M3_PAD 23
120#define CREATIVEZVM_PAD 24 115#define CREATIVEZVM_PAD 24
121#define SANSA_M200_PAD 25 116#define SANSA_M200_PAD 25
122#define CREATIVEZV_PAD 26 117#define CREATIVEZV_PAD 26
123#define PHILIPS_SA9200_PAD 27 118#define PHILIPS_SA9200_PAD 27
124#define SANSA_C100_PAD 28
125#define PHILIPS_HDD1630_PAD 29 119#define PHILIPS_HDD1630_PAD 29
126#define MEIZU_M6SL_PAD 30 120#define MEIZU_M6SL_PAD 30
127#define ONDAVX747_PAD 31 121#define ONDAVX747_PAD 31
@@ -236,13 +230,11 @@
236#define LCD_C200 17 /* as used by Sandisk Sansa c200 */ 230#define LCD_C200 17 /* as used by Sandisk Sansa c200 */
237#define LCD_MROBE500 18 /* as used by Olympus M:Robe 500i */ 231#define LCD_MROBE500 18 /* as used by Olympus M:Robe 500i */
238#define LCD_MROBE100 19 /* as used by Olympus M:Robe 100 */ 232#define LCD_MROBE100 19 /* as used by Olympus M:Robe 100 */
239#define LCD_LOGIKDAX 20 /* as used by Logik DAX - SSD1815 */
240#define LCD_IAUDIO67 21 /* as used by iAudio 6/7 - unknown */
241#define LCD_CREATIVEZVM 22 /* as used by Creative Zen Vision:M */ 233#define LCD_CREATIVEZVM 22 /* as used by Creative Zen Vision:M */
242#define LCD_TL0350A 23 /* as used by the iAudio M3 remote, treated as main LCD */ 234#define LCD_TL0350A 23 /* as used by the iAudio M3 remote, treated as main LCD */
243#define LCD_COWOND2 24 /* as used by Cowon D2 - LTV250QV, TCC7801 driver */ 235#define LCD_COWOND2 24 /* as used by Cowon D2 - LTV250QV, TCC7801 driver */
244#define LCD_SA9200 25 /* as used by the Philips SA9200 */ 236#define LCD_SA9200 25 /* as used by the Philips SA9200 */
245#define LCD_S6B33B2 26 /* as used by the Sansa c100 */ 237#define LCD_S6B33B2 26 /* as used by the Samsumg YH820 */
246#define LCD_HDD1630 27 /* as used by the Philips HDD1630 */ 238#define LCD_HDD1630 27 /* as used by the Philips HDD1630 */
247#define LCD_MEIZUM6 28 /* as used by the Meizu M6SP and M6SL (various models) */ 239#define LCD_MEIZUM6 28 /* as used by the Meizu M6SP and M6SL (various models) */
248#define LCD_ONDAVX747 29 /* as used by the Onda VX747 */ 240#define LCD_ONDAVX747 29 /* as used by the Onda VX747 */
@@ -314,7 +306,6 @@ Lyre prototype 1 */
314#define I2C_S3C2440 7 306#define I2C_S3C2440 7
315#define I2C_PP5024 8 /* PP5024 style */ 307#define I2C_PP5024 8 /* PP5024 style */
316#define I2C_IMX31L 9 308#define I2C_IMX31L 9
317#define I2C_TCC77X 10
318#define I2C_TCC780X 11 309#define I2C_TCC780X 11
319#define I2C_DM320 12 /* DM320 style */ 310#define I2C_DM320 12 /* DM320 style */
320#define I2C_S5L8700 13 311#define I2C_S5L8700 13
@@ -347,7 +338,6 @@ Lyre prototype 1 */
347#define RTC_DS1339_DS3231 7 /* h1x0 RTC mod */ 338#define RTC_DS1339_DS3231 7 /* h1x0 RTC mod */
348#define RTC_IMX31L 8 339#define RTC_IMX31L 8
349#define RTC_RX5X348AB 9 340#define RTC_RX5X348AB 9
350#define RTC_TCC77X 10
351#define RTC_TCC780X 11 341#define RTC_TCC780X 11
352#define RTC_MR100 12 342#define RTC_MR100 12
353#define RTC_MC13783 13 /* Freescale MC13783 PMIC */ 343#define RTC_MC13783 13 /* Freescale MC13783 PMIC */
@@ -438,18 +428,12 @@ Lyre prototype 1 */
438#include "config/sansae200.h" 428#include "config/sansae200.h"
439#elif defined(SANSA_C200) 429#elif defined(SANSA_C200)
440#include "config/sansac200.h" 430#include "config/sansac200.h"
441#elif defined(SANSA_M200)
442#include "config/sansam200.h"
443#elif defined(TATUNG_TPJ1022) 431#elif defined(TATUNG_TPJ1022)
444#include "config/tatungtpj1022.h" 432#include "config/tatungtpj1022.h"
445#elif defined(MROBE_100) 433#elif defined(MROBE_100)
446#include "config/mrobe100.h" 434#include "config/mrobe100.h"
447#elif defined(MROBE_500) 435#elif defined(MROBE_500)
448#include "config/mrobe500.h" 436#include "config/mrobe500.h"
449#elif defined(LOGIK_DAX)
450#include "config/logikdax.h"
451#elif defined(IAUDIO_7)
452#include "config/iaudio7.h"
453#elif defined(COWON_D2) 437#elif defined(COWON_D2)
454#include "config/cowond2.h" 438#include "config/cowond2.h"
455#elif defined(CREATIVE_ZVM) 439#elif defined(CREATIVE_ZVM)
@@ -468,8 +452,6 @@ Lyre prototype 1 */
468#include "config/gogearhdd1630.h" 452#include "config/gogearhdd1630.h"
469#elif defined(PHILIPS_HDD6330) 453#elif defined(PHILIPS_HDD6330)
470#include "config/gogearhdd6330.h" 454#include "config/gogearhdd6330.h"
471#elif defined(SANSA_C100)
472#include "config/sansac100.h"
473#elif defined(MEIZU_M6SL) 455#elif defined(MEIZU_M6SL)
474#include "config/meizum6sl.h" 456#include "config/meizum6sl.h"
475#elif defined(MEIZU_M6SP) 457#elif defined(MEIZU_M6SP)
@@ -666,11 +648,6 @@ Lyre prototype 1 */
666#define CPU_S5L870X 648#define CPU_S5L870X
667#endif 649#endif
668 650
669/* define for all cpus from TCC77X family */
670#if (CONFIG_CPU == TCC771L) || (CONFIG_CPU == TCC773L) || (CONFIG_CPU == TCC770)
671#define CPU_TCC77X
672#endif
673
674/* define for all cpus from TCC780 family */ 651/* define for all cpus from TCC780 family */
675#if (CONFIG_CPU == TCC7801) 652#if (CONFIG_CPU == TCC7801)
676#define CPU_TCC780X 653#define CPU_TCC780X
@@ -1202,7 +1179,7 @@ Lyre prototype 1 */
1202 (CONFIG_USBOTG == USBOTG_RK27XX) 1179 (CONFIG_USBOTG == USBOTG_RK27XX)
1203#define USB_HAS_BULK 1180#define USB_HAS_BULK
1204#define USB_HAS_INTERRUPT 1181#define USB_HAS_INTERRUPT
1205#elif defined(CPU_TCC780X) || defined(CPU_TCC77X) 1182#elif defined(CPU_TCC780X)
1206#define USB_HAS_BULK 1183#define USB_HAS_BULK
1207#elif CONFIG_USBOTG == USBOTG_S3C6400X 1184#elif CONFIG_USBOTG == USBOTG_S3C6400X
1208#define USB_HAS_BULK 1185#define USB_HAS_BULK
@@ -1219,7 +1196,7 @@ Lyre prototype 1 */
1219 1196
1220/* enable usb storage for targets that do bootloader usb */ 1197/* enable usb storage for targets that do bootloader usb */
1221#if defined(HAVE_BOOTLOADER_USB_MODE) || \ 1198#if defined(HAVE_BOOTLOADER_USB_MODE) || \
1222 defined(CREATIVE_ZVx) || defined(CPU_TCC77X) || defined(CPU_TCC780X) || \ 1199 defined(CREATIVE_ZVx) || defined(CPU_TCC780X) || \
1223 CONFIG_USBOTG == USBOTG_JZ4740 || CONFIG_USBOTG == USBOTG_AS3525 || \ 1200 CONFIG_USBOTG == USBOTG_JZ4740 || CONFIG_USBOTG == USBOTG_AS3525 || \
1224 CONFIG_USBOTG == USBOTG_S3C6400X || CONFIG_USBOTG == USBOTG_DESIGNWARE || \ 1201 CONFIG_USBOTG == USBOTG_S3C6400X || CONFIG_USBOTG == USBOTG_DESIGNWARE || \
1225 CONFIG_USBOTG == USBOTG_JZ4760 1202 CONFIG_USBOTG == USBOTG_JZ4760
diff --git a/firmware/export/config/iaudio7.h b/firmware/export/config/iaudio7.h
deleted file mode 100644
index 698ff13724..0000000000
--- a/firmware/export/config/iaudio7.h
+++ /dev/null
@@ -1,164 +0,0 @@
1/*
2 * This config file is for the Iaudio7 series
3 */
4
5/* For Rolo and boot loader */
6#define MODEL_NUMBER 32
7#define MODEL_NAME "Cowon iAudio7"
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_FMRADIO)
15
16/* FM Tuner */
17#define CONFIG_TUNER LV24020LP
18#define HAVE_TUNER_PWR_CTRL
19
20/* Define this for FM radio input available */
21#define HAVE_FMRADIO_IN
22
23/* define hardware samples rate caps mask */
24#define HW_SAMPR_CAPS (/*SAMPR_CAP_88 | */SAMPR_CAP_44/* | SAMPR_CAP_22 | SAMPR_CAP_11*/)
25
26/* define the bitmask of recording sample rates */
27#define REC_SAMPR_CAPS (SAMPR_CAP_44/* | SAMPR_CAP_22 | SAMPR_CAP_11*/)
28
29
30
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
53/* define this if you have LCD enable function */
54#define HAVE_LCD_ENABLE
55
56/* define this if you would like tagcache to build on this target */
57#define HAVE_TAGCACHE
58
59#define HAVE_FAT16SUPPORT
60
61#if 0 && !defined(SIMULATOR) /* Enable for USB driver test */
62#define HAVE_USBSTACK
63#define USB_VENDOR_ID 0x0e21
64#define USB_PRODUCT_ID 0x0750
65#endif
66
67/* define this if you have a flash memory storage */
68#define HAVE_FLASH_STORAGE
69
70#define CONFIG_STORAGE STORAGE_NAND
71
72#define CONFIG_NAND NAND_TCC
73
74/* LCD dimensions */
75#define LCD_WIDTH 160
76#define LCD_HEIGHT 128
77/* sqrt(160^2 + 128^2) / 1.3 = 157.6 */
78#define LCD_DPI 158
79/* 16bits for now... */
80#define LCD_DEPTH 16 /* 262144 colours */
81#define LCD_PIXELFORMAT RGB565 /*rgb565*/
82
83/*#define LCD_PIXELFORMAT VERTICAL_PACKING*/
84
85/* define this to indicate your device's keypad */
86#define CONFIG_KEYPAD IAUDIO67_PAD
87
88/* #define HAVE_BUTTON_DATA */
89
90/* define this if you have a real-time clock */
91#define CONFIG_RTC RTC_PCF50606
92
93/* define this if you have RTC RAM available for settings */
94//#define HAVE_RTC_RAM
95
96/* Define this if you have a software controlled poweroff */
97#define HAVE_SW_POWEROFF
98
99/* Reduce Tremor's ICODE usage */
100#define ICODE_ATTR_TREMOR_NOT_MDCT
101
102/* The number of bytes reserved for loadable codecs */
103#define CODEC_SIZE 0x100000
104
105/* The number of bytes reserved for loadable plugins */
106#define PLUGIN_BUFFER_SIZE 0x80000
107
108#define AB_REPEAT_ENABLE
109
110
111
112
113/* The iaudio7 uses built-in WM8731 codec */
114#define HAVE_WM8731
115/* Codec is slave on serial bus */
116#define CODEC_SLAVE
117
118/* WM8731 has no tone controls, so we use the software ones */
119#define HAVE_SW_TONE_CONTROLS
120
121/* Define this for LCD backlight available */
122#define HAVE_BACKLIGHT
123
124#define CONFIG_I2C I2C_TCC77X
125
126#define BATTERY_CAPACITY_DEFAULT 540 /* default battery capacity */
127#define BATTERY_CAPACITY_MIN 540 /* min. capacity selectable */
128#define BATTERY_CAPACITY_MAX 540 /* max. capacity selectable */
129#define BATTERY_CAPACITY_INC 50 /* capacity increment */
130#define BATTERY_TYPES_COUNT 1 /* only one type */
131
132#define CONFIG_BATTERY_MEASURE VOLTAGE_MEASURE
133
134#define CONFIG_CHARGING CHARGING_SIMPLE
135
136/* Define this if you have a TCC770 */
137#define CONFIG_CPU TCC770
138
139/* Define this if you have ATA power-off control */
140#define HAVE_ATA_POWER_OFF
141
142/* Define this to the CPU frequency */
143#define CPU_FREQ 120000000
144
145/* Offset ( in the firmware file's header ) to the file CRC */
146#define FIRMWARE_OFFSET_FILE_CRC 0
147
148/* Offset ( in the firmware file's header ) to the real data */
149#define FIRMWARE_OFFSET_FILE_DATA 8
150
151#define CONFIG_LCD LCD_IAUDIO67
152
153#define BOOTFILE_EXT "iaudio"
154#define BOOTFILE "rockbox." BOOTFILE_EXT
155#define BOOTDIR "/.rockbox"
156
157#ifdef BOOTLOADER
158#define TCCBOOT
159#endif
160
161#define IRAM_LCDFRAMEBUFFER IBSS_ATTR /* put the lcd frame buffer in IRAM */
162
163/* Define this if a programmable hotkey is mapped */
164//#define HAVE_HOTKEY
diff --git a/firmware/export/config/logikdax.h b/firmware/export/config/logikdax.h
deleted file mode 100644
index 47229f7a1d..0000000000
--- a/firmware/export/config/logikdax.h
+++ /dev/null
@@ -1,152 +0,0 @@
1/*
2 * This config file is for the Logik DAX MP3/DAB
3 */
4
5/* For Rolo and boot loader */
6#define MODEL_NUMBER 33
7
8#define MODEL_NAME "Logik DAX MP3/DAB"
9
10/* define this if you have recording possibility */
11//#define HAVE_RECORDING
12
13/* Define bitmask of input sources - recordable bitmask can be defined
14 explicitly if different */
15//#define INPUT_SRC_CAPS (SRC_CAP_MIC | SRC_CAP_LINEIN | SRC_CAP_SPDIF)
16
17#if 0 /* Enable for USB driver test */
18#define HAVE_USBSTACK
19#define USB_VENDOR_ID 0x13d1
20#define USB_PRODUCT_ID 0x1002
21#endif
22
23
24
25
26
27/* define this if you can flip your LCD */
28#define HAVE_LCD_FLIP
29
30/* define this if you can invert the colours on your LCD */
31#define HAVE_LCD_INVERT
32
33/* define this if you have access to the quickscreen */
34#define HAVE_QUICKSCREEN
35
36/* define this if you would like tagcache to build on this target */
37#define HAVE_TAGCACHE
38
39#define HAVE_FAT16SUPPORT
40
41/* define this if you have a flash memory storage */
42#define HAVE_FLASH_STORAGE
43
44#define CONFIG_STORAGE STORAGE_NAND
45
46#define CONFIG_NAND NAND_TCC
47
48/* LCD dimensions */
49#define LCD_WIDTH 128
50#define LCD_HEIGHT 64
51/* sqrt(128^2 + 64^2) / 1.0 = 143.1 */
52#define LCD_DPI 143
53#define LCD_DEPTH 1
54
55#define LCD_PIXELFORMAT VERTICAL_PACKING
56
57/* Display colours, for screenshots and sim (0xRRGGBB) */
58#define LCD_DARKCOLOR 0x000000
59#define LCD_BRIGHTCOLOR 0x5a915a
60#define LCD_BL_DARKCOLOR 0x000000
61#define LCD_BL_BRIGHTCOLOR 0x82b4fa
62
63/* define this to indicate your device's keypad */
64#define CONFIG_KEYPAD LOGIK_DAX_PAD
65
66/* define this if you have a real-time clock */
67#define CONFIG_RTC RTC_TCC77X
68
69/* define this if you have RTC RAM available for settings */
70//#define HAVE_RTC_RAM
71
72/* Define this if you have a software controlled poweroff */
73#define HAVE_SW_POWEROFF
74
75/* The number of bytes reserved for loadable codecs */
76#define CODEC_SIZE 0x38000
77
78/* The number of bytes reserved for loadable plugins */
79#define PLUGIN_BUFFER_SIZE 0x10000
80
81#define AB_REPEAT_ENABLE
82
83
84
85
86/* The DAX uses built-in WM8731 codec */
87#define HAVE_WM8731
88/* Codec is slave on serial bus */
89#define CODEC_SLAVE
90/* WM8731 has no tone controls, so we use the software ones */
91#define HAVE_SW_TONE_CONTROLS
92
93/* Define this for LCD backlight available */
94#define HAVE_BACKLIGHT
95
96#define CONFIG_I2C I2C_TCC77X
97
98#define BATTERY_CAPACITY_DEFAULT 1500 /* default battery capacity */
99#define BATTERY_CAPACITY_MIN 1500 /* min. capacity selectable */
100#define BATTERY_CAPACITY_MAX 3200 /* max. capacity selectable */
101#define BATTERY_CAPACITY_INC 50 /* capacity increment */
102#define BATTERY_TYPES_COUNT 1 /* only one type */
103
104#define CONFIG_BATTERY_MEASURE VOLTAGE_MEASURE
105
106/* define this if the unit should not shut down on low battery. */
107#define NO_LOW_BATTERY_SHUTDOWN
108
109/* Define this if you have a TCC773L */
110#define CONFIG_CPU TCC773L
111
112/* Define this if you have ATA power-off control */
113#define HAVE_ATA_POWER_OFF
114
115#define HAVE_FAT16SUPPORT
116
117/* Define this to the CPU frequency */
118#define CPU_FREQ 120000000
119
120/* Offset ( in the firmware file's header ) to the file length */
121#define FIRMWARE_OFFSET_FILE_LENGTH 0
122
123/* Offset ( in the firmware file's header ) to the file CRC */
124#define FIRMWARE_OFFSET_FILE_CRC 4
125
126/* Offset ( in the firmware file's header ) to the real data */
127#define FIRMWARE_OFFSET_FILE_DATA 6
128
129/* The start address index for ROM builds */
130/* #define ROM_START 0x11010 for behind original Archos */
131#define ROM_START 0x7010 /* for behind BootBox */
132
133#define CONFIG_LCD LCD_SSD1815
134
135#define BOOTFILE_EXT "logik"
136#define BOOTFILE "rockbox." BOOTFILE_EXT
137#define BOOTDIR "/"
138
139#define IBSS_ATTR_VOICE_STACK
140#define ICODE_ATTR_TREMOR_NOT_MDCT
141#define ICODE_ATTR_TREMOR_MDCT
142#define ICODE_ATTR_FLAC
143#define IBSS_ATTR_FLAC_DECODED0
144#define ICONST_ATTR_MPA_HUFFMAN
145#define IBSS_ATTR_MPC_SAMPLE_BUF
146#define ICODE_ATTR_ALAC
147#define IBSS_ATTR_SHORTEN_DECODED0
148
149#define IRAM_LCDFRAMEBUFFER IBSS_ATTR /* put the lcd frame buffer in IRAM */
150
151/* Define this if a programmable hotkey is mapped */
152//#define HAVE_HOTKEY
diff --git a/firmware/export/config/sansac100.h b/firmware/export/config/sansac100.h
deleted file mode 100644
index c2956eed12..0000000000
--- a/firmware/export/config/sansac100.h
+++ /dev/null
@@ -1,130 +0,0 @@
1/*
2 * This config file is for the Sansa C100 series
3 */
4
5#define MODEL_NAME "Sandisk Sansa c100 series"
6
7/* For Rolo and bootloader */
8#define MODEL_NUMBER 30
9
10/* define hardware samples rate caps mask */
11#define HW_SAMPR_CAPS (/*SAMPR_CAP_88 | */SAMPR_CAP_44/* | SAMPR_CAP_22 | SAMPR_CAP_11*/)
12
13
14
15
16/* define this if you have a colour LCD */
17#define HAVE_LCD_COLOR
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
28/* define this if you would like tagcache to build on this target */
29#define HAVE_TAGCACHE
30
31/* define this if you have a flash memory storage */
32#define HAVE_FLASH_STORAGE
33
34/* Only v1 */
35#define CONFIG_STORAGE STORAGE_NAND
36#define CONFIG_NAND NAND_TCC
37
38/* c100's with direct-to-NAND access are FAT16 */
39#define HAVE_FAT16SUPPORT
40
41/* LCD dimensions */
42#define LCD_WIDTH 128
43#define LCD_HEIGHT 64
44/* sqrt(128^2 + 64^2) / 1.7 = 84.2 */
45#define LCD_DPI 84
46#define LCD_DEPTH 16 /* 65536 colours */
47#define LCD_PIXELFORMAT RGB565 /*rgb565*/
48
49/*#define LCD_PIXELFORMAT VERTICAL_PACKING*/
50
51/* define this to indicate your device's keypad */
52#define CONFIG_KEYPAD SANSA_C100_PAD
53
54/* define this if you have a real-time clock */
55#define CONFIG_RTC RTC_TCC77X
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 0x50000
65
66/* The number of bytes reserved for loadable plugins */
67#define PLUGIN_BUFFER_SIZE 0x50000
68
69#define AB_REPEAT_ENABLE
70
71
72
73
74/* Define this if you have the TLV320 audio codec */
75#define HAVE_TLV320
76
77/*#define CONFIG_TUNER TEA5767*/
78
79/* TLV320 has no tone controls, so we use the software ones */
80#define HAVE_SW_TONE_CONTROLS
81
82/* Define this for LCD backlight available */
83#define HAVE_BACKLIGHT
84
85#define CONFIG_I2C I2C_TCC77X
86
87#define BATTERY_CAPACITY_DEFAULT 540 /* default battery capacity */
88#define BATTERY_CAPACITY_MIN 540 /* min. capacity selectable */
89#define BATTERY_CAPACITY_MAX 540 /* max. capacity selectable */
90#define BATTERY_CAPACITY_INC 50 /* capacity increment */
91#define BATTERY_TYPES_COUNT 1 /* only one type */
92
93#define CONFIG_BATTERY_MEASURE VOLTAGE_MEASURE
94
95/* define this if the unit should not shut down on low battery. */
96#define NO_LOW_BATTERY_SHUTDOWN
97
98/* Define this if you have a TCC770 */
99#define CONFIG_CPU TCC770
100
101/* Define this if you have ATA power-off control */
102#define HAVE_ATA_POWER_OFF
103
104/* Define this to the CPU frequency */
105#define CPU_FREQ 120000000
106
107/* Offset ( in the firmware file's header ) to the file CRC */
108#define FIRMWARE_OFFSET_FILE_CRC 0
109
110/* Offset ( in the firmware file's header ) to the real data */
111#define FIRMWARE_OFFSET_FILE_DATA 8
112
113/* The start address index for ROM builds */
114/* #define ROM_START 0x11010 for behind original Archos */
115#define ROM_START 0x7010 /* for behind BootBox */
116
117#define CONFIG_LCD LCD_S6B33B2
118
119#define BOOTFILE_EXT "c100"
120#define BOOTFILE "rockbox." BOOTFILE_EXT
121#define BOOTDIR "/.rockbox"
122
123#ifdef BOOTLOADER
124#define TCCBOOT
125#endif
126
127#define IRAM_LCDFRAMEBUFFER IBSS_ATTR /* put the lcd frame buffer in IRAM */
128
129/* Define this if a programmable hotkey is mapped */
130#define HAVE_HOTKEY
diff --git a/firmware/export/config/sansam200.h b/firmware/export/config/sansam200.h
deleted file mode 100644
index 95647013e7..0000000000
--- a/firmware/export/config/sansam200.h
+++ /dev/null
@@ -1,139 +0,0 @@
1/*
2 * This config file is for the Sansa M200 series
3 */
4
5/* For Rolo and boot loader */
6#define MODEL_NUMBER 29
7
8#define MODEL_NAME "Sandisk Sansa m200 series"
9
10/* Enable FAT16 support */
11#define HAVE_FAT16SUPPORT
12
13/* define this if you have recording possibility */
14//#define HAVE_RECORDING
15
16/* Define bitmask of input sources - recordable bitmask can be defined
17 explicitly if different */
18//#define INPUT_SRC_CAPS (SRC_CAP_MIC | SRC_CAP_LINEIN | SRC_CAP_SPDIF)
19
20
21
22
23/* define this if you can flip your LCD */
24#define HAVE_LCD_FLIP
25
26/* define this if you can invert the colours on your LCD */
27#define HAVE_LCD_INVERT
28
29/* define this if you have access to the quickscreen */
30#define HAVE_QUICKSCREEN
31
32/* define this if you would like tagcache to build on this target */
33#define HAVE_TAGCACHE
34
35/* define this if you have a flash memory storage */
36#define HAVE_FLASH_STORAGE
37
38#define CONFIG_STORAGE STORAGE_NAND
39
40#define CONFIG_NAND NAND_TCC
41
42/* LCD dimensions */
43#define LCD_WIDTH 128
44#define LCD_HEIGHT 64
45/* sqrt(128^2 + 64^2) / 1.8 = 79.5 */
46#define LCD_DPI 80
47#define LCD_DEPTH 1
48
49#define LCD_PIXELFORMAT VERTICAL_PACKING
50
51/* Display colours, for screenshots and sim (0xRRGGBB) */
52#define LCD_BARKCOLOR 0x000000
53#define LCD_BRIGHTCOLOR 0x5e6854
54#define LCD_BL_DARKCOLOR 0x000000
55#define LCD_BL_BRIGHTCOLOR 0x3ca0e6
56
57/* define this to indicate your device's keypad */
58#define CONFIG_KEYPAD SANSA_M200_PAD
59
60/* Define this to enable morse code input */
61#define HAVE_MORSE_INPUT
62
63/* define this if you have a real-time clock */
64#define CONFIG_RTC RTC_TCC77X
65
66/* define this if you have RTC RAM available for settings */
67//#define HAVE_RTC_RAM
68
69/* Define this if you have a software controlled poweroff */
70#define HAVE_SW_POWEROFF
71
72/* The number of bytes reserved for loadable codecs */
73#define CODEC_SIZE 0x38000
74
75/* The number of bytes reserved for loadable plugins */
76#define PLUGIN_BUFFER_SIZE 0x10000
77
78#define AB_REPEAT_ENABLE
79
80
81
82
83/* Define this if you have the TLV320 audio codec */
84#define HAVE_TLV320
85
86/* TLV320 has no tone controls, so we use the software ones */
87#define HAVE_SW_TONE_CONTROLS
88
89/* Define this for LCD backlight available */
90#define HAVE_BACKLIGHT
91
92#define CONFIG_I2C I2C_TCC77X
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 CONFIG_BATTERY_MEASURE VOLTAGE_MEASURE
101
102/* define this if the unit should not shut down on low battery. */
103#define NO_LOW_BATTERY_SHUTDOWN
104
105/* Define this if you have a TCC770 */
106#define CONFIG_CPU TCC770
107
108/* Define this if you have ATA power-off control */
109#define HAVE_ATA_POWER_OFF
110
111/* Define this to the CPU frequency */
112#define CPU_FREQ 120000000
113
114/* Offset ( in the firmware file's header ) to the file CRC */
115#define FIRMWARE_OFFSET_FILE_CRC 0
116
117/* Offset ( in the firmware file's header ) to the real data */
118#define FIRMWARE_OFFSET_FILE_DATA 8
119
120#define CONFIG_LCD LCD_SSD1815
121
122#define BOOTFILE_EXT "m200"
123#define BOOTFILE "rockbox." BOOTFILE_EXT
124#define BOOTDIR "/"
125
126#define IBSS_ATTR_VOICE_STACK
127#define ICODE_ATTR_TREMOR_NOT_MDCT
128#define ICODE_ATTR_TREMOR_MDCT
129#define ICODE_ATTR_FLAC
130#define IBSS_ATTR_FLAC_DECODED0
131#define ICONST_ATTR_MPA_HUFFMAN
132#define IBSS_ATTR_MPC_SAMPLE_BUF
133#define ICODE_ATTR_ALAC
134#define IBSS_ATTR_SHORTEN_DECODED0
135
136#define IRAM_LCDFRAMEBUFFER IBSS_ATTR /* put the lcd frame buffer in IRAM */
137
138/* Define this if a programmable hotkey is mapped */
139#define HAVE_HOTKEY
diff --git a/firmware/export/cpu.h b/firmware/export/cpu.h
index aade199dd2..e862cedb74 100644
--- a/firmware/export/cpu.h
+++ b/firmware/export/cpu.h
@@ -50,9 +50,6 @@
50#if CONFIG_CPU == IMX31L 50#if CONFIG_CPU == IMX31L
51#include "imx31l.h" 51#include "imx31l.h"
52#endif 52#endif
53#ifdef CPU_TCC77X
54#include "tcc77x.h"
55#endif
56#ifdef CPU_TCC780X 53#ifdef CPU_TCC780X
57#include "tcc780x.h" 54#include "tcc780x.h"
58#endif 55#endif
diff --git a/firmware/export/tcc77x.h b/firmware/export/tcc77x.h
deleted file mode 100644
index 3c457c5b38..0000000000
--- a/firmware/export/tcc77x.h
+++ /dev/null
@@ -1,262 +0,0 @@
1/***************************************************************************
2 * __________ __ ___.
3 * Open \______ \ ____ ____ | | _\_ |__ _______ ___
4 * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
5 * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
6 * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
7 * \/ \/ \/ \/ \/
8 * $Id$
9 *
10 * Copyright (C) 2007 Dave Chapman
11 *
12 * This program is free software; you can redistribute it and/or
13 * modify it under the terms of the GNU General Public License
14 * as published by the Free Software Foundation; either version 2
15 * of the License, or (at your option) any later version.
16 *
17 * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
18 * KIND, either express or implied.
19 *
20 ****************************************************************************/
21#ifndef __TCC77X_H__
22#define __TCC77X_H__
23
24#define CACHEALIGN_BITS (5)
25
26/* General-purpose IO */
27
28#define GPIOA (*(volatile unsigned long *)0x80000300)
29#define GPIOB (*(volatile unsigned long *)0x80000310)
30#define GPIOC (*(volatile unsigned long *)0x80000320)
31#define GPIOD (*(volatile unsigned long *)0x80000330)
32#define GPIOE (*(volatile unsigned long *)0x80000340)
33
34#define GPIOA_DIR (*(volatile unsigned long *)0x80000304)
35#define GPIOB_DIR (*(volatile unsigned long *)0x80000314)
36#define GPIOC_DIR (*(volatile unsigned long *)0x80000324)
37#define GPIOD_DIR (*(volatile unsigned long *)0x80000334)
38#define GPIOE_DIR (*(volatile unsigned long *)0x80000344)
39
40#define GPIOA_FUNC (*(volatile unsigned long *)0x80000308)
41#define GPIOB_FUNC (*(volatile unsigned long *)0x80000318)
42#define GPIOC_FUNC (*(volatile unsigned long *)0x80000328)
43#define GPIOD_FUNC (*(volatile unsigned long *)0x80000338)
44#define GPIOE_FUNC (*(volatile unsigned long *)0x80000348)
45
46#define BMI (*(volatile unsigned long *)0x80000364)
47
48/* Clock Generator */
49
50#define CLKCTRL (*(volatile unsigned long *)0x80000400)
51#define PLL0CFG (*(volatile unsigned long *)0x80000404)
52#define CLKDIVC (*(volatile unsigned long *)0x8000040c)
53#define MODECTR (*(volatile unsigned long *)0x80000410)
54#define BCLKCTR (*(volatile unsigned long *)0x80000414)
55#define SWRESET (*(volatile unsigned long *)0x80000418)
56#define PCLKCFG0 (*(volatile unsigned long *)0x8000041c)
57#define PCLKCFG1 (*(volatile unsigned long *)0x80000420)
58#define PCLKCFG2 (*(volatile unsigned long *)0x80000424)
59#define PCLKCFG3 (*(volatile unsigned long *)0x80000428)
60#define PCLKCFG4 (*(volatile unsigned long *)0x8000042c)
61#define PCLKCFG5 (*(volatile unsigned long *)0x80000430)
62#define PCLKCFG6 (*(volatile unsigned long *)0x80000434)
63
64#define PCLK_DAI PCLKCFG6
65
66/* Device bits for SWRESET & BCLKCTR */
67
68#define DEV_DAI (1<<0)
69#define DEV_USBD (1<<4)
70#define DEV_ECC (1<<9)
71#define DEV_NAND (1<<16)
72
73/* ADC */
74
75#define ADCCON (*(volatile unsigned long *)0x80000a00)
76#define ADCDATA (*(volatile unsigned long *)0x80000a04)
77#define ADCCONA (*(volatile unsigned long *)0x80000a80)
78#define ADCSTATUS (*(volatile unsigned long *)0x80000a84)
79#define ADCCFG (*(volatile unsigned long *)0x80000a88)
80
81
82/* Memory Controller */
83#define SDCFG (*(volatile unsigned long *)0xf0000000)
84#define SDFSM (*(volatile unsigned long *)0xf0000004)
85#define MCFG (*(volatile unsigned long *)0xf0000008)
86#define TST (*(volatile unsigned long *)0xf000000c)
87#define CSCFG0 (*(volatile unsigned long *)0xf0000010)
88#define CSCFG1 (*(volatile unsigned long *)0xf0000014)
89#define CSCFG2 (*(volatile unsigned long *)0xf0000018)
90#define CSCFG3 (*(volatile unsigned long *)0xf000001c)
91#define CLKCFG (*(volatile unsigned long *)0xf0000020)
92#define SDCMD (*(volatile unsigned long *)0xf0000024)
93
94
95/* IRQ Controller */
96#define EXT0_IRQ_MASK (1<<0)
97#define EXT1_IRQ_MASK (1<<1)
98#define EXT2_IRQ_MASK (1<<2)
99#define EXT3_IRQ_MASK (1<<3)
100#define I2SR_IRQ_MASK (1<<4)
101#define I2ST_IRQ_MASK (1<<5)
102#define TIMER0_IRQ_MASK (1<<6)
103#define USBD_IRQ_MASK (1<<8) /* USB 2.0 device */
104#define USBH_IRQ_MASK (1<<10) /* USB 1.1 host */
105#define ADC_IRQ_MASK (1<<16)
106#define USB_DMA_IRQ_MASK (1<<26) /* USB DMA */
107#define ECC_IRQ_MASK (1<<27)
108
109#define DAI_RX_IRQ_MASK I2SR_IRQ_MASK
110#define DAI_TX_IRQ_MASK I2ST_IRQ_MASK
111
112#define USB_DMA_IRQ_MASK (1<<26) /* USB DMA */
113
114#define IEN (*(volatile unsigned long *)0x80000100)
115#define CREQ (*(volatile unsigned long *)0x80000104)
116#define IREQ (*(volatile unsigned long *)0x80000108)
117#define IRQSEL (*(volatile unsigned long *)0x8000010c)
118#define ICFG (*(volatile unsigned long *)0x80000110)
119#define MREQ (*(volatile unsigned long *)0x80000114)
120#define TSTREQ (*(volatile unsigned long *)0x80000118)
121#define IRQ (*(volatile unsigned long *)0x80000120)
122#define FIQ (*(volatile unsigned long *)0x80000124)
123#define MIRQ (*(volatile unsigned long *)0x80000128)
124#define MFIQ (*(volatile unsigned long *)0x8000012c)
125#define TMODE (*(volatile unsigned long *)0x80000130)
126#define SYNC (*(volatile unsigned long *)0x80000134)
127#define WKUP (*(volatile unsigned long *)0x80000138)
128
129/* Timer Controller */
130
131#define TCFG0 (*(volatile unsigned long *)0x80000200)
132#define TCNT0 (*(volatile unsigned long *)0x80000204)
133#define TREF0 (*(volatile unsigned long *)0x80000208)
134#define TMREF0 (*(volatile unsigned long *)0x8000020c)
135#define TCFG1 (*(volatile unsigned long *)0x80000210)
136#define TCNT1 (*(volatile unsigned long *)0x80000214)
137#define TREF1 (*(volatile unsigned long *)0x80000218)
138#define TMREF1 (*(volatile unsigned long *)0x8000021c)
139#define TCFG2 (*(volatile unsigned long *)0x80000220)
140#define TCNT2 (*(volatile unsigned long *)0x80000224)
141#define TREF2 (*(volatile unsigned long *)0x80000228)
142#define TMREF2 (*(volatile unsigned long *)0x8000022c)
143#define TCFG3 (*(volatile unsigned long *)0x80000230)
144#define TCNT3 (*(volatile unsigned long *)0x80000234)
145#define TREF3 (*(volatile unsigned long *)0x80000238)
146#define TMREF3 (*(volatile unsigned long *)0x8000023c)
147#define TCFG4 (*(volatile unsigned long *)0x80000240)
148#define TCNT4 (*(volatile unsigned long *)0x80000244)
149#define TREF4 (*(volatile unsigned long *)0x80000248)
150#define TCFG5 (*(volatile unsigned long *)0x80000250)
151#define TCNT5 (*(volatile unsigned long *)0x80000254)
152#define TREF5 (*(volatile unsigned long *)0x80000258)
153#define TIREQ (*(volatile unsigned long *)0x80000260)
154#define TWDCFG (*(volatile unsigned long *)0x80000270)
155#define TWDCLR (*(volatile unsigned long *)0x80000274)
156#define TC32EN (*(volatile unsigned long *)0x80000280)
157#define TC32LDV (*(volatile unsigned long *)0x80000284)
158#define TC32CMP0 (*(volatile unsigned long *)0x80000288)
159#define TC32CMP1 (*(volatile unsigned long *)0x8000028c)
160#define TC32PCNT (*(volatile unsigned long *)0x80000290)
161#define TC32MCNT (*(volatile unsigned long *)0x80000294)
162#define TC32IRQ (*(volatile unsigned long *)0x80000298)
163
164/* TIREQ flags */
165#define TF0 (1<<8) /* Timer 0 reference value reached */
166#define TF1 (1<<9) /* Timer 1 reference value reached */
167#define TI0 (1<<0) /* Timer 0 IRQ flag */
168#define TI1 (1<<1) /* Timer 1 IRQ flag */
169
170/* NAND Flash Controller */
171
172#define NFC_CMD (*(volatile unsigned long *)0x90000000)
173#define NFC_SADDR (*(volatile unsigned long *)0x9000000C)
174#define NFC_SDATA (*(volatile unsigned long *)0x90000040)
175#define NFC_WDATA (*(volatile unsigned long *)0x90000010)
176#define NFC_CTRL (*(volatile unsigned long *)0x90000050)
177 #define NFC_16BIT (1<<26)
178 #define NFC_CS0 (1<<23)
179 #define NFC_CS1 (1<<22)
180 #define NFC_READY (1<<20)
181#define NFC_IREQ (*(volatile unsigned long *)0x90000060)
182#define NFC_RST (*(volatile unsigned long *)0x90000064)
183
184
185/* ECC controller */
186
187#define ECC_CTRL (*(volatile unsigned long *)0x80000900)
188 #define ECC_DMA_REQ (1<<28)
189 #define ECC_ENC (1<<27) /* MLC ECC3/4 */
190 #define ECC_READY (1<<26)
191 #define ECC_IEN (1<<25)
192 #define ECC_MANUAL (1<<22)
193 #define ECC_WCNT (1<<12) /* [21:12] */
194 #define ECC_HOLD (1<<7)
195 #define ECC_M4EN (1<<6)
196 #define ECC_ZERO (1<<5)
197 #define ECC_M3EN (1<<4)
198 #define ECC_CNT_MASK (7<<1)
199 #define ECC_CNT (1<<1)
200 #define ECC_SLC (1<<0)
201
202#define ECC_BASE (*(volatile unsigned long *)0x80000904)
203#define ECC_MASK (*(volatile unsigned long *)0x80000908)
204#define ECC_CLR (*(volatile unsigned long *)0x8000090c)
205#define SLC_ECC0 (*(volatile unsigned long *)0x80000910)
206#define SLC_ECC1 (*(volatile unsigned long *)0x80000914)
207#define SLC_ECC2 (*(volatile unsigned long *)0x80000918)
208#define SLC_ECC3 (*(volatile unsigned long *)0x8000091c)
209#define SLC_ECC4 (*(volatile unsigned long *)0x80000920)
210#define SLC_ECC5 (*(volatile unsigned long *)0x80000924)
211#define SLC_ECC6 (*(volatile unsigned long *)0x80000928)
212#define SLC_ECC7 (*(volatile unsigned long *)0x8000092c)
213#define MLC_ECC0W (*(volatile unsigned long *)0x80000930)
214#define MLC_ECC1W (*(volatile unsigned long *)0x80000934)
215#define MLC_ECC2W (*(volatile unsigned long *)0x80000938)
216#define MLC_ECC0R (*(volatile unsigned long *)0x80000940)
217#define MLC_ECC1R (*(volatile unsigned long *)0x80000944)
218#define MLC_ECC2R (*(volatile unsigned long *)0x80000948)
219#define ECC_CORR_START (*(volatile unsigned long *)0x8000094c)
220#define ECC_ERRADDR(x) (*(volatile unsigned long *)(0x80000950+4*(x)))
221#define ECC_ERRDATA(x) (*(volatile unsigned long *)(0x80000960+4*(x)))
222#define ECC_ERR_NUM (*(volatile unsigned long *)0x80000970)
223
224
225/* Digital Audio Interface */
226#define DADI_L0 (*(volatile unsigned long *)0x80000000)
227#define DADI_R0 (*(volatile unsigned long *)0x80000004)
228#define DADI_L1 (*(volatile unsigned long *)0x80000008)
229#define DADI_R1 (*(volatile unsigned long *)0x8000000C)
230#define DADI_L2 (*(volatile unsigned long *)0x80000010)
231#define DADI_R2 (*(volatile unsigned long *)0x80000014)
232#define DADI_L3 (*(volatile unsigned long *)0x80000018)
233#define DADI_R3 (*(volatile unsigned long *)0x8000001c)
234
235#define DADO_L0 (*(volatile unsigned long *)0x80000020)
236#define DADO_R0 (*(volatile unsigned long *)0x80000024)
237#define DADO_L1 (*(volatile unsigned long *)0x80000028)
238#define DADO_R1 (*(volatile unsigned long *)0x8000002C)
239#define DADO_L2 (*(volatile unsigned long *)0x80000030)
240#define DADO_R2 (*(volatile unsigned long *)0x80000034)
241#define DADO_L3 (*(volatile unsigned long *)0x80000038)
242#define DADO_R3 (*(volatile unsigned long *)0x8000003c)
243
244#define DAMR (*(volatile unsigned long *)0x80000040)
245#define DAVC (*(volatile unsigned long *)0x80000044)
246
247#define DADI_L(x) (*(volatile unsigned long *)(0x80000000 + (x) * 8))
248#define DADI_R(x) (*(volatile unsigned long *)(0x80000004 + (x) * 8))
249#define DADO_L(x) (*(volatile unsigned long *)(0x80000020 + (x) * 8))
250#define DADO_R(x) (*(volatile unsigned long *)(0x80000024 + (x) * 8))
251
252/* USB 2.0 device system MMR base address */
253#define USB_BASE 0x90000b00
254
255#define USB_NUM_ENDPOINTS 3
256#define USB_DEVBSS_ATTR IBSS_ATTR
257
258/* Timer frequency */
259/* timers are based on XIN (12Mhz) */
260#define TIMER_FREQ (12000000)
261
262#endif