1 | /** |
---|
2 | * @file |
---|
3 | * |
---|
4 | * @ingroup RTEMSBSPsARMRaspberryPi |
---|
5 | * |
---|
6 | * @brief Global BSP definitions. |
---|
7 | */ |
---|
8 | |
---|
9 | /* |
---|
10 | * Copyright (c) 2015 Yang Qiao |
---|
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 | * |
---|
16 | * http://www.rtems.org/license/LICENSE |
---|
17 | * |
---|
18 | */ |
---|
19 | |
---|
20 | #ifndef LIBBSP_ARM_RASPBERRYPI_BSP_H |
---|
21 | #define LIBBSP_ARM_RASPBERRYPI_BSP_H |
---|
22 | |
---|
23 | /** |
---|
24 | * @defgroup RTEMSBSPsARMRaspberryPi Raspberry Pi |
---|
25 | * |
---|
26 | * @ingroup RTEMSBSPsARM |
---|
27 | * |
---|
28 | * @brief Raspberry Pi Board Support Package. |
---|
29 | * |
---|
30 | */ |
---|
31 | |
---|
32 | #include <bspopts.h> |
---|
33 | #include <bsp/default-initial-extension.h> |
---|
34 | |
---|
35 | #include <rtems.h> |
---|
36 | #include <bsp/raspberrypi.h> |
---|
37 | |
---|
38 | #ifdef __cplusplus |
---|
39 | extern "C" { |
---|
40 | #endif /* __cplusplus */ |
---|
41 | |
---|
42 | #define BSP_FEATURE_IRQ_EXTENSION |
---|
43 | |
---|
44 | #if BSP_START_COPY_FDT_FROM_U_BOOT |
---|
45 | #define BSP_FDT_IS_SUPPORTED |
---|
46 | #endif |
---|
47 | |
---|
48 | #define RPI_L2_CACHE_ENABLE 1 |
---|
49 | |
---|
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 | |
---|
54 | #define BSP_CONSOLE_UART0 0 |
---|
55 | #define BSP_CONSOLE_FB 1 |
---|
56 | |
---|
57 | void rpi_init_cmdline(void); |
---|
58 | const char *rpi_cmdline_get_cached(void); |
---|
59 | const char *rpi_cmdline_get_raw(void); |
---|
60 | const char *rpi_cmdline_get_arg(const char* arg); |
---|
61 | |
---|
62 | void rpi_video_init(void); |
---|
63 | void rpi_fb_outch (char); |
---|
64 | int rpi_video_is_initialized(void); |
---|
65 | |
---|
66 | void rpi_ipi_initialize(void); |
---|
67 | void rpi_start_rtems_on_secondary_processor(void); |
---|
68 | |
---|
69 | #ifdef __cplusplus |
---|
70 | } |
---|
71 | #endif /* __cplusplus */ |
---|
72 | |
---|
73 | /* @} */ |
---|
74 | |
---|
75 | #endif /* LIBBSP_ARM_RASPBERRYPI_BSP_H */ |
---|
76 | |
---|