bsps/mvme2700: Add MVME2700 BSP

This commit is contained in:
Chris Johns
2023-04-05 12:58:53 +10:00
parent 05dd54d11c
commit 2138ce43c5
3 changed files with 24 additions and 5 deletions

View File

@@ -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);

View File

@@ -17,7 +17,7 @@ default:
- -mcpu=powerpc
- -mmultiple
- -mstrict-align
- enabled-by: powerpc/mvme2307
- enabled-by: [powerpc/mvme2307, powerpc/mvme2700]
value:
- -mcpu=604
- -mmultiple

View File

@@ -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