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 #define MAILBOX_SHMEM_REGION_BASE UL(0x70810000) 24 #define MAILBOX_SHMEM_REGION_SIZE UL(0x6000) 25 26 /* Pre-decided SRAM Addresses for sending and receiving messages */ 27 #define MAILBOX_TX_START_REGION UL(0x70814000) 28 #define MAILBOX_RX_START_REGION UL(0x70815000) 29 /* 1 slot in the memory buffer dedicated for IPC is 64 bytes */ 30 #define MAILBOX_RX_SLOT_SZ U(64) 31 /* There are 5 slots in the memory buffer dedicated for IPC */ 32 #define MAILBOX_RX_NUM_SLOTS U(5) 33 /* 34 * Pre-calculated MAX size of a message 35 * sec_hdr + (type/host/seq + flags) + payload 36 * 4 + 16 + 36 37 */ 38 #define MAILBOX_MAX_MESSAGE_SIZE U(56) 39 40 /* Ensure the RX Slot size is not smaller than the max message size */ 41 #if (MAILBOX_MAX_MESSAGE_SIZE > MAILBOX_RX_SLOT_SZ) 42 #error "MAILBOX_MAX_MESSAGE_SIZE > MAILBOX_RX_SLOT_SZ" 43 #endif 44 45 #endif /* BOARD_DEF_H */ 46