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

4.115
Last change on this file since e37d57bc was a91dc98b, checked in by Sebastian Huber <sebastian.huber@…>, on Apr 26, 2013 at 1:06:32 PM

bsp/realview-pbx-a9: New BSP

  • Property mode set to 100644
File size: 1.8 KB
Line 
1/*
2 * Copyright (c) 2013 embedded brains GmbH.  All rights reserved.
3 *
4 *  embedded brains GmbH
5 *  Dornierstr. 4
6 *  82178 Puchheim
7 *  Germany
8 *  <info@embedded-brains.de>
9 *
10 * The license and distribution terms for this file may be
11 * found in the file LICENSE in this distribution or at
12 * http://www.rtems.com/license/LICENSE.
13 */
14
15#ifndef LIBBSP_ARM_REALVIEW_PBX_A9_BSP_H
16#define LIBBSP_ARM_REALVIEW_PBX_A9_BSP_H
17
18#include <bspopts.h>
19
20#define BSP_FEATURE_IRQ_EXTENSION
21
22#ifndef ASM
23
24#include <rtems.h>
25#include <rtems/console.h>
26#include <rtems/clockdrv.h>
27
28#include <bsp/default-initial-extension.h>
29
30#ifdef __cplusplus
31extern "C" {
32#endif /* __cplusplus */
33
34#define BSP_ARM_MMU_CLIENT_DOMAIN 15U
35
36#define BSP_ARM_MMU_READ_ONLY \
37  ((BSP_ARM_MMU_CLIENT_DOMAIN << ARM_MMU_SECT_DOMAIN_SHIFT) \
38    | ARM_MMU_SECT_AP_0 \
39    | ARM_MMU_SECT_AP_2 \
40    | ARM_MMU_SECT_DEFAULT)
41
42#define BSP_ARM_MMU_READ_ONLY_CACHED \
43  (BSP_ARM_MMU_READ_ONLY | ARM_MMU_SECT_C | ARM_MMU_SECT_B)
44
45#define BSP_ARM_MMU_READ_WRITE \
46  ((BSP_ARM_MMU_CLIENT_DOMAIN << ARM_MMU_SECT_DOMAIN_SHIFT) \
47    | ARM_MMU_SECT_AP_0 \
48    | ARM_MMU_SECT_DEFAULT)
49
50#define BSP_ARM_MMU_READ_WRITE_CACHED \
51  (BSP_ARM_MMU_READ_WRITE | ARM_MMU_SECT_C | ARM_MMU_SECT_B)
52
53#define BSP_ARM_MMU_READ_WRITE_DATA \
54  BSP_ARM_MMU_READ_WRITE_CACHED
55
56#define BSP_ARM_MMU_READ_ONLY_DATA \
57  BSP_ARM_MMU_READ_ONLY_CACHED
58
59#define BSP_ARM_MMU_CODE BSP_ARM_MMU_READ_ONLY_CACHED
60
61#define BSP_ARM_A9MPCORE_PT_BASE 0x1f000600
62
63typedef enum {
64  BSP_ARM_A9MPCORE_FATAL_CLOCK_IRQ_INSTALL,
65  BSP_ARM_A9MPCORE_FATAL_CLOCK_IRQ_REMOVE
66} rvpbxa9_fatal_code;
67
68void rvpbxa9_fatal(rvpbxa9_fatal_code code) RTEMS_COMPILER_NO_RETURN_ATTRIBUTE;
69
70#ifdef __cplusplus
71}
72#endif /* __cplusplus */
73
74#endif /* ASM */
75
76#endif /* LIBBSP_ARM_REALVIEW_PBX_A9_BSP_H */
Note: See TracBrowser for help on using the repository browser.