blob: d7dc064585eaec8a5ff7f92af11d16860f0014be [file] [log] [blame]
Tom Rini83d290c2018-05-06 17:58:06 -04001/* SPDX-License-Identifier: GPL-2.0+ */
Michal Simekd5dae852013-04-22 15:43:02 +02002/*
3 * (C) Copyright 2012-2013, Xilinx, Michal Simek
4 *
5 * (C) Copyright 2012
6 * Joe Hershberger <joe.hershberger@ni.com>
Michal Simekd5dae852013-04-22 15:43:02 +02007 */
8
9#ifndef _ZYNQPL_H_
10#define _ZYNQPL_H_
11
12#include <xilinx.h>
13
Siva Durga Prasad Paladugu37e3a362018-06-26 15:02:19 +053014#ifdef CONFIG_CMD_ZYNQ_AES
Siva Durga Prasad Paladugu3427f4d2015-12-09 18:46:43 +053015int zynq_decrypt_load(u32 srcaddr, u32 dstaddr, u32 srclen, u32 dstlen,
16 u8 bstype);
Siva Durga Prasad Paladugu37e3a362018-06-26 15:02:19 +053017#endif
18
Michal Simek14cfc4f2014-03-13 13:07:57 +010019extern struct xilinx_fpga_op zynq_op;
Michal Simekd5dae852013-04-22 15:43:02 +020020
Michal Simek4aba5fb2018-01-17 10:56:22 -030021#define XILINX_ZYNQ_XC7Z007S 0x3
22#define XILINX_ZYNQ_XC7Z010 0x2
23#define XILINX_ZYNQ_XC7Z012S 0x1c
24#define XILINX_ZYNQ_XC7Z014S 0x8
25#define XILINX_ZYNQ_XC7Z015 0x1b
26#define XILINX_ZYNQ_XC7Z020 0x7
27#define XILINX_ZYNQ_XC7Z030 0xc
28#define XILINX_ZYNQ_XC7Z035 0x12
29#define XILINX_ZYNQ_XC7Z045 0x11
30#define XILINX_ZYNQ_XC7Z100 0x16
Michal Simekd5dae852013-04-22 15:43:02 +020031
32/* Device Image Sizes */
Michal Simek05c59d02016-10-18 16:10:25 +020033#define XILINX_XC7Z007S_SIZE 16669920/8
Michal Simekd5dae852013-04-22 15:43:02 +020034#define XILINX_XC7Z010_SIZE 16669920/8
Michal Simek05c59d02016-10-18 16:10:25 +020035#define XILINX_XC7Z012S_SIZE 28085344/8
36#define XILINX_XC7Z014S_SIZE 32364512/8
Michal Simek31993d62013-09-26 16:39:03 +020037#define XILINX_XC7Z015_SIZE 28085344/8
Michal Simekd5dae852013-04-22 15:43:02 +020038#define XILINX_XC7Z020_SIZE 32364512/8
39#define XILINX_XC7Z030_SIZE 47839328/8
Siva Durga Prasad Paladugub9103802014-11-25 15:29:54 +053040#define XILINX_XC7Z035_SIZE 106571232/8
Michal Simekd5dae852013-04-22 15:43:02 +020041#define XILINX_XC7Z045_SIZE 106571232/8
Michal Simekfd2b10b2013-06-17 13:54:07 +020042#define XILINX_XC7Z100_SIZE 139330784/8
Michal Simekd5dae852013-04-22 15:43:02 +020043
Michal Simek4aba5fb2018-01-17 10:56:22 -030044/* Device Names */
45#define XILINX_XC7Z007S_NAME "7z007s"
46#define XILINX_XC7Z010_NAME "7z010"
47#define XILINX_XC7Z012S_NAME "7z012s"
48#define XILINX_XC7Z014S_NAME "7z014s"
49#define XILINX_XC7Z015_NAME "7z015"
50#define XILINX_XC7Z020_NAME "7z020"
51#define XILINX_XC7Z030_NAME "7z030"
52#define XILINX_XC7Z035_NAME "7z035"
53#define XILINX_XC7Z045_NAME "7z045"
54#define XILINX_XC7Z100_NAME "7z100"
Michal Simek05c59d02016-10-18 16:10:25 +020055
Michal Simek4aba5fb2018-01-17 10:56:22 -030056#if defined(CONFIG_FPGA)
57#define ZYNQ_DESC(name) { \
58 .idcode = XILINX_ZYNQ_XC##name, \
59 .fpga_size = XILINX_XC##name##_SIZE, \
60 .devicename = XILINX_XC##name##_NAME \
61 }
62#else
63#define ZYNQ_DESC(name) { \
64 .idcode = XILINX_ZYNQ_XC##name, \
65 .devicename = XILINX_XC##name##_NAME \
66 }
67#endif
Michal Simekfd2b10b2013-06-17 13:54:07 +020068
Michal Simekd5dae852013-04-22 15:43:02 +020069#endif /* _ZYNQPL_H_ */