Back to home page

LXR

 
 

    


File indexing completed on 2025-05-11 08:23:04

0001 /**
0002  * @file
0003  *
0004  * @ingroup RTEMSBSPsARMRaspberryPi
0005  *
0006  * @brief Global BSP definitions.
0007  */
0008 
0009 /*
0010  * Copyright (c) 2015 Yang Qiao
0011  * Copyright (c) 2013 Alan Cudmore
0012  *
0013  *  The license and distribution terms for this file may be
0014  *  found in the file LICENSE in this distribution or at
0015  *
0016  *  http://www.rtems.org/license/LICENSE
0017  *
0018  */
0019 
0020 #ifndef LIBBSP_ARM_RASPBERRYPI_BSP_H
0021 #define LIBBSP_ARM_RASPBERRYPI_BSP_H
0022 
0023 /**
0024  * @defgroup RTEMSBSPsARMRaspberryPi Raspberry Pi
0025  *
0026  * @ingroup RTEMSBSPsARM
0027  *
0028  * @brief Raspberry Pi Board Support Package.
0029  *
0030  */
0031 
0032 #include <bspopts.h>
0033 #include <bsp/default-initial-extension.h>
0034 
0035 #include <rtems.h>
0036 #include <bsp/raspberrypi.h>
0037 
0038 #ifdef __cplusplus
0039 extern "C" {
0040 #endif /* __cplusplus */
0041 
0042 #define BSP_FEATURE_IRQ_EXTENSION
0043 
0044 #if BSP_START_COPY_FDT_FROM_U_BOOT
0045 #define BSP_FDT_IS_SUPPORTED
0046 #endif
0047 
0048 #define RPI_L2_CACHE_ENABLE 1
0049 
0050 #define BSP_GPIO_PIN_COUNT 32
0051 #define BSP_GPIO_PINS_PER_BANK 32
0052 #define BSP_GPIO_PINS_PER_SELECT_BANK 10
0053 
0054 #define BSP_CONSOLE_UART0   0
0055 #define BSP_CONSOLE_FB      1
0056 
0057 void *raspberrypi_get_reg_of_node(const void *fdt, int node);
0058 
0059 void rpi_init_cmdline(void);
0060 const char *rpi_cmdline_get_cached(void);
0061 const char *rpi_cmdline_get_raw(void);
0062 const char *rpi_cmdline_get_arg(const char* arg);
0063 
0064 void  rpi_video_init(void);
0065 void  rpi_fb_outch  (char);
0066 int rpi_video_is_initialized(void);
0067 
0068 void rpi_ipi_initialize(void);
0069 void rpi_start_rtems_on_secondary_processor(void);
0070 
0071 #ifdef __cplusplus
0072 }
0073 #endif /* __cplusplus */
0074 
0075 /* @} */
0076 
0077 #endif /* LIBBSP_ARM_RASPBERRYPI_BSP_H */
0078