1 Index: rtems-051009/c/src/lib/libbsp/m68k/mo376/start/start.S
2 ===================================================================
3 --- rtems.orig/c/src/lib/libbsp/m68k/mo376/start/start.S
4 +++ rtems/c/src/lib/libbsp/m68k/mo376/start/start.S
11 #include <rtems/asm.h>
12 #include <rtems/m68k/sim.h>
14 Index: rtems-051009/c/src/lib/libbsp/m68k/mo376/include/bsp.h
15 ===================================================================
16 --- rtems.orig/c/src/lib/libbsp/m68k/mo376/include/bsp.h
17 +++ rtems/c/src/lib/libbsp/m68k/mo376/include/bsp.h
18 @@ -26,7 +26,7 @@ extern "C" {
19 #include <rtems/clockdrv.h>
20 #include <rtems/console.h>
21 #include <rtems/iosupp.h>
24 #include <rtems/m68k/sim.h>
25 #include <rtems/m68k/qsm.h>
27 Index: rtems-051009/c/src/lib/libbsp/m68k/mo376/ChangeLog
28 ===================================================================
29 --- rtems.orig/c/src/lib/libbsp/m68k/mo376/ChangeLog
30 +++ rtems/c/src/lib/libbsp/m68k/mo376/ChangeLog
33 * include/bsp.h: New header guard.
35 +2005-04-08 Pavel Pisa <pisa@cmp.felk.cvut.cz>
37 + * MO376 BSP for PiKRON's MO_CPU1/MO_CPU2 board started
38 + as clone of MRM332 BSP.
40 2005-01-07 Ralf Corsepius <ralf.corsepius@rtems.org>
42 * Makefile.am: Eliminate CFLAGS_OPTIMIZE_V.
43 Index: rtems-051009/c/src/lib/libbsp/m68k/mo376/clock/ckinit.c
44 ===================================================================
45 --- rtems.orig/c/src/lib/libbsp/m68k/mo376/clock/ckinit.c
46 +++ rtems/c/src/lib/libbsp/m68k/mo376/clock/ckinit.c
50 #include <rtems/libio.h>
54 #define CLOCK_VECTOR MRM_PIV
56 Index: rtems-051009/c/src/lib/libbsp/m68k/mo376/configure.ac
57 ===================================================================
58 --- rtems.orig/c/src/lib/libbsp/m68k/mo376/configure.ac
59 +++ rtems/c/src/lib/libbsp/m68k/mo376/configure.ac
61 ## $Id: configure.ac,v 1.14 2004/09/24 06:32:09 ralf Exp $
64 -AC_INIT([rtems-c-src-lib-libbsp-m68k-mrm332],[_RTEMS_VERSION],[rtems-bugs@rtems.com])
65 +AC_INIT([rtems-c-src-lib-libbsp-m68k-mo376],[_RTEMS_VERSION],[rtems-bugs@rtems.com])
66 AC_CONFIG_SRCDIR([bsp_specs])
67 RTEMS_TOP(../../../../../..)
69 Index: rtems-051009/c/src/lib/libbsp/m68k/mo376/README
70 ===================================================================
71 --- rtems.orig/c/src/lib/libbsp/m68k/mo376/README
72 +++ rtems/c/src/lib/libbsp/m68k/mo376/README
74 # $Id: README,v 1.1 2001/05/25 16:28:46 joel Exp $
80 -CPU: MC68332 @16 or 25MHz
85 +ROM: 1MiB or 2MiB flash
87 - The Mini RoboMind is a small board based on the 68332 microcontroller
88 -designed and build by Mark Castelluccio. For details, see:
89 + The mo376 BSP supports MO_CPU1/MO_CPU2 boards developed by PiKRON company.
90 +The design documentation conforms open-source mind of board authors
91 +and can be found on the company pages
93 - http://www.robominds.com
94 + http://www.pikron.com/en/main_frame_mo_cpu1.html
96 - This BSP was ported from the efi332 BSP by Matt Cross (profesor@gweep.net),
97 -the efi332 BSP was written by John S Gwynne.
98 + This BSP has been cloned from Mini RoboMind BSP written for small board based
99 +on the 68332 microcontroller designed and build by Mark Castelluccio
101 + The mrm332 BSP was ported from the efi332 BSP by Matt Cross (profesor@gweep.net),
102 +the efi332 was written by John S Gwynne.
106 -- integrate the interrupt driven stdin/stdout into RTEMS to (a) reduce
107 - the interrupt priority and (2) to prevent it from blocking.
108 -- add a timer driver for the tmtest set.
110 Index: rtems-051009/c/src/lib/libbsp/m68k/mo376/Makefile.am
111 ===================================================================
112 --- rtems.orig/c/src/lib/libbsp/m68k/mo376/Makefile.am
113 +++ rtems/c/src/lib/libbsp/m68k/mo376/Makefile.am
114 @@ -17,7 +17,7 @@ DISTCLEANFILES = include/bspopts.h
118 -include_HEADERS += include/mrm332.h
119 +include_HEADERS += include/mo376.h
120 nodist_include_HEADERS += ../../shared/include/coverhd.h
123 @@ -97,9 +97,9 @@ $(PROJECT_INCLUDE)/bspopts.h: include/bs
124 $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/bspopts.h
125 PREINSTALL_FILES += $(PROJECT_INCLUDE)/bspopts.h
127 -$(PROJECT_INCLUDE)/mrm332.h: include/mrm332.h $(PROJECT_INCLUDE)/$(dirstamp)
128 - $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/mrm332.h
129 -PREINSTALL_FILES += $(PROJECT_INCLUDE)/mrm332.h
130 +$(PROJECT_INCLUDE)/mo376.h: include/mo376.h $(PROJECT_INCLUDE)/$(dirstamp)
131 + $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/mo376.h
132 +PREINSTALL_FILES += $(PROJECT_INCLUDE)/mo376.h
134 $(PROJECT_INCLUDE)/coverhd.h: ../../shared/include/coverhd.h $(PROJECT_INCLUDE)/$(dirstamp)
135 $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/coverhd.h
136 Index: rtems-051009/c/src/lib/libbsp/m68k/mo376/console/sci.c
137 ===================================================================
138 --- rtems.orig/c/src/lib/libbsp/m68k/mo376/console/sci.c
139 +++ rtems/c/src/lib/libbsp/m68k/mo376/console/sci.c
142 // system clock definitions, i dont have documentation on this...
144 -#if 0 // Not needed, this is provided in mrm332.h
145 +#if 0 // Not needed, this is provided in mo376.h
146 #define XTAL 32768.0 // crystal frequency in Hz
147 #define NUMB_W 0 // system clock parameters
149 @@ -1238,7 +1238,7 @@ static void SciSetBaud(uint32_t rate)
151 // calculate the register value as a float and convert to an int
152 // set baud rate - you must define the system clock constant
153 - // see mrm332.h for an example
154 + // see mo376.h for an example
156 value = ( (uint16_t) ( SYS_CLOCK / rate / 32.0 + 0.5 ) & 0x1fff );
158 Index: rtems-051009/c/src/lib/libbsp/m68k/mo376/startup/start_c.c
159 ===================================================================
160 --- rtems.orig/c/src/lib/libbsp/m68k/mo376/startup/start_c.c
161 +++ rtems/c/src/lib/libbsp/m68k/mo376/startup/start_c.c
168 #include <rtems/m68k/sim.h>
171 Index: rtems-051009/c/src/lib/libbsp/m68k/mo376/times
172 ===================================================================
173 --- rtems.orig/c/src/lib/libbsp/m68k/mo376/times
174 +++ rtems/c/src/lib/libbsp/m68k/mo376/times
177 -# Timing Test Suite Results for the MRM332 BSP
178 +# Timing Test Suite Results for the MO376 BSP
180 # $Id: times,v 1.2 2004/01/07 21:13:50 joel Exp $
182 @@ -8,9 +8,9 @@ NOTE: This BSP is user submitted and no
184 TBD: MATT - update this with real times!
191 Memory Configuration: SRAM, DRAM, cache, etc
194 Index: rtems-051009/c/src/lib/libbsp/m68k/mo376/include/mo376.h
195 ===================================================================
197 +++ rtems/c/src/lib/libbsp/m68k/mo376/include/mo376.h
201 + * $Id: mo376.h,v 1.5 2004/04/21 16:01:35 ralf Exp $
207 +/* SIM_MM (SIM Module Mapping) determines the location of the control
208 + register block. When MM=0, register addresses range fom 0x7ff000 to
209 + 0x7FFFFF. When MM=1, register addresses range from 0xfff000 to
213 +/* Interrupt related definitions */
218 +#define ISRL_PIT 4 /* zero disables PIT */
220 +#define EFI_QIVR 66 /* 66=>SCI and 67=>QSPI interrupt */
223 +#define EFI_SPINT 24 /* spurious interrupt */
224 +#define EFI_INT1 25 /* CTS interrupt */
227 +/* System Clock definitions */
228 +#define XTAL 32768.0 /* crystal frequency in Hz */
231 +/* Default MRM clock rate (8.388688 MHz) set by CPU32: */
232 +#define MRM_W 0 /* system clock parameters */
239 +#define MRM_W 1 /* system clock parameters */
246 +#define MRM_W 1 /* system clock parameters */
251 +#define SYS_CLOCK (XTAL*4.0*(MRM_Y+1)*(1 << (2*MRM_W+MRM_X)))
252 +#define SCI_BAUD 19200 /* RS232 Baud Rate */
254 +/* macros/functions */
259 + * This prototype really should have the noreturn attribute but
260 + * that causes a warning. Not sure how to fix that.
262 +/* static void reboot(void) __attribute__ ((noreturn)); */
263 +static void reboot(void);
264 +__inline__ static void reboot() {asm("trap #15; .word 0x0063");}
268 +#endif /* _MRM_H_ */
269 Index: rtems-051009/c/src/lib/libbsp/m68k/mo376/include/mrm332.h
270 ===================================================================
271 --- rtems.orig/c/src/lib/libbsp/m68k/mo376/include/mrm332.h
276 - * $Id: mrm332.h,v 1.5 2004/04/21 16:01:35 ralf Exp $
282 -/* SIM_MM (SIM Module Mapping) determines the location of the control
283 - register block. When MM=0, register addresses range fom 0x7ff000 to
284 - 0x7FFFFF. When MM=1, register addresses range from 0xfff000 to
288 -/* Interrupt related definitions */
293 -#define ISRL_PIT 4 /* zero disables PIT */
295 -#define EFI_QIVR 66 /* 66=>SCI and 67=>QSPI interrupt */
298 -#define EFI_SPINT 24 /* spurious interrupt */
299 -#define EFI_INT1 25 /* CTS interrupt */
302 -/* System Clock definitions */
303 -#define XTAL 32768.0 /* crystal frequency in Hz */
306 -/* Default MRM clock rate (8.388688 MHz) set by CPU32: */
307 -#define MRM_W 0 /* system clock parameters */
314 -#define MRM_W 1 /* system clock parameters */
321 -#define MRM_W 1 /* system clock parameters */
326 -#define SYS_CLOCK (XTAL*4.0*(MRM_Y+1)*(1 << (2*MRM_W+MRM_X)))
327 -#define SCI_BAUD 19200 /* RS232 Baud Rate */
329 -/* macros/functions */
334 - * This prototype really should have the noreturn attribute but
335 - * that causes a warning. Not sure how to fix that.
337 -/* static void reboot(void) __attribute__ ((noreturn)); */
338 -static void reboot(void);
339 -__inline__ static void reboot() {asm("trap #15; .word 0x0063");}
343 -#endif /* _MRM_H_ */
344 Index: rtems-051009/make/custom/mo376.cfg
345 ===================================================================
346 --- rtems.orig/make/custom/mo376.cfg
347 +++ rtems/make/custom/mo376.cfg
350 -# Config file for the mrm332 BSP
351 +# Config file for the mo376 BSP
353 -# $Id: mrm332.cfg,v 1.8 2004/02/04 16:50:30 ralf Exp $
354 +# $Id: mo376.cfg,v 1.8 2004/02/04 16:50:30 ralf Exp $
357 include $(RTEMS_ROOT)/make/custom/default.cfg
358 @@ -10,7 +10,7 @@ RTEMS_CPU=m68k
359 RTEMS_CPU_MODEL=m68332
361 # This is the actual bsp directory used during the build process.
362 -RTEMS_BSP_FAMILY=mrm332
363 +RTEMS_BSP_FAMILY=mo376
365 # This contains the compiler options necessary to select the CPU model
366 # and (hopefully) optimize for it.
367 @@ -26,7 +26,7 @@ CFLAGS_OPTIMIZE_V=-O4 -fomit-frame-point
368 ifeq ($(MRM_IN_ROM),yes)
369 # Build a rommable image - move the .data section after the .text section
371 -CPU_CFLAGS += -qnolinkcmds -T $(exec_prefix)/mrm332/lib/linkcmds_ROM
372 +CPU_CFLAGS += -qnolinkcmds -T $(exec_prefix)/mo376/lib/linkcmds_ROM
374 # This is a good way to get debug information. The output file is large
375 # though and greatly slows the build process so only do this if needed.