diff options
Diffstat (limited to 'firmware/export')
-rw-r--r-- | firmware/export/config-logikdax.h | 2 | ||||
-rw-r--r-- | firmware/export/config-m200.h | 116 | ||||
-rw-r--r-- | firmware/export/config.h | 3 | ||||
-rw-r--r-- | firmware/export/tcc77x.h | 63 | ||||
-rw-r--r-- | firmware/export/timer.h | 3 |
5 files changed, 184 insertions, 3 deletions
diff --git a/firmware/export/config-logikdax.h b/firmware/export/config-logikdax.h index 8c6509cdaf..175bf7ccdf 100644 --- a/firmware/export/config-logikdax.h +++ b/firmware/export/config-logikdax.h | |||
@@ -4,7 +4,7 @@ | |||
4 | #define TARGET_TREE /* this target is using the target tree system */ | 4 | #define TARGET_TREE /* this target is using the target tree system */ |
5 | 5 | ||
6 | /* For Rolo and boot loader */ | 6 | /* For Rolo and boot loader */ |
7 | #define MODEL_NUMBER 23 | 7 | #define MODEL_NUMBER 27 |
8 | 8 | ||
9 | /* define this if you have recording possibility */ | 9 | /* define this if you have recording possibility */ |
10 | //#define HAVE_RECORDING | 10 | //#define HAVE_RECORDING |
diff --git a/firmware/export/config-m200.h b/firmware/export/config-m200.h new file mode 100644 index 0000000000..760474d628 --- /dev/null +++ b/firmware/export/config-m200.h | |||
@@ -0,0 +1,116 @@ | |||
1 | /* | ||
2 | * This config file is for the Sansa M200 series | ||
3 | */ | ||
4 | #define TARGET_TREE /* this target is using the target tree system */ | ||
5 | |||
6 | /* For Rolo and boot loader */ | ||
7 | #define MODEL_NUMBER 28 | ||
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 SANSA_M200_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 | /* Define this if you have a software controlled poweroff */ | ||
53 | #define HAVE_SW_POWEROFF | ||
54 | |||
55 | /* The number of bytes reserved for loadable plugins */ | ||
56 | #define PLUGIN_BUFFER_SIZE 0x8000 | ||
57 | |||
58 | #define AB_REPEAT_ENABLE 1 | ||
59 | |||
60 | /* Define this if you do software codec */ | ||
61 | #define CONFIG_CODEC SWCODEC | ||
62 | |||
63 | /* Define this if you have the TLV320 audio codec */ | ||
64 | #define HAVE_TLV320 | ||
65 | |||
66 | /* TLV320 has no tone controls, so we use the software ones */ | ||
67 | #define HAVE_SW_TONE_CONTROLS | ||
68 | |||
69 | /* Define this for LCD backlight available */ | ||
70 | #define HAVE_BACKLIGHT | ||
71 | |||
72 | #define CONFIG_I2C I2C_TCC77X | ||
73 | |||
74 | #define BATTERY_CAPACITY_DEFAULT 1500 /* default battery capacity */ | ||
75 | #define BATTERY_CAPACITY_MIN 1500 /* min. capacity selectable */ | ||
76 | #define BATTERY_CAPACITY_MAX 3200 /* max. capacity selectable */ | ||
77 | #define BATTERY_CAPACITY_INC 50 /* capacity increment */ | ||
78 | #define BATTERY_TYPES_COUNT 1 /* only one type */ | ||
79 | |||
80 | /* define this if the unit should not shut down on low battery. */ | ||
81 | #define NO_LOW_BATTERY_SHUTDOWN | ||
82 | |||
83 | #ifndef SIMULATOR | ||
84 | |||
85 | /* Define this if you have a TCC773L */ | ||
86 | #define CONFIG_CPU TCC773L | ||
87 | |||
88 | /* Define this if you have ATA power-off control */ | ||
89 | #define HAVE_ATA_POWER_OFF | ||
90 | |||
91 | /* Define this to the CPU frequency */ | ||
92 | #define CPU_FREQ 120000000 | ||
93 | |||
94 | /* Offset ( in the firmware file's header ) to the file length */ | ||
95 | #define FIRMWARE_OFFSET_FILE_LENGTH 0 | ||
96 | |||
97 | /* Offset ( in the firmware file's header ) to the file CRC */ | ||
98 | #define FIRMWARE_OFFSET_FILE_CRC 4 | ||
99 | |||
100 | /* Offset ( in the firmware file's header ) to the real data */ | ||
101 | #define FIRMWARE_OFFSET_FILE_DATA 6 | ||
102 | |||
103 | /* The start address index for ROM builds */ | ||
104 | /* #define ROM_START 0x11010 for behind original Archos */ | ||
105 | #define ROM_START 0x7010 /* for behind BootBox */ | ||
106 | |||
107 | /* Software controlled LED */ | ||
108 | #define CONFIG_LED LED_VIRTUAL | ||
109 | |||
110 | #define CONFIG_LCD LCD_SSD1815 | ||
111 | |||
112 | #define BOOTFILE_EXT "m200" | ||
113 | #define BOOTFILE "rockbox." BOOTFILE_EXT | ||
114 | #define BOOTDIR "/" | ||
115 | |||
116 | #endif /* SIMULATOR */ | ||
diff --git a/firmware/export/config.h b/firmware/export/config.h index 565f8950ff..e6b84f9aaa 100644 --- a/firmware/export/config.h +++ b/firmware/export/config.h | |||
@@ -80,6 +80,7 @@ | |||
80 | #define COWOND2_PAD 22 | 80 | #define COWOND2_PAD 22 |
81 | #define IAUDIO_M3_PAD 23 | 81 | #define IAUDIO_M3_PAD 23 |
82 | #define CREATIVEZVM_PAD 24 | 82 | #define CREATIVEZVM_PAD 24 |
83 | #define SANSA_M200_PAD 25 | ||
83 | 84 | ||
84 | /* CONFIG_REMOTE_KEYPAD */ | 85 | /* CONFIG_REMOTE_KEYPAD */ |
85 | #define H100_REMOTE 1 | 86 | #define H100_REMOTE 1 |
@@ -236,6 +237,8 @@ | |||
236 | #include "config-e200.h" | 237 | #include "config-e200.h" |
237 | #elif defined(SANSA_C200) | 238 | #elif defined(SANSA_C200) |
238 | #include "config-c200.h" | 239 | #include "config-c200.h" |
240 | #elif defined(SANSA_M200) | ||
241 | #include "config-m200.h" | ||
239 | #elif defined(ELIO_TPJ1022) | 242 | #elif defined(ELIO_TPJ1022) |
240 | #include "config-tpj1022.h" | 243 | #include "config-tpj1022.h" |
241 | #elif defined(MROBE_100) | 244 | #elif defined(MROBE_100) |
diff --git a/firmware/export/tcc77x.h b/firmware/export/tcc77x.h index 1ab1888649..bde8ca255f 100644 --- a/firmware/export/tcc77x.h +++ b/firmware/export/tcc77x.h | |||
@@ -45,7 +45,7 @@ | |||
45 | 45 | ||
46 | #define CLKCTRL (*(volatile unsigned long *)0x80000400) | 46 | #define CLKCTRL (*(volatile unsigned long *)0x80000400) |
47 | #define PLL0CFG (*(volatile unsigned long *)0x80000404) | 47 | #define PLL0CFG (*(volatile unsigned long *)0x80000404) |
48 | #define CLKDIV0 (*(volatile unsigned long *)0x8000040c) | 48 | #define CLKDIVC (*(volatile unsigned long *)0x8000040c) |
49 | #define MODECTR (*(volatile unsigned long *)0x80000410) | 49 | #define MODECTR (*(volatile unsigned long *)0x80000410) |
50 | #define BCLKCTR (*(volatile unsigned long *)0x80000414) | 50 | #define BCLKCTR (*(volatile unsigned long *)0x80000414) |
51 | #define SWRESET (*(volatile unsigned long *)0x80000418) | 51 | #define SWRESET (*(volatile unsigned long *)0x80000418) |
@@ -78,4 +78,65 @@ | |||
78 | #define CLKCFG (*(volatile unsigned long *)0xf0000020) | 78 | #define CLKCFG (*(volatile unsigned long *)0xf0000020) |
79 | #define SDCMD (*(volatile unsigned long *)0xf0000024) | 79 | #define SDCMD (*(volatile unsigned long *)0xf0000024) |
80 | 80 | ||
81 | |||
82 | /* IRQ Controller */ | ||
83 | |||
84 | #define TIMER0_IRQ_MASK (1<<6) | ||
85 | |||
86 | #define IEN (*(volatile unsigned long *)0x80000100) | ||
87 | #define CREQ (*(volatile unsigned long *)0x80000104) | ||
88 | #define IREQ (*(volatile unsigned long *)0x80000108) | ||
89 | #define IRQSEL (*(volatile unsigned long *)0x8000010c) | ||
90 | #define ICFG (*(volatile unsigned long *)0x80000110) | ||
91 | #define MREQ (*(volatile unsigned long *)0x80000114) | ||
92 | #define TSTREQ (*(volatile unsigned long *)0x80000118) | ||
93 | #define IRQ (*(volatile unsigned long *)0x80000120) | ||
94 | #define FIQ (*(volatile unsigned long *)0x80000124) | ||
95 | #define MIRQ (*(volatile unsigned long *)0x80000128) | ||
96 | #define MFIQ (*(volatile unsigned long *)0x8000012c) | ||
97 | #define TMODE (*(volatile unsigned long *)0x80000130) | ||
98 | #define SYNC (*(volatile unsigned long *)0x80000134) | ||
99 | #define WKUP (*(volatile unsigned long *)0x80000138) | ||
100 | |||
101 | /* Timer Controller */ | ||
102 | |||
103 | #define TCFG0 (*(volatile unsigned long *)0x80000200) | ||
104 | #define TCNT0 (*(volatile unsigned long *)0x80000204) | ||
105 | #define TREF0 (*(volatile unsigned long *)0x80000208) | ||
106 | #define TMREF0 (*(volatile unsigned long *)0x8000020c) | ||
107 | #define TCFG1 (*(volatile unsigned long *)0x80000210) | ||
108 | #define TCNT1 (*(volatile unsigned long *)0x80000214) | ||
109 | #define TREF1 (*(volatile unsigned long *)0x80000218) | ||
110 | #define TMREF1 (*(volatile unsigned long *)0x8000021c) | ||
111 | #define TCFG2 (*(volatile unsigned long *)0x80000220) | ||
112 | #define TCNT2 (*(volatile unsigned long *)0x80000224) | ||
113 | #define TREF2 (*(volatile unsigned long *)0x80000228) | ||
114 | #define TMREF2 (*(volatile unsigned long *)0x8000022c) | ||
115 | #define TCFG3 (*(volatile unsigned long *)0x80000230) | ||
116 | #define TCNT3 (*(volatile unsigned long *)0x80000234) | ||
117 | #define TREF3 (*(volatile unsigned long *)0x80000238) | ||
118 | #define TMREF3 (*(volatile unsigned long *)0x8000023c) | ||
119 | #define TCFG4 (*(volatile unsigned long *)0x80000240) | ||
120 | #define TCNT4 (*(volatile unsigned long *)0x80000244) | ||
121 | #define TREF4 (*(volatile unsigned long *)0x80000248) | ||
122 | #define TCFG5 (*(volatile unsigned long *)0x80000250) | ||
123 | #define TCNT5 (*(volatile unsigned long *)0x80000254) | ||
124 | #define TREF5 (*(volatile unsigned long *)0x80000258) | ||
125 | #define TIREQ (*(volatile unsigned long *)0x80000260) | ||
126 | #define TWDCFG (*(volatile unsigned long *)0x80000270) | ||
127 | #define TWDCLR (*(volatile unsigned long *)0x80000274) | ||
128 | #define TC32EN (*(volatile unsigned long *)0x80000280) | ||
129 | #define TC32LDV (*(volatile unsigned long *)0x80000284) | ||
130 | #define TC32CMP0 (*(volatile unsigned long *)0x80000288) | ||
131 | #define TC32CMP1 (*(volatile unsigned long *)0x8000028c) | ||
132 | #define TC32PCNT (*(volatile unsigned long *)0x80000290) | ||
133 | #define TC32MCNT (*(volatile unsigned long *)0x80000294) | ||
134 | #define TC32IRQ (*(volatile unsigned long *)0x80000298) | ||
135 | |||
136 | /* TIREQ flags */ | ||
137 | #define TF0 (1<<8) /* Timer 0 reference value reached */ | ||
138 | #define TF1 (1<<9) /* Timer 1 reference value reached */ | ||
139 | #define TI0 (1<<0) /* Timer 0 IRQ flag */ | ||
140 | #define TI1 (1<<1) /* Timer 1 IRQ flag */ | ||
141 | |||
81 | #endif | 142 | #endif |
diff --git a/firmware/export/timer.h b/firmware/export/timer.h index 08bf7b13e4..3613aa32d9 100644 --- a/firmware/export/timer.h +++ b/firmware/export/timer.h | |||
@@ -31,7 +31,8 @@ | |||
31 | #define TIMER_FREQ (CPU_FREQ/2) | 31 | #define TIMER_FREQ (CPU_FREQ/2) |
32 | #elif CONFIG_CPU == PNX0101 | 32 | #elif CONFIG_CPU == PNX0101 |
33 | #define TIMER_FREQ 3000000 | 33 | #define TIMER_FREQ 3000000 |
34 | #elif CONFIG_CPU == S3C2440 || CONFIG_CPU == DM320 || CONFIG_CPU == TCC7801 | 34 | #elif CONFIG_CPU == S3C2440 || CONFIG_CPU == DM320 || CONFIG_CPU == TCC7801 \ |
35 | || defined(CPU_TCC77X) | ||
35 | #include "timer-target.h" | 36 | #include "timer-target.h" |
36 | #elif defined(SIMULATOR) | 37 | #elif defined(SIMULATOR) |
37 | #define TIMER_FREQ 1000000 | 38 | #define TIMER_FREQ 1000000 |