blob: a0f4e68a0c193e361726e465ad983d2356deb648 [file] [log] [blame]
Tom Rini10e47792018-05-06 17:58:06 -04001/* SPDX-License-Identifier: GPL-2.0 */
Siva Durga Prasad Paladugu460fdce2016-01-13 16:25:37 +05302/*
3 * (C) Copyright 2015 Xilinx, Inc,
4 * Michal Simek <michal.simek@xilinx.com>
Siva Durga Prasad Paladugu460fdce2016-01-13 16:25:37 +05305 */
6
7#ifndef _ZYNQMPPL_H_
8#define _ZYNQMPPL_H_
9
10#include <xilinx.h>
11
Michal Simek8111aff2016-02-01 15:05:58 +010012#define ZYNQMP_SIP_SVC_CSU_DMA_CHIPID 0xC2000018
Siva Durga Prasad Paladugu460fdce2016-01-13 16:25:37 +053013#define ZYNQMP_SIP_SVC_PM_FPGA_LOAD 0xC2000016
Nitin Jaind9361d42018-02-16 17:29:54 +053014#define ZYNQMP_SIP_SVC_PM_FPGA_STATUS 0xC2000017
Siva Durga Prasad Paladugu460fdce2016-01-13 16:25:37 +053015#define ZYNQMP_FPGA_OP_INIT (1 << 0)
16#define ZYNQMP_FPGA_OP_LOAD (1 << 1)
17#define ZYNQMP_FPGA_OP_DONE (1 << 2)
18
Soren Brinkmannd7696a52016-09-29 11:44:41 -070019#define ZYNQMP_CSU_IDCODE_DEVICE_CODE_SHIFT 15
20#define ZYNQMP_CSU_IDCODE_DEVICE_CODE_MASK (0xf << \
21 ZYNQMP_CSU_IDCODE_DEVICE_CODE_SHIFT)
22#define ZYNQMP_CSU_IDCODE_SVD_SHIFT 12
Michal Simekf97de332017-06-28 15:40:32 +020023#define ZYNQMP_CSU_IDCODE_SVD_MASK (0x7 << ZYNQMP_CSU_IDCODE_SVD_SHIFT)
Soren Brinkmannd7696a52016-09-29 11:44:41 -070024
Siva Durga Prasad Paladugu460fdce2016-01-13 16:25:37 +053025extern struct xilinx_fpga_op zynqmp_op;
26
27#define XILINX_ZYNQMP_DESC \
28{ xilinx_zynqmp, csu_dma, 1, &zynqmp_op, 0, &zynqmp_op }
29
30#endif /* _ZYNQMPPL_H_ */