summaryrefslogtreecommitdiffstats
path: root/c/src/lib/libbsp/powerpc/motorola_powerpc/include
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2004-11-10 23:50:48 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2004-11-10 23:50:48 +0000
commitf9877d257769bd19f38189024fc38b14fe5460ca (patch)
treeec627f3578b388f153d090a42167f22da9548e72 /c/src/lib/libbsp/powerpc/motorola_powerpc/include
parent2004-11-10 Richard Campbell <richard.campbell@oarcorp.com> (diff)
downloadrtems-f9877d257769bd19f38189024fc38b14fe5460ca.tar.bz2
2004-11-10 Richard Campbell <richard.campbell@oarcorp.com>
* Makefile.am, configure.ac, bootloader/Makefile.am, include/bsp.h, wrapup/Makefile.am: Add MVME2100 BSP and MPC8240 support. There was also a significant amount of spelling and whitespace cleanup. * README.MVME2100: New file.
Diffstat (limited to 'c/src/lib/libbsp/powerpc/motorola_powerpc/include')
-rw-r--r--c/src/lib/libbsp/powerpc/motorola_powerpc/include/bsp.h40
1 files changed, 37 insertions, 3 deletions
diff --git a/c/src/lib/libbsp/powerpc/motorola_powerpc/include/bsp.h b/c/src/lib/libbsp/powerpc/motorola_powerpc/include/bsp.h
index dc7b0d3b91..4d88ce7ca7 100644
--- a/c/src/lib/libbsp/powerpc/motorola_powerpc/include/bsp.h
+++ b/c/src/lib/libbsp/powerpc/motorola_powerpc/include/bsp.h
@@ -26,26 +26,58 @@
* - Interrupt stack space is not minimum if defined.
*/
+#if !defined(mvme2100)
#define CONFIGURE_NUMBER_OF_TERMIOS_PORTS 2
+#endif
+
#define CONFIGURE_INTERRUPT_STACK_MEMORY (16 * 1024)
-/* fundamental addresses for this BSP (PREPxxx are from libcpu/io.h) */
-#define _IO_BASE PREP_ISA_IO_BASE
+/* fundamental addresses for BSP (CHRPxxx and PREPxxx are from libcpu/io.h) */
+#if defined(mvme2100)
+#define _IO_BASE CHRP_ISA_IO_BASE
+#define _ISA_MEM_BASE CHRP_ISA_MEM_BASE
+/* address of our ram on the PCI bus */
+#define PCI_DRAM_OFFSET CHRP_PCI_DRAM_OFFSET
+#define PCI_MEM_BASE 0x80000000
+#define PCI_MEM_BASE_ADJUSTMENT 0
+
+#else
+#define _IO_BASE PREP_ISA_IO_BASE
#define _ISA_MEM_BASE PREP_ISA_MEM_BASE
/* address of our ram on the PCI bus */
#define PCI_DRAM_OFFSET PREP_PCI_DRAM_OFFSET
/* offset of pci memory as seen from the CPU */
#define PCI_MEM_BASE PREP_ISA_MEM_BASE
+#define PCI_MEM_BASE_ADJUSTMENT PREP_ISA_MEM_BASE
+#endif
+
/*
- * base address definitions for several devices
+ * Base address definitions for several devices
*
+ * MVME2100 is very similar but has fewer devices and uses on-CPU EPIC
+ * implementation of OpenPIC controller. It also cannot be probed to
+ * find out what it is which is VERY different from other Motorola boards.
*/
+
+#if defined(mvme2100)
+#define BSP_UART_IOBASE_COM1 ((_IO_BASE)+0x01e10000)
+/* #define BSP_UART_IOBASE_COM1 (0xffe10000) */
+#define BSP_OPEN_PIC_BASE_OFFSET 0x40000
+
+#define MVME_HAS_DEC21140
+#else
#define BSP_UART_IOBASE_COM1 ((_IO_BASE)+0x3f8)
#define BSP_UART_IOBASE_COM2 ((_IO_BASE)+0x2f8)
+
#define BSP_KBD_IOBASE ((_IO_BASE)+0x60)
#define BSP_VGA_IOBASE ((_IO_BASE)+0x3c0)
+#if defined(mvme2300)
+#define MVME_HAS_DEC21140
+#endif
+#endif
+
#define BSP_CONSOLE_PORT BSP_UART_COM1
#define BSP_UART_BAUD_BASE 115200
@@ -60,9 +92,11 @@
#define inport_byte(port,value) (value = inb(port))
#define inport_word(port,value) (value = inw(port))
#define inport_long(port,value) (value = inl(port))
+
/*
* Vital Board data Start using DATA RESIDUAL
*/
+
/*
* Total memory using RESIDUAL DATA
*/