xref: /rk3399_ARM-atf/plat/ti/k3/include/platform_def.h (revision 383c821c76e05b64fc641cf59541793d29185859)
1 /*
2  * Copyright (c) 2017-2018, ARM Limited and Contributors. All rights reserved.
3  *
4  * SPDX-License-Identifier: BSD-3-Clause
5  */
6 
7 #ifndef PLATFORM_DEF_H
8 #define PLATFORM_DEF_H
9 
10 #include <ti_platform_defs.h>
11 
12 #if !K3_SEC_PROXY_LITE
13 #define SEC_PROXY_DATA_BASE	0x32C00000
14 #define SEC_PROXY_DATA_SIZE	0x80000
15 #define SEC_PROXY_SCFG_BASE	0x32800000
16 #define SEC_PROXY_SCFG_SIZE	0x80000
17 #define SEC_PROXY_RT_BASE	0x32400000
18 #define SEC_PROXY_RT_SIZE	0x80000
19 #else
20 #define SEC_PROXY_DATA_BASE	0x4D000000
21 #define SEC_PROXY_DATA_SIZE	0x80000
22 #define SEC_PROXY_SCFG_BASE	0x4A400000
23 #define SEC_PROXY_SCFG_SIZE	0x80000
24 #define SEC_PROXY_RT_BASE	0x4A600000
25 #define SEC_PROXY_RT_SIZE	0x80000
26 #endif /* K3_SEC_PROXY_LITE */
27 
28 #define WKUP_CTRL_MMR0_BASE		UL(0x43000000)
29 #define WKUP_CTRL_MMR0_SIZE		UL(0x20000)
30 #define CTRLMMR_WKUP_JTAG_ID		(WKUP_CTRL_MMR0_BASE + 0x14)
31 
32 #define JTAG_ID_PARTNO_WIDTH		U(0x10)
33 #define JTAG_ID_PARTNO_SHIFT		U(0xC)
34 
35 #define JTAG_ID_PARTNO_AM62AX		U(0xBB8D)
36 #define JTAG_ID_PARTNO_AM62PX		U(0xBB9D)
37 #define JTAG_ID_PARTNO_AM62X		U(0xBB7E)
38 #define JTAG_ID_PARTNO_AM64X		U(0xBB38)
39 #define JTAG_ID_PARTNO_AM65X		U(0xBB5A)
40 #define JTAG_ID_PARTNO_J721E		U(0xBB64)
41 #define JTAG_ID_PARTNO_J7200		U(0xBB6D)
42 #define JTAG_ID_PARTNO_J721S2		U(0xBB75)
43 #define JTAG_ID_PARTNO_J722S		U(0xBBA0)
44 #define JTAG_ID_PARTNO_J784S4		U(0xBB80)
45 
46 /* A-core Cluster Device ID for AM65x */
47 #define CLUSTER_DEVICE_START_ID_AM65X	U(198)
48 
49 #define SEC_PROXY_TIMEOUT_US		1000000
50 #define SEC_PROXY_MAX_MESSAGE_SIZE	56
51 
52 #endif /* PLATFORM_DEF_H */
53