source: rtems/bsps/arm/raspberrypi/include/bsp.h @ eca25ef

5
Last change on this file since eca25ef was eca25ef, checked in by G S Niteesh <gsnb.gn@…>, on 01/03/20 at 03:26:14

bsp/raspberrypi: Enable FDT support.

This commit adds FDT support to the BSP.

  • Property mode set to 100644
File size: 1.4 KB
RevLine 
[c32b1ef]1/**
2 * @file
3 *
[c991eeec]4 * @ingroup RTEMSBSPsARMRaspberryPi
[c32b1ef]5 *
6 * @brief Global BSP definitions.
7 */
8
9/*
[8830bfe6]10 * Copyright (c) 2015 Yang Qiao
[c32b1ef]11 * Copyright (c) 2013 Alan Cudmore
12 *
13 *  The license and distribution terms for this file may be
14 *  found in the file LICENSE in this distribution or at
15 *
[c499856]16 *  http://www.rtems.org/license/LICENSE
[c32b1ef]17 *
18 */
19
20#ifndef LIBBSP_ARM_RASPBERRYPI_BSP_H
21#define LIBBSP_ARM_RASPBERRYPI_BSP_H
22
[c991eeec]23/**
24 * @defgroup RTEMSBSPsARMRaspberryPi Raspberry Pi
25 *
26 * @ingroup RTEMSBSPsARM
27 *
28 * @brief Raspberry Pi Board Support Package.
29 *
30 */
31
[c32b1ef]32#include <bspopts.h>
[ddc8165]33#include <bsp/default-initial-extension.h>
34
[c32b1ef]35#include <rtems.h>
36#include <bsp/raspberrypi.h>
37
38#ifdef __cplusplus
39extern "C" {
40#endif /* __cplusplus */
41
42#define BSP_FEATURE_IRQ_EXTENSION
43
[eca25ef]44#if BSP_START_COPY_FDT_FROM_U_BOOT
45#define BSP_FDT_IS_SUPPORTED
46#endif
47
[c64d5f0d]48#define RPI_L2_CACHE_ENABLE 1
49
[61e7c69]50#define BSP_GPIO_PIN_COUNT 32
51#define BSP_GPIO_PINS_PER_BANK 32
52#define BSP_GPIO_PINS_PER_SELECT_BANK 10
53
[6b5df95]54#define BSP_CONSOLE_UART0   0
55#define BSP_CONSOLE_FB      1
56
[8830bfe6]57void rpi_init_cmdline(void);
58const char *rpi_cmdline_get_cached(void);
59const char *rpi_cmdline_get_raw(void);
60const char *rpi_cmdline_get_arg(const char* arg);
61
[c12069e]62void  rpi_video_init(void);
63void  rpi_fb_outch  (char);
64int rpi_video_is_initialized(void);
65
[df2ee9d]66void rpi_ipi_initialize(void);
67void rpi_start_rtems_on_secondary_processor(void);
68
[c32b1ef]69#ifdef __cplusplus
70}
71#endif /* __cplusplus */
72
[c991eeec]73/* @} */
74
[c32b1ef]75#endif /* LIBBSP_ARM_RASPBERRYPI_BSP_H */
[98eb7e78]76
Note: See TracBrowser for help on using the repository browser.