platform_def.h 1.55 KB
Newer Older
1
/*
2
 * Copyright (c) 2017-2019, ARM Limited and Contributors. All rights reserved.
3
4
5
6
 *
 * SPDX-License-Identifier: BSD-3-Clause
 */

7
8
#ifndef PLATFORM_DEF_H
#define PLATFORM_DEF_H
9

10
11
12
#include <common/tbbr/tbbr_img_def.h>
#include <lib/utils_def.h>
#include <plat/common/common_def.h>
13
14
15
16
17
18
19

#define PLATFORM_STACK_SIZE		0x1000

#define CACHE_WRITEBACK_SHIFT		6
#define CACHE_WRITEBACK_GRANULE		(1 << (CACHE_WRITEBACK_SHIFT))

/* topology */
20
21
#define UNIPHIER_MAX_CPUS_PER_CLUSTER	U(4)
#define UNIPHIER_CLUSTER_COUNT		U(2)
22
23
24
25

#define PLATFORM_CORE_COUNT		\
	((UNIPHIER_MAX_CPUS_PER_CLUSTER) * (UNIPHIER_CLUSTER_COUNT))

26
#define PLAT_MAX_PWR_LVL		U(1)
27

28
29
#define PLAT_MAX_OFF_STATE		U(2)
#define PLAT_MAX_RET_STATE		U(1)
30

31
32
#define BL2_BASE			ULL(0x80000000)
#define BL2_LIMIT			ULL(0x80080000)
33
34
35

/* 0x80080000-0x81000000: reserved for DSP */

36
37
#define UNIPHIER_SEC_DRAM_BASE		0x81000000ULL
#define UNIPHIER_SEC_DRAM_LIMIT		0x82000000ULL
38
39
40
#define UNIPHIER_SEC_DRAM_SIZE		((UNIPHIER_SEC_DRAM_LIMIT) - \
					 (UNIPHIER_SEC_DRAM_BASE))

41
42
#define BL31_BASE			ULL(0x81000000)
#define BL31_LIMIT			ULL(0x81080000)
43

44
45
#define BL32_BASE			ULL(0x81080000)
#define BL32_LIMIT			ULL(0x81180000)
46
47
48
49
50
51

#define PLAT_PHY_ADDR_SPACE_SIZE	(1ULL << 32)
#define PLAT_VIRT_ADDR_SPACE_SIZE	(1ULL << 32)

#define PLAT_XLAT_TABLES_DYNAMIC	1
#define MAX_XLAT_TABLES			7
52
#define MAX_MMAP_REGIONS		7
53
54
55

#define MAX_IO_HANDLES			2
#define MAX_IO_DEVICES			2
56
#define MAX_IO_BLOCK_DEVICES		U(1)
57

Masahiro Yamada's avatar
Masahiro Yamada committed
58
59
60
61
#define TSP_SEC_MEM_BASE		(BL32_BASE)
#define TSP_SEC_MEM_SIZE		((BL32_LIMIT) - (BL32_BASE))
#define TSP_IRQ_SEC_PHY_TIMER		29

62
#endif /* PLATFORM_DEF_H */