2015-03-19 18:58:55 +00:00
|
|
|
/*
|
2018-08-21 14:14:31 +01:00
|
|
|
* Copyright (c) 2014-2018, ARM Limited and Contributors. All rights reserved.
|
2015-03-19 18:58:55 +00:00
|
|
|
*
|
2017-05-03 09:38:09 +01:00
|
|
|
* SPDX-License-Identifier: BSD-3-Clause
|
2015-03-19 18:58:55 +00:00
|
|
|
*/
|
2018-11-08 10:20:19 +00:00
|
|
|
#ifndef ARM_CONFIG_H
|
|
|
|
#define ARM_CONFIG_H
|
2015-03-19 18:58:55 +00:00
|
|
|
|
2014-09-09 09:49:23 +01:00
|
|
|
#include <stdint.h>
|
2018-12-14 00:18:21 +00:00
|
|
|
|
|
|
|
#include <lib/utils_def.h>
|
2015-03-19 18:58:55 +00:00
|
|
|
|
2018-08-21 14:14:31 +01:00
|
|
|
/* Whether Base memory map is in use */
|
|
|
|
#define ARM_CONFIG_BASE_MMAP BIT(1)
|
|
|
|
|
|
|
|
/* Whether TZC should be configured */
|
|
|
|
#define ARM_CONFIG_HAS_TZC BIT(2)
|
|
|
|
|
|
|
|
/* FVP model has shifted affinity */
|
|
|
|
#define ARM_CONFIG_FVP_SHIFTED_AFF BIT(3)
|
|
|
|
|
|
|
|
/* FVP model has SMMUv3 affinity */
|
|
|
|
#define ARM_CONFIG_FVP_HAS_SMMUV3 BIT(4)
|
|
|
|
|
|
|
|
/* FVP model has CCI (400 or 500/550) devices */
|
|
|
|
#define ARM_CONFIG_FVP_HAS_CCI400 BIT(5)
|
|
|
|
#define ARM_CONFIG_FVP_HAS_CCI5XX BIT(6)
|
2015-03-19 18:58:55 +00:00
|
|
|
|
|
|
|
typedef struct arm_config {
|
|
|
|
unsigned long flags;
|
|
|
|
} arm_config_t;
|
|
|
|
|
|
|
|
|
|
|
|
/* If used, arm_config must be defined and populated in the platform port */
|
|
|
|
extern arm_config_t arm_config;
|
|
|
|
|
2015-08-04 14:31:27 +01:00
|
|
|
static inline const arm_config_t *get_arm_config(void)
|
2015-03-19 18:58:55 +00:00
|
|
|
{
|
|
|
|
return &arm_config;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2018-11-08 10:20:19 +00:00
|
|
|
#endif /* ARM_CONFIG_H */
|