RTEMS 7.0-rc1
Loading...
Searching...
No Matches
bsp.h
Go to the documentation of this file.
1/* SPDX-License-Identifier: GPL-2.0+-with-RTEMS-exception */
2
11/*
12 * Copyright (c) 2015 Yang Qiao
13 * Copyright (c) 2013 Alan Cudmore
14 *
15 * The license and distribution terms for this file may be
16 * found in the file LICENSE in this distribution or at
17 *
18 * http://www.rtems.org/license/LICENSE
19 *
20 */
21
22#ifndef LIBBSP_ARM_RASPBERRYPI_BSP_H
23#define LIBBSP_ARM_RASPBERRYPI_BSP_H
24
34#include <bspopts.h>
36
37#include <rtems.h>
38#include <bsp/raspberrypi.h>
39
40#ifdef __cplusplus
41extern "C" {
42#endif /* __cplusplus */
43
44#define BSP_FEATURE_IRQ_EXTENSION
45
46#if BSP_START_COPY_FDT_FROM_U_BOOT
47#define BSP_FDT_IS_SUPPORTED
48#endif
49
50#define RPI_L2_CACHE_ENABLE 1
51
52#define BSP_GPIO_PIN_COUNT 32
53#define BSP_GPIO_PINS_PER_BANK 32
54#define BSP_GPIO_PINS_PER_SELECT_BANK 10
55
56#define BSP_CONSOLE_UART0 0
57#define BSP_CONSOLE_FB 1
58
59void *raspberrypi_get_reg_of_node(const void *fdt, int node);
60
61void rpi_init_cmdline(void);
62const char *rpi_cmdline_get_cached(void);
63const char *rpi_cmdline_get_raw(void);
64const char *rpi_cmdline_get_arg(const char* arg);
65
66void rpi_video_init(void);
67void rpi_fb_outch (char);
68int rpi_video_is_initialized(void);
69
70void rpi_ipi_initialize(void);
71void rpi_start_rtems_on_secondary_processor(void);
72
73#ifdef __cplusplus
74}
75#endif /* __cplusplus */
76
77/* @} */
78
79#endif /* LIBBSP_ARM_RASPBERRYPI_BSP_H */
80
This header file provides the default definition of BSP_INITIAL_EXTENSION.
This header file defines the RTEMS Classic API.