xref: /rk3399_ARM-atf/plat/ti/k3low/board/am62lx/include/board_def.h (revision b67e984664a8644d6cfd1812cabaa02cf24f09c9)
1 /*
2  * Copyright (C) 2024-2025 Texas Instruments Incorporated - https://www.ti.com
3  *
4  * SPDX-License-Identifier: BSD-3-Clause
5  */
6 
7 #ifndef BOARD_DEF_H
8 #define BOARD_DEF_H
9 
10 #include <lib/utils_def.h>
11 
12 /* The ports must be in order and contiguous */
13 #define K3_CLUSTER0_CORE_COUNT		U(2)
14 #define K3_CLUSTER1_CORE_COUNT		U(0)
15 #define K3_CLUSTER2_CORE_COUNT		U(0)
16 #define K3_CLUSTER3_CORE_COUNT		U(0)
17 
18 #define PLAT_PROC_START_ID		U(32)
19 #define PLAT_PROC_DEVICE_START_ID	U(135)
20 #define PLAT_CLUSTER_DEVICE_START_ID	U(134)
21 #define PLAT_BOARD_DEVICE_ID		U(157)
22 
23 /* Pre-decided SRAM Addresses for sending and receiving messages */
24 #define MAILBOX_TX_START_REGION		UL(0x70814000)
25 #define MAILBOX_RX_START_REGION		UL(0x70815000)
26 /* 1 slot in the memory buffer dedicated for IPC is 64 bytes */
27 #define MAILBOX_RX_SLOT_SZ		U(64)
28 /* There are 5 slots in the memory buffer dedicated for IPC */
29 #define MAILBOX_RX_NUM_SLOTS		U(5)
30 /*
31  * Pre-calculated MAX size of a message
32  * sec_hdr + (type/host/seq + flags) + payload
33  * 4 + 16 + 36
34  */
35 #define MAILBOX_MAX_MESSAGE_SIZE	U(56)
36 
37 /* Ensure the RX Slot size is not smaller than the max message size */
38 #if (MAILBOX_MAX_MESSAGE_SIZE > MAILBOX_RX_SLOT_SZ)
39 #error "MAILBOX_MAX_MESSAGE_SIZE > MAILBOX_RX_SLOT_SZ"
40 #endif
41 
42 #endif /* BOARD_DEF_H */
43