[PATCH] bsps/mvme2700: Add MVME2700 BSP

chrisj at rtems.org chrisj at rtems.org
Wed Apr 5 04:53:30 UTC 2023


From: Chris Johns <chrisj at rtems.org>

---
 bsps/powerpc/motorola_powerpc/include/bsp.h   |  8 ++++----
 .../bsps/powerpc/motorola_powerpc/abi.yml     |  2 +-
 .../powerpc/motorola_powerpc/bspmvme2700.yml  | 19 +++++++++++++++++++
 3 files changed, 24 insertions(+), 5 deletions(-)
 create mode 100644 spec/build/bsps/powerpc/motorola_powerpc/bspmvme2700.yml

diff --git a/bsps/powerpc/motorola_powerpc/include/bsp.h b/bsps/powerpc/motorola_powerpc/include/bsp.h
index 1c35d8e1b7..db0995fa5c 100644
--- a/bsps/powerpc/motorola_powerpc/include/bsp.h
+++ b/bsps/powerpc/motorola_powerpc/include/bsp.h
@@ -50,8 +50,8 @@ extern "C" {
  * _VME_A32_WIN0_ON_VME: VME address of that same window
  *
  * AFAIK, only PreP boards have a non-zero PCI_MEM_BASE (i.e., an offset between
- * CPU and PCI addresses). The mvme2300 'ppcbug' firmware configures the PCI
- * bus using PCI base addresses! I.e., drivers need to add PCI_MEM_BASE to
+ * CPU and PCI addresses). The mvme2307/mvme2700 'ppcbug' firmware configures the
+ * PCI bus using PCI base addresses! I.e., drivers need to add PCI_MEM_BASE to
  * the base address read from PCI config.space in order to translate that
  * into a CPU address.
  *
@@ -169,7 +169,7 @@ extern "C" {
 #define BSP_VGA_IOBASE       ((_IO_BASE)+0x3c0)
 #endif
 
-#if defined(mvme2300)
+#if defined(mvme2300) || defined(mvme2307) || defined(mvme2700)
 #define MVME_HAS_DEC21140
 #endif
 #endif
@@ -271,7 +271,7 @@ extern int BSP_connect_clock_handler (void);
  *       It returns and clears the error bits of the PCI status register.
  *       MCP support is disabled because:
  *         a) the 2100 has no raven chip
- *         b) the raven (2300) would raise machine check interrupts
+ *         b) the raven (2300, 2307, 2700) would raise machine check interrupts
  *            on PCI config space access to empty slots.
  */
 extern unsigned long _BSP_clear_hostbridge_errors(int enableMCP, int quiet);
diff --git a/spec/build/bsps/powerpc/motorola_powerpc/abi.yml b/spec/build/bsps/powerpc/motorola_powerpc/abi.yml
index 94ac120f77..3965822a47 100644
--- a/spec/build/bsps/powerpc/motorola_powerpc/abi.yml
+++ b/spec/build/bsps/powerpc/motorola_powerpc/abi.yml
@@ -17,7 +17,7 @@ default:
   - -mcpu=powerpc
   - -mmultiple
   - -mstrict-align
-- enabled-by: powerpc/mvme2307
+- enabled-by: [powerpc/mvme2307, powerpc/mvme2700]
   value:
   - -mcpu=604
   - -mmultiple
diff --git a/spec/build/bsps/powerpc/motorola_powerpc/bspmvme2700.yml b/spec/build/bsps/powerpc/motorola_powerpc/bspmvme2700.yml
new file mode 100644
index 0000000000..f880848926
--- /dev/null
+++ b/spec/build/bsps/powerpc/motorola_powerpc/bspmvme2700.yml
@@ -0,0 +1,19 @@
+SPDX-License-Identifier: CC-BY-SA-4.0 OR BSD-2-Clause
+arch: powerpc
+bsp: mvme2700
+build-type: bsp
+cflags: []
+copyrights:
+- Copyright (C) 2023 Chris Johns
+cppflags: []
+enabled-by: true
+family: motorola_powerpc
+includes: []
+install: []
+links:
+- role: build-dependency
+  uid: ../../opto2
+- role: build-dependency
+  uid: grp
+source: []
+type: build
-- 
2.37.1



More information about the devel mailing list