Blame view

include/zynqpl.h 2.37 KB
d5dae85f2   Michal Simek   fpga: zynq: Add s...
1
2
3
4
5
6
  /*
   * (C) Copyright 2012-2013, Xilinx, Michal Simek
   *
   * (C) Copyright 2012
   * Joe Hershberger <joe.hershberger@ni.com>
   *
1a4596601   Wolfgang Denk   Add GPL-2.0+ SPDX...
7
   * SPDX-License-Identifier:	GPL-2.0+
d5dae85f2   Michal Simek   fpga: zynq: Add s...
8
9
10
11
12
13
   */
  
  #ifndef _ZYNQPL_H_
  #define _ZYNQPL_H_
  
  #include <xilinx.h>
345f9e195   Michal Simek   fpga: xilinx: zyn...
14
  #if defined(CONFIG_FPGA_ZYNQPL)
14cfc4f37   Michal Simek   fpga: xilinx: Sim...
15
  extern struct xilinx_fpga_op zynq_op;
345f9e195   Michal Simek   fpga: xilinx: zyn...
16
17
18
19
  # define FPGA_ZYNQPL_OPS	&zynq_op
  #else
  # define FPGA_ZYNQPL_OPS	NULL
  #endif
d5dae85f2   Michal Simek   fpga: zynq: Add s...
20

05c59d0bc   Michal Simek   ARM: zynq: Add su...
21
  #define XILINX_ZYNQ_7007S	0x3
d5dae85f2   Michal Simek   fpga: zynq: Add s...
22
  #define XILINX_ZYNQ_7010	0x2
05c59d0bc   Michal Simek   ARM: zynq: Add su...
23
24
  #define XILINX_ZYNQ_7012S	0x1c
  #define XILINX_ZYNQ_7014S	0x8
31993d6a3   Michal Simek   fpga: zynqpl: Add...
25
  #define XILINX_ZYNQ_7015	0x1b
d5dae85f2   Michal Simek   fpga: zynq: Add s...
26
27
  #define XILINX_ZYNQ_7020	0x7
  #define XILINX_ZYNQ_7030	0xc
b9103809e   Siva Durga Prasad Paladugu   fpga: zynqpl: Add...
28
  #define XILINX_ZYNQ_7035	0x12
d5dae85f2   Michal Simek   fpga: zynq: Add s...
29
  #define XILINX_ZYNQ_7045	0x11
fd2b10b6d   Michal Simek   fpga: zynqpl: Add...
30
  #define XILINX_ZYNQ_7100	0x16
d5dae85f2   Michal Simek   fpga: zynq: Add s...
31
32
  
  /* Device Image Sizes */
05c59d0bc   Michal Simek   ARM: zynq: Add su...
33
  #define XILINX_XC7Z007S_SIZE	16669920/8
d5dae85f2   Michal Simek   fpga: zynq: Add s...
34
  #define XILINX_XC7Z010_SIZE	16669920/8
05c59d0bc   Michal Simek   ARM: zynq: Add su...
35
36
  #define XILINX_XC7Z012S_SIZE	28085344/8
  #define XILINX_XC7Z014S_SIZE	32364512/8
31993d6a3   Michal Simek   fpga: zynqpl: Add...
37
  #define XILINX_XC7Z015_SIZE	28085344/8
d5dae85f2   Michal Simek   fpga: zynq: Add s...
38
39
  #define XILINX_XC7Z020_SIZE	32364512/8
  #define XILINX_XC7Z030_SIZE	47839328/8
b9103809e   Siva Durga Prasad Paladugu   fpga: zynqpl: Add...
40
  #define XILINX_XC7Z035_SIZE	106571232/8
d5dae85f2   Michal Simek   fpga: zynq: Add s...
41
  #define XILINX_XC7Z045_SIZE	106571232/8
fd2b10b6d   Michal Simek   fpga: zynqpl: Add...
42
  #define XILINX_XC7Z100_SIZE	139330784/8
d5dae85f2   Michal Simek   fpga: zynq: Add s...
43
44
  
  /* Descriptor Macros */
05c59d0bc   Michal Simek   ARM: zynq: Add su...
45
46
47
  #define XILINX_XC7Z007S_DESC(cookie) \
  { xilinx_zynq, devcfg, XILINX_XC7Z007S_SIZE, NULL, cookie, FPGA_ZYNQPL_OPS, \
  	"7z007s" }
d5dae85f2   Michal Simek   fpga: zynq: Add s...
48
  #define XILINX_XC7Z010_DESC(cookie) \
345f9e195   Michal Simek   fpga: xilinx: zyn...
49
50
  { xilinx_zynq, devcfg, XILINX_XC7Z010_SIZE, NULL, cookie, FPGA_ZYNQPL_OPS, \
  	"7z010" }
d5dae85f2   Michal Simek   fpga: zynq: Add s...
51

05c59d0bc   Michal Simek   ARM: zynq: Add su...
52
53
54
55
56
57
58
  #define XILINX_XC7Z012S_DESC(cookie) \
  { xilinx_zynq, devcfg, XILINX_XC7Z012S_SIZE, NULL, cookie, FPGA_ZYNQPL_OPS, \
  	"7z012s" }
  
  #define XILINX_XC7Z014S_DESC(cookie) \
  { xilinx_zynq, devcfg, XILINX_XC7Z014S_SIZE, NULL, cookie, FPGA_ZYNQPL_OPS, \
  	"7z014s" }
31993d6a3   Michal Simek   fpga: zynqpl: Add...
59
  #define XILINX_XC7Z015_DESC(cookie) \
345f9e195   Michal Simek   fpga: xilinx: zyn...
60
61
  { xilinx_zynq, devcfg, XILINX_XC7Z015_SIZE, NULL, cookie, FPGA_ZYNQPL_OPS, \
  	"7z015" }
31993d6a3   Michal Simek   fpga: zynqpl: Add...
62

d5dae85f2   Michal Simek   fpga: zynq: Add s...
63
  #define XILINX_XC7Z020_DESC(cookie) \
345f9e195   Michal Simek   fpga: xilinx: zyn...
64
65
  { xilinx_zynq, devcfg, XILINX_XC7Z020_SIZE, NULL, cookie, FPGA_ZYNQPL_OPS, \
  	"7z020" }
d5dae85f2   Michal Simek   fpga: zynq: Add s...
66
67
  
  #define XILINX_XC7Z030_DESC(cookie) \
345f9e195   Michal Simek   fpga: xilinx: zyn...
68
69
  { xilinx_zynq, devcfg, XILINX_XC7Z030_SIZE, NULL, cookie, FPGA_ZYNQPL_OPS, \
  	"7z030" }
d5dae85f2   Michal Simek   fpga: zynq: Add s...
70

b9103809e   Siva Durga Prasad Paladugu   fpga: zynqpl: Add...
71
72
73
  #define XILINX_XC7Z035_DESC(cookie) \
  { xilinx_zynq, devcfg, XILINX_XC7Z035_SIZE, NULL, cookie, FPGA_ZYNQPL_OPS, \
  	"7z035" }
d5dae85f2   Michal Simek   fpga: zynq: Add s...
74
  #define XILINX_XC7Z045_DESC(cookie) \
345f9e195   Michal Simek   fpga: xilinx: zyn...
75
76
  { xilinx_zynq, devcfg, XILINX_XC7Z045_SIZE, NULL, cookie, FPGA_ZYNQPL_OPS, \
  	"7z045" }
d5dae85f2   Michal Simek   fpga: zynq: Add s...
77

fd2b10b6d   Michal Simek   fpga: zynqpl: Add...
78
  #define XILINX_XC7Z100_DESC(cookie) \
345f9e195   Michal Simek   fpga: xilinx: zyn...
79
80
  { xilinx_zynq, devcfg, XILINX_XC7Z100_SIZE, NULL, cookie, FPGA_ZYNQPL_OPS, \
  	"7z100" }
fd2b10b6d   Michal Simek   fpga: zynqpl: Add...
81

d5dae85f2   Michal Simek   fpga: zynq: Add s...
82
  #endif /* _ZYNQPL_H_ */