source: rtems/c/src/lib/libbsp/arm/xilinx-zynq/include/bsp.h @ 50ea7252

5
Last change on this file since 50ea7252 was de4d32d, checked in by Joel Sherrill <joel@…>, on 03/29/16 at 18:10:50

arm/xilinx-zynq: Remove include of <rtems/console.h> from <bsp.h> and fix warnings

  • Property mode set to 100644
File size: 1.6 KB
Line 
1/**
2 * @file
3 * @ingroup arm_zynq
4 * @brief Global BSP definitions.
5 */
6
7/*
8 * Copyright (c) 2013-2014 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_XILINX_ZYNQ_BSP_H
22#define LIBBSP_ARM_XILINX_ZYNQ_BSP_H
23
24#include <bspopts.h>
25
26#define BSP_FEATURE_IRQ_EXTENSION
27
28#ifndef ASM
29
30#include <rtems.h>
31
32#include <bsp/default-initial-extension.h>
33#include <bsp/start.h>
34
35#ifdef __cplusplus
36extern "C" {
37#endif /* __cplusplus */
38
39/**
40 * @defgroup arm_zynq Xilinx-Zynq Support
41 * @ingroup bsp_arm
42 * @brief Xilinz-Zynq Board Support Package
43 * @{
44 */
45
46#define BSP_ARM_A9MPCORE_SCU_BASE 0xf8f00000
47
48#define BSP_ARM_GIC_CPUIF_BASE 0xf8f00100
49
50#define BSP_ARM_A9MPCORE_GT_BASE 0xf8f00200
51
52#define BSP_ARM_A9MPCORE_PT_BASE 0xf8f00600
53
54#define BSP_ARM_GIC_DIST_BASE 0xf8f01000
55
56#define BSP_ARM_L2C_310_BASE 0xf8f02000
57
58#define BSP_ARM_L2C_310_ID 0x410000c8
59
60/**
61 * @brief Zynq specific set up of the MMU.
62 *
63 * Provide in the application to override
64 * the defaults in the BSP. Note the defaults do not map in the GP0 and GP1
65 * AXI ports. You should add the specific regions that map into your
66 * PL rather than just open the whole of the GP[01] address space up.
67 */
68BSP_START_TEXT_SECTION void zynq_setup_mmu_and_cache(void);
69
70uint32_t zynq_clock_cpu_1x(void);
71
72/** @} */
73
74#ifdef __cplusplus
75}
76#endif /* __cplusplus */
77
78#endif /* ASM */
79
80#endif /* LIBBSP_ARM_XILINX_ZYNQ_BSP_H */
Note: See TracBrowser for help on using the repository browser.