blob: 56a747a4f61c92bbf586fb488be20a4cbad3241c [file] [log] [blame]
Jolly Shah259afe52019-01-09 12:37:57 -08001/*
Venkatesh Yadav Abbarapu35a8be92019-04-04 14:23:32 +05302 * Copyright (c) 2013-2020, ARM Limited and Contributors. All rights reserved.
Jolly Shah259afe52019-01-09 12:37:57 -08003 *
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
Venkatesh Yadav Abbarapu35a8be92019-04-04 14:23:32 +053019#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
Jolly Shah259afe52019-01-09 12:37:57 -080029#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_ */