From: Martin Aberg
Added support for Cobham Gaisler NOEL-V systems. The NOEL-V support
is implemented as a riscv BSP. Both 32-bit and 64-bit processor
systems are supported. Cobham Gaisler's NOEL-V RISC-V processor IP
is described here:
https://www.gaisler.com/NOELV
Compatible with the following NOEL-V FPGA example design ranges
available from Cobham Gaisler. Follow the links for free
bit-streams, DTS/DTB, user's manuals and quick-start guides:
- NOEL-ARTYA7-EX(https://www.gaisler.com/NOEL-ARTYA7)
- NOEL-PF-EX(https://www.gaisler.com/NOEL-PF)
- NOEL-XCKU-EX (https://www.gaisler.com/NOEL-XCKU)
Uses the shared GRLIB APBUART console driver "apbuart_termios.c".
APBUART devices are probed using device tree.
Update #4225.
---
bsps/riscv/noel/console/console-config.c | 209 ++
bsps/riscv/noel/include/bsp.h | 76 +++
bsps/riscv/noel/include/bsp/irq.h | 75 +++
bsps/riscv/noel/include/tm27.h| 1 +
bsps/riscv/noel/start/bsp_fatal_halt.c| 46
bsps/riscv/riscv/include/bsp.h| 2 +
bsps/riscv/riscv/include/bsp/irq.h| 2 +
spec/build/bsps/riscv/noel/abi.yml| 48
spec/build/bsps/riscv/noel/bspnoel32im.yml| 19 ++
spec/build/bsps/riscv/noel/bspnoel32imafd.yml | 19 ++
spec/build/bsps/riscv/noel/bspnoel64imac.yml | 19 ++
spec/build/bsps/riscv/noel/bspnoel64imafd.yml | 19 ++
.../build/bsps/riscv/noel/bspnoel64imafdc.yml | 19 ++
spec/build/bsps/riscv/noel/grp.yml| 59 +
spec/build/bsps/riscv/noel/obj.yml| 38
spec/build/bsps/riscv/noel/objsmp.yml | 15 ++
spec/build/bsps/riscv/noel/optconirq.yml | 16 ++
spec/build/bsps/riscv/noel/optextirqmax.yml | 16 ++
spec/build/bsps/riscv/optrambegin.yml | 3 +
spec/build/cpukit/optarchbits.yml | 2 +
spec/build/cpukit/optsmp.yml | 4 +
21 files changed, 707 insertions(+)
create mode 100644 bsps/riscv/noel/console/console-config.c
create mode 100644 bsps/riscv/noel/include/bsp.h
create mode 100644 bsps/riscv/noel/include/bsp/irq.h
create mode 100644 bsps/riscv/noel/include/tm27.h
create mode 100644 bsps/riscv/noel/start/bsp_fatal_halt.c
create mode 100644 spec/build/bsps/riscv/noel/abi.yml
create mode 100644 spec/build/bsps/riscv/noel/bspnoel32im.yml
create mode 100644 spec/build/bsps/riscv/noel/bspnoel32imafd.yml
create mode 100644 spec/build/bsps/riscv/noel/bspnoel64imac.yml
create mode 100644 spec/build/bsps/riscv/noel/bspnoel64imafd.yml
create mode 100644 spec/build/bsps/riscv/noel/bspnoel64imafdc.yml
create mode 100644 spec/build/bsps/riscv/noel/grp.yml
create mode 100644 spec/build/bsps/riscv/noel/obj.yml
create mode 100644 spec/build/bsps/riscv/noel/objsmp.yml
create mode 100644 spec/build/bsps/riscv/noel/optconirq.yml
create mode 100644 spec/build/bsps/riscv/noel/optextirqmax.yml
diff --git a/bsps/riscv/noel/console/console-config.c
b/bsps/riscv/noel/console/console-config.c
new file mode 100644
index 00..eff3b75250
--- /dev/null
+++ b/bsps/riscv/noel/console/console-config.c
@@ -0,0 +1,209 @@
+/* SPDX-License-Identifier: BSD-2-Clause */
+
+/**
+ * @file
+ *
+ * @ingroup RTEMSBSPsRISCVNOEL
+ *
+ * @brief This source file contains NOEL-V/APBUART definitions of
+ * ::BSP_output_char_function_type and :: BSP_output_char and an
+ * implementation of console_initialize().
+ */
+
+/*
+ * Copyright (c) 2021 Cobham Gaisler AB.
+ *
+ * Copyright (C) 2018 embedded brains GmbH (http://www.embedded-brains.de)
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ * 1. Redistributions of source code must retain the above copyright
+ *notice, this list of conditions and the following disclaimer.
+ * 2. Redistributions in binary form must reproduce the above copyright
+ *notice, this list of conditions and the following disclaimer in the
+ *documentation and/or other materials provided with the distribution.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
+ * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+ * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+ * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
+ * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
+ * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
+ * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+ * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
+ * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
+ * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
+ * POSSIBILITY OF SUCH DAMAGE.
+ */
+
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
+#include
+#include