4.104.114.84.95
Last change
on this file since a902441a was
a902441a,
checked in by Joel Sherrill <joel.sherrill@…>, on 03/16/99 at 02:26:50
|
Patch from John S. Gwynne <jgwynne@…> to correct minor
problems that prevented the 19990302 snapshot from running on
the efi332.
I'm happy to report that rtems-19990302 is running on the efi332
board. I have enclosed a few minor patches below to the efi332 bsp. All
patches are within that library but one. make/custom/efi332.cfg has a
patch to select the right CPU_CFLAGS (at one time -m68332 was a
problem... -mcpu32 or -m68332 work fine now).
|
-
Property mode set to
100644
|
File size:
1.2 KB
|
Line | |
---|
1 | /* efi332.h |
---|
2 | * |
---|
3 | * $Id$ |
---|
4 | */ |
---|
5 | |
---|
6 | #ifndef _EFI332_H_ |
---|
7 | #define _EFI332_H_ |
---|
8 | |
---|
9 | |
---|
10 | /* SIM_MM (SIM Module Mapping) determines the location of the control |
---|
11 | register block. When MM=0, register addresses range fom 0x7ff000 to |
---|
12 | 0x7FFFFF. When MM=1, register addresses range from 0xfff000 to |
---|
13 | 0xffffff. */ |
---|
14 | #define SIM_MM 1 |
---|
15 | |
---|
16 | |
---|
17 | /* Interrupt related definitions */ |
---|
18 | #define SIM_IARB 15 |
---|
19 | #define QSM_IARB 10 |
---|
20 | |
---|
21 | #define EFI_PIV 64 |
---|
22 | #define ISRL_PIT 4 /* zero disables PIT */ |
---|
23 | |
---|
24 | #define EFI_QIVR 66 /* 66=>SCI and 67=>QSPI interrupt */ |
---|
25 | #define ISRL_QSPI 0 |
---|
26 | |
---|
27 | #define EFI_SPINT 24 /* spurious interrupt */ |
---|
28 | #define EFI_INT1 25 /* CTS interrupt */ |
---|
29 | #define ISRL_SCI 6 |
---|
30 | |
---|
31 | |
---|
32 | |
---|
33 | /* System Clock definitions */ |
---|
34 | #define XTAL 32768.0 /* crystal frequency in Hz */ |
---|
35 | #define EFI_W 0 /* system clock parameters */ |
---|
36 | #define EFI_X 1 |
---|
37 | #define EFI_Y 0x38 |
---|
38 | #define SYS_CLOCK (XTAL*4.0*(EFI_Y+1)*(1 << (2*EFI_W+EFI_X))) |
---|
39 | #define SCI_BAUD 115200 /* RS232 Baud Rate */ |
---|
40 | |
---|
41 | |
---|
42 | /* macros/functions */ |
---|
43 | |
---|
44 | /* |
---|
45 | * This prototype really should have the noreturn attribute but |
---|
46 | * that causes a warning. Not sure how to fix that. |
---|
47 | */ |
---|
48 | /* static void reboot(void) __attribute__ ((noreturn)); */ |
---|
49 | static void reboot(void); |
---|
50 | __inline__ static void reboot() {asm("trap #15");} |
---|
51 | |
---|
52 | #endif /* _EFI332_H_ */ |
---|
Note: See
TracBrowser
for help on using the repository browser.