RTEMS  5.0.0
bsp.h
Go to the documentation of this file.
1 
7 /*
8  * Copyright (c) 2017 embedded brains GmbH. All rights reserved.
9  *
10  * embedded brains GmbH
11  * Dornierstr. 4
12  * 82178 Puchheim
13  * Germany
14  * <info@embedded-brains.de>
15  *
16  * The license and distribution terms for this file may be
17  * found in the file LICENSE in this distribution or at
18  * http://www.rtems.org/license/LICENSE.
19  */
20 
21 #ifndef LIBBSP_ARM_IMX_BSP_H
22 #define LIBBSP_ARM_IMX_BSP_H
23 
34 #include <bspopts.h>
35 
36 #define BSP_FEATURE_IRQ_EXTENSION
37 
38 #define BSP_FDT_IS_SUPPORTED
39 
40 #ifndef ASM
41 
42 #include <rtems.h>
43 
45 
46 #ifdef __cplusplus
47 extern "C" {
48 #endif /* __cplusplus */
49 
50 #define BSP_ARM_GIC_DIST_BASE 0x31001000
51 
52 #define BSP_ARM_GIC_CPUIF_BASE 0x31002000
53 
54 #define BSP_ARM_A9MPCORE_GT_BASE 0
55 
56 #define BSP_ARM_A9MPCORE_SCU_BASE 0
57 
58 void arm_generic_timer_get_config(uint32_t *frequency, uint32_t *irq);
59 
60 void *imx_get_reg_of_node(const void *fdt, int node);
61 
62 int imx_iomux_configure_pins(const void *fdt, uint32_t phandle);
63 
64 rtems_vector_number imx_get_irq_of_node(
65  const void *fdt,
66  int node,
67  size_t index
68 );
69 
70 void imx_uart_console_drain(void);
71 
81 int i2c_bus_register_imx(const char *bus_path, const char *alias_or_path);
82 
92 int spi_bus_register_imx(const char *bus_path, const char *alias_or_path);
93 
94 #ifdef __cplusplus
95 }
96 #endif /* __cplusplus */
97 
98 #endif /* ASM */
99 
100 /* @} */
101 
102 #endif /* LIBBSP_ARM_IMX_BSP_H */
int spi_bus_register_imx(const char *bus_path, const char *alias_or_path)
Registers an IMX ECSPI bus driver.
Definition: imx-ecspi.c:408
DEFAULT_INITIAL_EXTENSION Support.
ISR_Vector_number rtems_vector_number
Control block type used to manage the vectors.
Definition: intr.h:47
int i2c_bus_register_imx(const char *bus_path, const char *alias_or_path)
Registers an IMX I2C bus driver.
Definition: imx-i2c.c:403