source: rtems/c/src/lib/libbsp/arm/beagle/startup/bspstart.c @ 05f9858f

5
Last change on this file since 05f9858f was 05f9858f, checked in by Sebastian Huber <sebastian.huber@…>, on 09/13/17 at 05:00:57

bsps: Generalize bsp_fdt_map_intr()

Pass all interrupt cells to bsp_fdt_map_intr() since some platforms use
an array to describe an interrupt.

Update #3090.

  • Property mode set to 100644
File size: 736 bytes
Line 
1/*
2 * Copyright (c) 2013 embedded brains GmbH.  All rights reserved.
3 *
4 *  embedded brains GmbH
5 *  Dornierstr. 4
6 *  82178 Puchheim
7 *  Germany
8 *  <info@embedded-brains.de>
9 *
10 * The license and distribution terms for this file may be
11 * found in the file LICENSE in this distribution or at
12 * http://www.rtems.org/license/LICENSE.
13 */
14
15#include <bsp.h>
16#include <bsp/bootcard.h>
17#include <bsp/irq-generic.h>
18#include <bsp/fdt.h>
19
20void bsp_start(void)
21{
22#if IS_DM3730
23  const char* type = "dm3730-based";
24#endif
25#if IS_AM335X
26  const char* type = "am335x-based";
27#endif
28  bsp_interrupt_initialize();
29  printk("\nRTEMS Beagleboard: %s\n", type);
30}
31
32uint32_t bsp_fdt_map_intr(const uint32_t *intr, size_t icells)
33{
34  return intr[0];
35}
Note: See TracBrowser for help on using the repository browser.