]>
Commit | Line | Data |
---|---|---|
d5dae85f MS |
1 | /* |
2 | * (C) Copyright 2012-2013, Xilinx, Michal Simek | |
3 | * | |
4 | * (C) Copyright 2012 | |
5 | * Joe Hershberger <joe.hershberger@ni.com> | |
6 | * | |
1a459660 | 7 | * SPDX-License-Identifier: GPL-2.0+ |
d5dae85f MS |
8 | */ |
9 | ||
10 | #ifndef _ZYNQPL_H_ | |
11 | #define _ZYNQPL_H_ | |
12 | ||
13 | #include <xilinx.h> | |
14 | ||
345f9e19 | 15 | #if defined(CONFIG_FPGA_ZYNQPL) |
14cfc4f3 | 16 | extern struct xilinx_fpga_op zynq_op; |
345f9e19 MS |
17 | # define FPGA_ZYNQPL_OPS &zynq_op |
18 | #else | |
19 | # define FPGA_ZYNQPL_OPS NULL | |
20 | #endif | |
d5dae85f | 21 | |
05c59d0b | 22 | #define XILINX_ZYNQ_7007S 0x3 |
d5dae85f | 23 | #define XILINX_ZYNQ_7010 0x2 |
05c59d0b MS |
24 | #define XILINX_ZYNQ_7012S 0x1c |
25 | #define XILINX_ZYNQ_7014S 0x8 | |
31993d6a | 26 | #define XILINX_ZYNQ_7015 0x1b |
d5dae85f MS |
27 | #define XILINX_ZYNQ_7020 0x7 |
28 | #define XILINX_ZYNQ_7030 0xc | |
b9103809 | 29 | #define XILINX_ZYNQ_7035 0x12 |
d5dae85f | 30 | #define XILINX_ZYNQ_7045 0x11 |
fd2b10b6 | 31 | #define XILINX_ZYNQ_7100 0x16 |
d5dae85f MS |
32 | |
33 | /* Device Image Sizes */ | |
05c59d0b | 34 | #define XILINX_XC7Z007S_SIZE 16669920/8 |
d5dae85f | 35 | #define XILINX_XC7Z010_SIZE 16669920/8 |
05c59d0b MS |
36 | #define XILINX_XC7Z012S_SIZE 28085344/8 |
37 | #define XILINX_XC7Z014S_SIZE 32364512/8 | |
31993d6a | 38 | #define XILINX_XC7Z015_SIZE 28085344/8 |
d5dae85f MS |
39 | #define XILINX_XC7Z020_SIZE 32364512/8 |
40 | #define XILINX_XC7Z030_SIZE 47839328/8 | |
b9103809 | 41 | #define XILINX_XC7Z035_SIZE 106571232/8 |
d5dae85f | 42 | #define XILINX_XC7Z045_SIZE 106571232/8 |
fd2b10b6 | 43 | #define XILINX_XC7Z100_SIZE 139330784/8 |
d5dae85f MS |
44 | |
45 | /* Descriptor Macros */ | |
05c59d0b MS |
46 | #define XILINX_XC7Z007S_DESC(cookie) \ |
47 | { xilinx_zynq, devcfg, XILINX_XC7Z007S_SIZE, NULL, cookie, FPGA_ZYNQPL_OPS, \ | |
48 | "7z007s" } | |
49 | ||
d5dae85f | 50 | #define XILINX_XC7Z010_DESC(cookie) \ |
345f9e19 MS |
51 | { xilinx_zynq, devcfg, XILINX_XC7Z010_SIZE, NULL, cookie, FPGA_ZYNQPL_OPS, \ |
52 | "7z010" } | |
d5dae85f | 53 | |
05c59d0b MS |
54 | #define XILINX_XC7Z012S_DESC(cookie) \ |
55 | { xilinx_zynq, devcfg, XILINX_XC7Z012S_SIZE, NULL, cookie, FPGA_ZYNQPL_OPS, \ | |
56 | "7z012s" } | |
57 | ||
58 | #define XILINX_XC7Z014S_DESC(cookie) \ | |
59 | { xilinx_zynq, devcfg, XILINX_XC7Z014S_SIZE, NULL, cookie, FPGA_ZYNQPL_OPS, \ | |
60 | "7z014s" } | |
61 | ||
31993d6a | 62 | #define XILINX_XC7Z015_DESC(cookie) \ |
345f9e19 MS |
63 | { xilinx_zynq, devcfg, XILINX_XC7Z015_SIZE, NULL, cookie, FPGA_ZYNQPL_OPS, \ |
64 | "7z015" } | |
31993d6a | 65 | |
d5dae85f | 66 | #define XILINX_XC7Z020_DESC(cookie) \ |
345f9e19 MS |
67 | { xilinx_zynq, devcfg, XILINX_XC7Z020_SIZE, NULL, cookie, FPGA_ZYNQPL_OPS, \ |
68 | "7z020" } | |
d5dae85f MS |
69 | |
70 | #define XILINX_XC7Z030_DESC(cookie) \ | |
345f9e19 MS |
71 | { xilinx_zynq, devcfg, XILINX_XC7Z030_SIZE, NULL, cookie, FPGA_ZYNQPL_OPS, \ |
72 | "7z030" } | |
d5dae85f | 73 | |
b9103809 SDPP |
74 | #define XILINX_XC7Z035_DESC(cookie) \ |
75 | { xilinx_zynq, devcfg, XILINX_XC7Z035_SIZE, NULL, cookie, FPGA_ZYNQPL_OPS, \ | |
76 | "7z035" } | |
77 | ||
d5dae85f | 78 | #define XILINX_XC7Z045_DESC(cookie) \ |
345f9e19 MS |
79 | { xilinx_zynq, devcfg, XILINX_XC7Z045_SIZE, NULL, cookie, FPGA_ZYNQPL_OPS, \ |
80 | "7z045" } | |
d5dae85f | 81 | |
fd2b10b6 | 82 | #define XILINX_XC7Z100_DESC(cookie) \ |
345f9e19 MS |
83 | { xilinx_zynq, devcfg, XILINX_XC7Z100_SIZE, NULL, cookie, FPGA_ZYNQPL_OPS, \ |
84 | "7z100" } | |
fd2b10b6 | 85 | |
d5dae85f | 86 | #endif /* _ZYNQPL_H_ */ |