[rtems commit] bsp/altera-cyclone-v: Add device tree support

Sebastian Huber sebh at rtems.org
Mon Feb 5 12:55:37 UTC 2018


Module:    rtems
Branch:    master
Commit:    3454179dee112a96ddfc435b0d5fb9a16e766330
Changeset: http://git.rtems.org/rtems/commit/?id=3454179dee112a96ddfc435b0d5fb9a16e766330

Author:    Sebastian Huber <sebastian.huber at embedded-brains.de>
Date:      Mon Feb  5 13:54:48 2018 +0100

bsp/altera-cyclone-v: Add device tree support

Update #3290.

---

 bsps/arm/altera-cyclone-v/include/bsp.h                  | 4 +++-
 c/src/lib/libbsp/arm/altera-cyclone-v/startup/bspstart.c | 7 ++++++-
 2 files changed, 9 insertions(+), 2 deletions(-)

diff --git a/bsps/arm/altera-cyclone-v/include/bsp.h b/bsps/arm/altera-cyclone-v/include/bsp.h
index 4118823..860a15c 100644
--- a/bsps/arm/altera-cyclone-v/include/bsp.h
+++ b/bsps/arm/altera-cyclone-v/include/bsp.h
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2013-2014 embedded brains GmbH.  All rights reserved.
+ * Copyright (c) 2013, 2018 embedded brains GmbH.  All rights reserved.
  *
  *  embedded brains GmbH
  *  Dornierstr. 4
@@ -19,6 +19,8 @@
 
 #define BSP_FEATURE_IRQ_EXTENSION
 
+#define BSP_FDT_IS_SUPPORTED
+
 #ifndef ASM
 
 #include <rtems.h>
diff --git a/c/src/lib/libbsp/arm/altera-cyclone-v/startup/bspstart.c b/c/src/lib/libbsp/arm/altera-cyclone-v/startup/bspstart.c
index fa0c9d1..0345a4c 100644
--- a/c/src/lib/libbsp/arm/altera-cyclone-v/startup/bspstart.c
+++ b/c/src/lib/libbsp/arm/altera-cyclone-v/startup/bspstart.c
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2013, 2017 embedded brains GmbH.  All rights reserved.
+ * Copyright (c) 2013, 2018 embedded brains GmbH.  All rights reserved.
  *
  *  embedded brains GmbH
  *  Dornierstr. 4
@@ -22,6 +22,11 @@
 
 #include <libfdt.h>
 
+uint32_t bsp_fdt_map_intr(const uint32_t *intr, size_t icells)
+{
+  return intr[1] + 32;
+}
+
 static void set_clock(
   const void *fdt,
   int parent,




More information about the vc mailing list