mirror of
https://github.com/ARM-software/arm-trusted-firmware.git
synced 2025-08-15 08:57:02 +02:00
Enforce full include path for includes. Deprecate old paths. The following folders inside include/lib have been left unchanged: - include/lib/cpus/${ARCH} - include/lib/el3_runtime/${ARCH} The reason for this change is that having a global namespace for includes isn't a good idea. It defeats one of the advantages of having folders and it introduces problems that are sometimes subtle (because you may not know the header you are actually including if there are two of them). For example, this patch had to be created because two headers were called the same way:e0ea0928d5
("Fix gpio includes of mt8173 platform to avoid collision."). More recently, this patch has had similar problems:46f9b2c3a2
("drivers: add tzc380 support"). This problem was introduced in commit4ecca33988
("Move include and source files to logical locations"). At that time, there weren't too many headers so it wasn't a real issue. However, time has shown that this creates problems. Platforms that want to preserve the way they include headers may add the removed paths to PLAT_INCLUDES, but this is discouraged. Change-Id: I39dc53ed98f9e297a5966e723d1936d6ccf2fc8f Signed-off-by: Antonio Nino Diaz <antonio.ninodiaz@arm.com>
63 lines
1.6 KiB
C
63 lines
1.6 KiB
C
/*
|
|
* Copyright (c) 2015-2018, ARM Limited and Contributors. All rights reserved.
|
|
*
|
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
*/
|
|
|
|
#ifndef PLATFORM_DEF_H
|
|
#define PLATFORM_DEF_H
|
|
|
|
#include <lib/utils_def.h>
|
|
|
|
#define PLATFORM_LINKER_FORMAT "elf64-littleaarch64"
|
|
#define PLATFORM_LINKER_ARCH aarch64
|
|
|
|
#define PLATFORM_STACK_SIZE 0x400
|
|
#define CACHE_WRITEBACK_GRANULE 64
|
|
|
|
#define PLAT_PRIMARY_CPU 0x0
|
|
#define PLATFORM_MAX_CPU_PER_CLUSTER 4
|
|
#define PLATFORM_CLUSTER_COUNT 1
|
|
#define PLATFORM_CORE_COUNT 4
|
|
#define PLATFORM_CLUSTER0_CORE_COUNT 4
|
|
#define PLATFORM_CLUSTER1_CORE_COUNT 0
|
|
|
|
#define PWR_DOMAIN_AT_MAX_LVL U(1)
|
|
#define PLAT_MAX_PWR_LVL U(2)
|
|
#define PLAT_MAX_OFF_STATE U(2)
|
|
#define PLAT_MAX_RET_STATE U(1)
|
|
|
|
#define BL31_BASE 0x80000000
|
|
#define BL31_LIMIT 0x80020000
|
|
|
|
#define PLAT_VIRT_ADDR_SPACE_SIZE (1ull << 32)
|
|
#define PLAT_PHY_ADDR_SPACE_SIZE (1ull << 32)
|
|
|
|
#define MAX_XLAT_TABLES 8
|
|
#define MAX_MMAP_REGIONS 8
|
|
|
|
#define PLAT_GICD_BASE 0x51a00000
|
|
#define PLAT_GICD_SIZE 0x10000
|
|
#define PLAT_GICR_BASE 0x51b00000
|
|
#define PLAT_GICR_SIZE 0xc0000
|
|
#define IMX_BOOT_UART_BASE 0x5a060000
|
|
#define IMX_BOOT_UART_SIZE 0x1000
|
|
#define IMX_BOOT_UART_BAUDRATE 115200
|
|
#define IMX_BOOT_UART_CLK_IN_HZ 24000000
|
|
#define PLAT_CRASH_UART_BASE IMX_BOOT_UART_BASE
|
|
#define PLAT__CRASH_UART_CLK_IN_HZ 24000000
|
|
#define IMX_CONSOLE_BAUDRATE 115200
|
|
#define SC_IPC_BASE 0x5d1b0000
|
|
#define SC_IPC_SIZE 0x10000
|
|
|
|
#define COUNTER_FREQUENCY 8000000
|
|
|
|
/* non-secure u-boot base */
|
|
#define PLAT_NS_IMAGE_OFFSET 0x80020000
|
|
|
|
#define DEBUG_CONSOLE 0
|
|
#define DEBUG_CONSOLE_A35 0
|
|
#define PLAT_IMX8QX 1
|
|
|
|
#endif /* PLATFORM_DEF_H */
|