165c80d60SJolly Shah /* 2*fe550edeSVenkatesh Yadav Abbarapu * Copyright (c) 2013-2020, ARM Limited and Contributors. All rights reserved. 365c80d60SJolly Shah * 465c80d60SJolly Shah * SPDX-License-Identifier: BSD-3-Clause 565c80d60SJolly Shah */ 665c80d60SJolly Shah 765c80d60SJolly Shah /* 865c80d60SJolly Shah * Contains platform specific definitions of commonly used macros data types 965c80d60SJolly Shah * for PU Power Management. This file should be common for all PU's. 1065c80d60SJolly Shah */ 1165c80d60SJolly Shah 1265c80d60SJolly Shah #ifndef PLAT_PM_COMMON_H 1365c80d60SJolly Shah #define PLAT_PM_COMMON_H 1465c80d60SJolly Shah 1565c80d60SJolly Shah #include <stdint.h> 1665c80d60SJolly Shah #include <common/debug.h> 1765c80d60SJolly Shah #include "pm_defs.h" 1865c80d60SJolly Shah 19*fe550edeSVenkatesh Yadav Abbarapu #if ZYNQMP_IPI_CRC_CHECK 20*fe550edeSVenkatesh Yadav Abbarapu #define PAYLOAD_ARG_CNT 8U 21*fe550edeSVenkatesh Yadav Abbarapu #define IPI_W0_TO_W6_SIZE 28U 22*fe550edeSVenkatesh Yadav Abbarapu #define PAYLOAD_CRC_POS 7U 23*fe550edeSVenkatesh Yadav Abbarapu #define CRC_INIT_VALUE 0x4F4EU 24*fe550edeSVenkatesh Yadav Abbarapu #define CRC_ORDER 16U 25*fe550edeSVenkatesh Yadav Abbarapu #define CRC_POLYNOM 0x8005U 26*fe550edeSVenkatesh Yadav Abbarapu #else 2765c80d60SJolly Shah #define PAYLOAD_ARG_CNT 6U 28*fe550edeSVenkatesh Yadav Abbarapu #endif 2965c80d60SJolly Shah #define PAYLOAD_ARG_SIZE 4U /* size in bytes */ 3065c80d60SJolly Shah 3165c80d60SJolly Shah #define ZYNQMP_TZ_VERSION_MAJOR 1 3265c80d60SJolly Shah #define ZYNQMP_TZ_VERSION_MINOR 0 3365c80d60SJolly Shah #define ZYNQMP_TZ_VERSION ((ZYNQMP_TZ_VERSION_MAJOR << 16) | \ 3465c80d60SJolly Shah ZYNQMP_TZ_VERSION_MINOR) 3565c80d60SJolly Shah #endif /* _PLAT_PM_COMMON_H_ */ 36