1 /* 2 * Copyright (c) 2013-2020, ARM Limited and Contributors. All rights reserved. 3 * 4 * SPDX-License-Identifier: BSD-3-Clause 5 */ 6 7 /* 8 * Contains platform specific definitions of commonly used macros data types 9 * for PU Power Management. This file should be common for all PU's. 10 */ 11 12 #ifndef PLAT_PM_COMMON_H 13 #define PLAT_PM_COMMON_H 14 15 #include <stdint.h> 16 #include <common/debug.h> 17 #include "pm_defs.h" 18 19 #if ZYNQMP_IPI_CRC_CHECK 20 #define PAYLOAD_ARG_CNT 8U 21 #define IPI_W0_TO_W6_SIZE 28U 22 #define PAYLOAD_CRC_POS 7U 23 #define CRC_INIT_VALUE 0x4F4EU 24 #define CRC_ORDER 16U 25 #define CRC_POLYNOM 0x8005U 26 #else 27 #define PAYLOAD_ARG_CNT 6U 28 #endif 29 #define PAYLOAD_ARG_SIZE 4U /* size in bytes */ 30 31 #define ZYNQMP_TZ_VERSION_MAJOR 1 32 #define ZYNQMP_TZ_VERSION_MINOR 0 33 #define ZYNQMP_TZ_VERSION ((ZYNQMP_TZ_VERSION_MAJOR << 16) | \ 34 ZYNQMP_TZ_VERSION_MINOR) 35 #endif /* _PLAT_PM_COMMON_H_ */ 36