Dan Handley | 9df4804 | 2015-03-19 18:58:55 +0000 | [diff] [blame] | 1 | /* |
Vikram Kanigiri | fbb1301 | 2016-02-15 11:54:14 +0000 | [diff] [blame] | 2 | * Copyright (c) 2014-2016, ARM Limited and Contributors. All rights reserved. |
Dan Handley | 9df4804 | 2015-03-19 18:58:55 +0000 | [diff] [blame] | 3 | * |
dp-arm | fa3cf0b | 2017-05-03 09:38:09 +0100 | [diff] [blame] | 4 | * SPDX-License-Identifier: BSD-3-Clause |
Dan Handley | 9df4804 | 2015-03-19 18:58:55 +0000 | [diff] [blame] | 5 | */ |
| 6 | #ifndef __ARM_CONFIG_H__ |
| 7 | #define __ARM_CONFIG_H__ |
| 8 | |
Juan Castillo | 7f1f062 | 2014-09-09 09:49:23 +0100 | [diff] [blame] | 9 | #include <stdint.h> |
Dan Handley | 9df4804 | 2015-03-19 18:58:55 +0000 | [diff] [blame] | 10 | |
| 11 | enum arm_config_flags { |
| 12 | /* Whether Base memory map is in use */ |
| 13 | ARM_CONFIG_BASE_MMAP = 0x1, |
Vikram Kanigiri | fbb1301 | 2016-02-15 11:54:14 +0000 | [diff] [blame] | 14 | /* Whether interconnect should be enabled */ |
| 15 | ARM_CONFIG_HAS_INTERCONNECT = 0x2, |
Dan Handley | 9df4804 | 2015-03-19 18:58:55 +0000 | [diff] [blame] | 16 | /* Whether TZC should be configured */ |
| 17 | ARM_CONFIG_HAS_TZC = 0x4 |
| 18 | }; |
| 19 | |
| 20 | typedef struct arm_config { |
Dan Handley | 9df4804 | 2015-03-19 18:58:55 +0000 | [diff] [blame] | 21 | unsigned long flags; |
| 22 | } arm_config_t; |
| 23 | |
| 24 | |
| 25 | /* If used, arm_config must be defined and populated in the platform port */ |
| 26 | extern arm_config_t arm_config; |
| 27 | |
Juan Castillo | 8172d93 | 2015-08-04 14:31:27 +0100 | [diff] [blame] | 28 | static inline const arm_config_t *get_arm_config(void) |
Dan Handley | 9df4804 | 2015-03-19 18:58:55 +0000 | [diff] [blame] | 29 | { |
| 30 | return &arm_config; |
| 31 | } |
| 32 | |
| 33 | |
| 34 | #endif /* __ARM_CONFIG_H__ */ |