bde73485bf4cd605afaac6e1b50e4a5d348af3af
2 * Copyright (c) 2018, ARM Limited and Contributors. All rights reserved.
4 * SPDX-License-Identifier: BSD-3-Clause
10 #include <common_def.h>
11 #include <utils_def.h>
14 #define PLAT_MAX_CORES_PER_CLUSTER 2
15 #define PLAT_CLUSTER_COUNT 12
16 #define PLATFORM_CORE_COUNT (PLAT_CLUSTER_COUNT * \
17 PLAT_MAX_CORES_PER_CLUSTER)
19 #define PLAT_MAX_PWR_LVL U(1)
20 #define PLAT_MAX_RET_STATE U(1)
21 #define PLAT_MAX_OFF_STATE U(2)
23 #define SQ_LOCAL_STATE_RUN 0
24 #define SQ_LOCAL_STATE_RET 1
25 #define SQ_LOCAL_STATE_OFF 2
27 #define CACHE_WRITEBACK_SHIFT 6
28 #define CACHE_WRITEBACK_GRANULE (1 << CACHE_WRITEBACK_SHIFT)
30 #define PLAT_PHY_ADDR_SPACE_SIZE (1ULL << 32)
31 #define PLAT_VIRT_ADDR_SPACE_SIZE (1ULL << 32)
32 #define MAX_XLAT_TABLES 4
33 #define MAX_MMAP_REGIONS 6
35 #define PLATFORM_STACK_SIZE 0x400
37 #define BL31_BASE 0x04000000
38 #define BL31_SIZE 0x00080000
39 #define BL31_LIMIT (BL31_BASE + BL31_SIZE)
41 #define PLAT_SQ_CCN_BASE 0x32000000
42 #define PLAT_SQ_CLUSTER_TO_CCN_ID_MAP \
53 15, /* Cluster 10 */ \
56 /* UART related constants */
57 #define PLAT_SQ_BOOT_UART_BASE 0x2A400000
58 #define PLAT_SQ_BOOT_UART_CLK_IN_HZ 62500000
59 #define SQ_CONSOLE_BAUDRATE 115200
61 #define SQ_SYS_CNTCTL_BASE 0x2a430000
63 #define SQ_SYS_TIMCTL_BASE 0x2a810000
64 #define PLAT_SQ_NSTIMER_FRAME_ID 0
66 #define DRAMINFO_BASE 0x2E00FFC0
68 #define PLAT_SQ_MHU_BASE 0x45000000
70 #define PLAT_SQ_SCP_COM_SHARED_MEM_BASE 0x45400000
71 #define SCPI_CMD_GET_DRAMINFO 0x1
73 #define SQ_BOOT_CFG_ADDR 0x45410000
74 #define PLAT_SQ_PRIMARY_CPU_SHIFT 8
75 #define PLAT_SQ_PRIMARY_CPU_BIT_WIDTH 6
77 #define PLAT_SQ_GICD_BASE 0x30000000
78 #define PLAT_SQ_GICR_BASE 0x30400000
80 #define PLAT_SQ_GPIO_BASE 0x51000000
82 #endif /* PLATFORM_DEF_H */