summaryrefslogtreecommitdiffstats
path: root/bsps/microblaze/microblaze_fpga/fdt/bsp_fdt.c
blob: 9eb92c5dc6b8fd18415a5d004f47492fe42e60a5 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
/*
 *  COPYRIGHT (c) 2021.
 *  On-Line Applications Research Corporation (OAR).
 *
 *  The license and distribution terms for this file may be
 *  found in the file LICENSE in this distribution or at
 *  http://www.rtems.org/license/LICENSE.
 */

#include <bsp.h>
#include <bsp/fdt.h>

#include BSP_MICROBLAZE_FPGA_DTB_HEADER_PATH

const void *bsp_fdt_get(void)
{
  return system_dtb;
}

uint32_t bsp_fdt_map_intr(const uint32_t *intr, size_t icells)
{
  return intr[0];
}