source: rtems/c/src/lib/libbsp/arm/realview-pbx-a9/include/bsp.h @ 0df8d7f2

4.115
Last change on this file since 0df8d7f2 was 0df8d7f2, checked in by Sebastian Huber <sebastian.huber@…>, on Feb 10, 2014 at 11:21:24 AM

bsps/arm: Use Global Timer for Cortex-A9 MPCore

Use the Global Timer for the Cortex-A9 MPCore clock driver instead of
the Private Timer. This enables a consistent nanoseconds since last
context switch value across all processors.

  • Property mode set to 100644
File size: 1.5 KB
Line 
1/**
2 * @file
3 *
4 * @ingroup arm_realview-pbx-a9
5 *
6 * @brief Global BSP definitions.
7 */
8
9/*
10 * Copyright (c) 2013 embedded brains GmbH.  All rights reserved.
11 *
12 *  embedded brains GmbH
13 *  Dornierstr. 4
14 *  82178 Puchheim
15 *  Germany
16 *  <info@embedded-brains.de>
17 *
18 * The license and distribution terms for this file may be
19 * found in the file LICENSE in this distribution or at
20 * http://www.rtems.com/license/LICENSE.
21 */
22
23#ifndef LIBBSP_ARM_REALVIEW_PBX_A9_BSP_H
24#define LIBBSP_ARM_REALVIEW_PBX_A9_BSP_H
25
26#include <bspopts.h>
27
28#define BSP_FEATURE_IRQ_EXTENSION
29
30#define BSP_HAS_FRAME_BUFFER 1
31
32#ifndef ASM
33
34#include <rtems.h>
35#include <rtems/console.h>
36#include <rtems/clockdrv.h>
37
38#include <bsp/default-initial-extension.h>
39
40#ifdef __cplusplus
41extern "C" {
42#endif /* __cplusplus */
43
44#define BSP_ARM_A9MPCORE_SCU_BASE 0x1f000000
45
46#define BSP_ARM_GIC_CPUIF_BASE 0x1f000100
47
48#define BSP_ARM_A9MPCORE_GT_BASE 0x1f000200
49
50#define BSP_ARM_A9MPCORE_PT_BASE 0x1f000600
51
52#define BSP_ARM_GIC_DIST_BASE 0x1f001000
53
54typedef enum {
55  BSP_ARM_A9MPCORE_FATAL_CLOCK_IRQ_INSTALL,
56  BSP_ARM_A9MPCORE_FATAL_CLOCK_IRQ_REMOVE,
57  BSP_ARM_PL111_FATAL_REGISTER_DEV,
58  BSP_ARM_PL111_FATAL_SEM_CREATE,
59  BSP_ARM_PL111_FATAL_SEM_RELEASE
60} rvpbxa9_fatal_code;
61
62void rvpbxa9_fatal(rvpbxa9_fatal_code code) RTEMS_COMPILER_NO_RETURN_ATTRIBUTE;
63
64#ifdef __cplusplus
65}
66#endif /* __cplusplus */
67
68#endif /* ASM */
69
70#endif /* LIBBSP_ARM_REALVIEW_PBX_A9_BSP_H */
71
72/**
73 * @defgroup arm_realview-pbx-a9 Realview PBX-A9
74 *
75 * @ingroup bsp_arm
76 *
77 * @brief Realview PBX-A9 support package
78 *
79 */
Note: See TracBrowser for help on using the repository browser.