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